13#include <dqm/modules/V0ObjectsDQM/V0ObjectsDQMModule.h>
14#include <framework/datastore/StoreObjPtr.h>
15#include <analysis/dataobjects/ParticleList.h>
16#include <TDirectory.h>
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...
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.
Type-safe access to single objects in the data store.
bool isValid() const
Check whether the object was created.
void initialize() override final
Initializer.
void defineHisto() override final
Definition of the histograms.
void event() override final
This method is called for each event.
V0ObjectsDQMModule()
Constructor.
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.
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.
Abstract base class for different kinds of events.