13 #include <dqm/modules/V0ObjectsDQM/V0ObjectsDQMModule.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <analysis/dataobjects/ParticleList.h>
16 #include <TDirectory.h>
29 V0ObjectsDQMModule::V0ObjectsDQMModule() :
HistoModule()
33 setDescription(
"Monitor displaced vertices");
34 setPropertyFlags(c_ParallelProcessingCertified);
36 addParam(
"V0PListName", m_V0PListName,
"Name of the vertexed particle list", std::string(
"K_S0:V0DQM"));
39 void V0ObjectsDQMModule::defineHisto()
41 TDirectory* oldDir = gDirectory;
42 oldDir->mkdir(
"V0Objects");
43 oldDir->cd(
"V0Objects");
45 for (
int j = 0; j < 32; j++) {
46 m_h_xvsy[j] =
new TH2F(Form(
"xvsy[%i]", j), Form(
"xvsy[%i]", j), 200, -10, 10, 200, -10, 10);
51 m_h_xvsz =
new TH2F(
"xvsz",
"xvsz", 1500, -75, 75, 400, -10, 10);
69 for (
int j = 0; j < 32; j++) {
82 for (
unsigned int i = 0; i < V0Particles->getListSize(); i++) {
85 float vtxx =
V0->getX();
86 float vtxy =
V0->getY();
87 float vtxz =
V0->getZ();
88 if (fabs(vtxz) < 75 && fabs(vtxx) < 10 && fabs(vtxy) < 10) {
89 m_h_xvsy[int(floor((vtxz + 75) / 5))]->Fill(vtxx, vtxy);
90 if (vtxz <= -5. || vtxz >= 8.)
m_h_xvsz->Fill(vtxz, vtxx);
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Class to store reconstructed particles.
Type-safe access to single objects in the data store.
bool isValid() const
Check whether the object was created.
void initialize() override final
Function for dynamic initialization of module.
void event() override final
Function to process event record.
void beginRun() override final
Function to process begin_run record.
std::string m_V0PListName
Name of the V0 particle list.
Object holding information for V0s.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.