 |
Belle II Software
release-05-02-19
|
9 #include <dqm/modules/V0ObjectsDQM/V0ObjectsDQMModule.h>
10 #include <framework/datastore/StoreObjPtr.h>
11 #include <analysis/dataobjects/ParticleList.h>
12 #include <TDirectory.h>
25 V0ObjectsDQMModule::V0ObjectsDQMModule() :
HistoModule()
32 addParam(
"V0PListName",
m_V0PListName,
"Name of the vertexed particle list", std::string(
"K_S0:V0DQM"));
37 TDirectory* oldDir = gDirectory;
38 oldDir->mkdir(
"V0Objects");
39 oldDir->cd(
"V0Objects");
41 for (
int j = 0; j < 32; j++) {
42 m_h_xvsy[j] =
new TH2F(Form(
"xvsy[%i]", j), Form(
"xvsy[%i]", j), 200, -10, 10, 200, -10, 10);
43 m_h_xvsy[j]->SetXTitle(
"x [cm]");
44 m_h_xvsy[j]->SetYTitle(
"y [cm]");
45 m_h_xvsy[j]->SetStats(kFALSE);
47 m_h_xvsz =
new TH2F(
"xvsz",
"xvsz", 1500, -75, 75, 400, -10, 10);
48 m_h_xvsz->SetXTitle(
"z [cm]");
49 m_h_xvsz->SetYTitle(
"x [cm]");
50 m_h_xvsz->SetStats(kFALSE);
65 for (
int j = 0; j < 32; j++) {
78 for (
unsigned int i = 0; i < V0Particles->getListSize(); i++) {
81 float vtxx =
V0->getX();
82 float vtxy =
V0->getY();
83 float vtxz =
V0->getZ();
84 if (fabs(vtxz) < 75 && fabs(vtxx) < 10 && fabs(vtxy) < 10) {
85 m_h_xvsy[int(floor((vtxz + 75) / 5))]->Fill(vtxx, vtxy);
86 if (vtxz <= -5. || vtxz >= 8.) m_h_xvsz->Fill(vtxz, vtxx);
void initialize() override final
Function for dynamic initialization of module.
void setDescription(const std::string &description)
Sets the description of the module.
Object holding information for V0s.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
void beginRun() override final
Function to process begin_run record.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
std::string m_V0PListName
Name of the V0 particle list.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
void event() override final
Function to process event record.
Class to store reconstructed particles.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
void defineHisto() override final
Function to define histograms.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
bool isValid() const
Check whether the object was created.