9#include <dqm/modules/PhysicsObjectsMiraBelle/PhysicsObjectsMiraBelleDst2Module.h>
10#include <analysis/dataobjects/ParticleList.h>
11#include <analysis/variables/Variables.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <mdst/dataobjects/SoftwareTriggerResult.h>
14#include <TDirectory.h>
27 "Trigger identifier string used to select events for the histograms", std::string(
"software_trigger_cut&skim&accept_hadron"));
28 addParam(
"DstListName",
m_dstListName,
"Name of the D*+ particle list", std::string(
"D*+:physMiraBelle"));
33 TDirectory* oldDir = gDirectory;
34 oldDir->mkdir(
"PhysicsObjectsMiraBelleDst2");
35 oldDir->cd(
"PhysicsObjectsMiraBelleDst2");
38 m_h_D0_pi0_InvM =
new TH1F(
"hist_D0_pi0_InvM",
"#pi^{0} mass of D^{*}#rightarrowK#pi#pi^{0};D0_pi0_InvM;", 50, 0.09, 0.17);
61 if (!result.isValid()) {
62 B2WARNING(
"SoftwareTriggerResult object not available but needed to select events for the histograms.");
66 const std::map<std::string, int>& results = result->getResults();
68 B2WARNING(
"PhysicsObjectsMiraBelleDst2: Can't find trigger identifier: " <<
m_triggerIdentifier);
74 if (accepted ==
false)
return;
79 for (
unsigned int i = 0; i < dstParticles->getListSize(); i++) {
80 const Particle* dst = dstParticles->getParticle(i);
82 float dst_mass = dst->
getMass();
83 float d0_mass = d0->getMass();
84 float delta_m = dst_mass - d0_mass;
86 if (1.83 < d0_mass && d0_mass < 1.89 && 0.142 < delta_m && delta_m < 0.148) {
87 m_h_D0_pi0_InvM->Fill(Belle2::Variable::particleInvariantMassFromDaughters(d0->getDaughter(2)));
HistoModule()
Constructor.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Class to store reconstructed particles.
const Particle * getDaughter(unsigned i) const
Returns a pointer to the i-th daughter particle.
double getMass() const
Returns invariant mass (= nominal for FS particles)
std::string m_dstListName
Name of the mu+ particle list.
void initialize() override
Initializer.
void event() override
This method is called for each event.
PhysicsObjectsMiraBelleDst2Module()
Constructor.
std::string m_triggerIdentifier
Trigger identifier string used to select events for the histograms.
void beginRun() override
Called when entering a new run.
TH1F * m_h_D0_pi0_InvM
Pi0 invariant mass for D0->Kpipi0.
void defineHisto() override
Definition of the histograms.
Type-safe access to single objects in the data store.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_accept
Accept this event.
Abstract base class for different kinds of events.