9#include <background/modules/EclBackgroundStudy/EclBackgroundStudyModule.h>
34 setDescription(
"EclBackgroundStudy module. Used to extract information relevant for the ECL background from background files");
49 m_tree1 =
new TTree(
"tree1",
"ECLHits data");
50 m_tree2 =
new TTree(
"tree2",
"ECLSimHits data");
71 B2INFO(
"EclBackgroundStudy: Processing. ");
87 m_TcId.push_back(
m_TCMap->getTCIdFromXtalId(hit.getCellId()));
88 m_Edep.push_back(hit.getEnergyDep());
104 m_CellId.push_back(hit.getCellId());
105 m_TcId.push_back(
m_TCMap->getTCIdFromXtalId(hit.getCellId()));
106 m_Pdg.push_back(hit.getPDGCode());
108 m_Edep.push_back(hit.getEnergyDep());
123 B2INFO(
"EclBackgroundStudy finished.");
136 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 initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
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.