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