9#include <background/modules/EclBackgroundStudy/EclBackgroundStudyModule.h>
34 setDescription(
"EclBackgroundStudy module. Used to extract information relevant for the ECL background from background files");
53 m_tree1 =
new TTree(
"tree1",
"ECLHits data");
54 m_tree2 =
new TTree(
"tree2",
"ECLSimHits data");
75 B2INFO(
"EclBackgroundStudy: Processing. ");
91 m_TcId.push_back(
m_TCMap->getTCIdFromXtalId(hit.getCellId()));
92 m_Edep.push_back(hit.getEnergyDep());
108 m_CellId.push_back(hit.getCellId());
109 m_TcId.push_back(
m_TCMap->getTCIdFromXtalId(hit.getCellId()));
110 m_Pdg.push_back(hit.getPDGCode());
112 m_Edep.push_back(hit.getEnergyDep());
131 B2INFO(
"EclBackgroundStudy finished.");
144 B2INFO(
"EclBackgroundStudy: output file name = " <<
m_filename);
Class to store simulated hits which equate to average of ECLSImHit on crystals input for digitization...
ClassECLSimHit - Geant4 simulated hit for the ECL.
StoreArray< ECLSimHit > m_ECLSimHits
ECL simHits.
std::vector< double > m_FlightTime
Vector of flight times.
Int_t m_iEntry
Entry identifier.
std::vector< int > m_CellId
Vector of CellId.
TTree * m_tree1
Output tree.
StoreArray< ECLHit > m_ECLHits
ECL hits.
std::vector< int > m_Pdg
Vector of PDG codes.
std::vector< int > m_TcId
Vector of TcId.
std::vector< double > m_Edep
Vector of deposited energies.
TTree * m_tree2
Output tree.
std::string m_filename
Output file name.
std::vector< double > m_Hadronedep
Vector of hadronic deposited energies.
TFile * m_ff
Output root file.
TrgEclMapping * m_TCMap
TRGECL mapping.
std::vector< double > m_TimeAve
Vector of average times.
void setDescription(const std::string &description)
Sets the description of the module.
virtual void event()
Event processor.
virtual void initialize()
Initialize the Module.
virtual void beginRun()
Called when entering a new run.
virtual void terminate()
Termination action.
virtual void endRun()
End-of-run action.
virtual ~EclBackgroundStudyModule()
Destructor.
void printModuleParams() const
Prints module parameters.
EclBackgroundStudyModule()
Constructor.
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.