|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef SHOWER_LIB_ETA_ENERGY_SHOWER_LIB_H
7 #define SHOWER_LIB_ETA_ENERGY_SHOWER_LIB_H
49 for (
auto& ene : eta.second ) {
50 for (
auto& spot : ene.second ) {
73 inline virtual const std::string
getName()
const {
return "Eta Energy ShowerLib"; }
94 typedef std::map<float,Shower>
etabin;
104 #endif // SHOWER_LIB_ETA_SHOWER_LIB_H
virtual double getContainmentZ(const G4Track *track) const
get average length of showers for the given energy
Class for shower library shower.
std::map< float, Shower > etabin
bool checkEtaAndStuff(const G4Track *track) const
static IShowerLib * createEmptyLib(const std::string &inputFile)
factory method. create empty library with the given structure. returns NULL if file is invalid.
virtual const std::string getName() const
virtual ~EtaEnergyShowerLib()
default destructor
virtual bool storeShower(HepMC::ConstGenParticlePtr genParticle, const Shower *shower)
store shower in the library
virtual bool writeToROOT(TFile *dest)
write library to ROOT file
virtual std::vector< EnergySpot > * getShower(const G4Track *track, ShowerLibStatistics *stats, int randomShift) const
get shower for given G4 track
static IShowerLib * readFromROOTFile(TFile *source)
factory method. create a library from root file. returns NULL if file is invalid.
virtual ShowerLibStatistics * createStatistics() const
Class for shower library shower lib interface.
bool write(TTree *dest) const
write library to given TTree
Class for shower library shower lib.
const GenParticle * ConstGenParticlePtr
bool read(TTree *source)
read library from given TTree
virtual double getContainmentR(const G4Track *track) const
get average lateral spread of the showers for the given energy
bool readStructure(std::vector< float > &structure)
Namespace for the ShowerLib related classes.
std::map< float, etabin > library
virtual const std::string printParameters() const