12 #include <klm/dataobjects/bklm/BKLMHit1d.h>
13 #include <klm/dataobjects/bklm/BKLMHit2d.h>
16 #include <framework/core/Module.h>
17 #include <framework/datastore/StoreArray.h>
18 #include <mdst/dataobjects/MCParticle.h>
59 void event()
override;
Convert BKLM raw simulation hits to digitizations.
TH1D * m_hSimHitPhiScinti
histogram for sim hit phi
float m_realTime
time this simulation corrsponds to
TH1D * m_bgSource
bg source of 1D hits
TH2D * m_bgSourcePerLayer2D
bg source of 2D hits
TH1I * m_hSimHit_layer2D
histogram for the layers of 2D hits
BKLMSimHistogrammerModule()
Constructor.
void initialize() override
Initialize at start of job.
TH1D * m_bgSource2D
bg source of 2D hits
void event() override
Digitize one event and write hits, digis, and relations into DataStore.
TH2D * m_hSimHitThetaPhiScinti
2D histogram for sim hit phi/theta
TH1D * m_hSimHitThetaRPC
histogram for sim hit theta
void endRun() override
Do any needed actions at the end of a simulation run.
TH2D * m_hSimHitThetaPhiRPC
2D histogram for sim hit phi/theta
void terminate() override
Terminate at the end of job.
TH2D * m_hSimHitPerChannelLayer
hits per channel
TH1D * m_hSimHitThetaScinti
histogram for sim hit theta scint
TH2D * m_bgSourceVsPhi
bg source of 2D hits vs phi
TH1D * m_hEvt
keep track of events
StoreArray< BKLMHit1d > hits1D
hits1D StoreArray
TH1I * m_hSimHit_layer
histogram for the layers of 1D hits
void beginRun() override
Do any needed actions at the start of a simulation run.
TH1D * m_hSimHitPhiRPC
histogram for sim hit phi
StoreArray< BKLMHit2d > hits2D
hits2D StoreArray
StoreArray< BKLMSimHit > simHits
BKLMSimHit StoreArray.
TFile * m_file
Digitize hit(s) in one scintillator strip with pulse-shape fit.
~BKLMSimHistogrammerModule()
Destructor.
TH2D * m_bgSourceVsTheta
bg source of 2D hits vs theta
float m_weight
weight for each event (inverse of the realTime)
std::string m_filename
filename for the root file
StoreArray< MCParticle > mcParticles
mcParticles StoreArray
TH2D * m_bgSourcePerLayer
bg source of 1D hits
StoreArray< KLMDigit > digits
digits StoreArray
Accessor to arrays stored in the data store.
Abstract base class for different kinds of events.