13 #include <dqm/modules/V0ObjectsDQM/V0ObjectsDQMModule.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <analysis/dataobjects/ParticleList.h>
16 #include <TDirectory.h>
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"));
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.
DQM modules to monitor V0 objects.
void initialize() override final
Initializer.
void defineHisto() override final
Definition of the histograms.
void event() override final
This method is called for each event.
void beginRun() override final
Called when entering a new run.
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.