5#ifndef SHOWER_LIB_ISHOWER_LIB_H
6#define SHOWER_LIB_ISHOWER_LIB_H
63 inline virtual const std::string
detector()
const;
71 inline virtual const std::string
release()
const;
75 inline virtual const std::string
geometry()
const;
81 inline virtual void geantVersion(
const std::string& version);
83 inline virtual const std::string
physicsList()
const;
85 inline virtual void physicsList(
const std::string& list);
87 inline virtual const std::string
comment()
const;
93 inline virtual const std::string
getName()
const {
return "IShowerLib"; }
bool readMeta(TTree *source)
read metadata from the given TTree
std::string m_geantVersion
geant 4 version
virtual const std::string geometry() const
get Geometry tag
IShowerLib()
default constructor
virtual const std::string release() const
get Release tag
virtual void addComment(const std::string &comment)
add given string to comment
const std::string statistics() const
print library statistics
virtual int particle_id() const
get particle tag
virtual const std::string geantVersion() const
get geant version tag
virtual const std::string physicsList() const
get geant 4 physics list name
std::string m_release
atlas software release
int m_particle
ID of the generated particles.
virtual std::vector< EnergySpot > * getShower(const G4Track *track, ShowerLibStatistics *stats, int randomShift) const =0
get shower for given G4 track
virtual bool writeToROOT(TFile *dest)=0
write library to ROOT file
virtual const std::string printParameters() const =0
virtual double getContainmentR(const G4Track *track) const =0
get average lateral spread of the showers for the given energy
virtual const std::string comment() const
get comment
bool writeMeta(TTree *dest) const
write metadata to the given TTree
std::string m_detector
name of the detector
virtual bool storeShower(HepMC::ConstGenParticlePtr genParticle, const Shower *shower)=0
store shower in the library
virtual double getContainmentZ(const G4Track *track) const =0
get average length of showers for the given energy
virtual ShowerLibStatistics * createStatistics() const =0
std::string m_comment
comment
virtual const std::string detector() const
get detector tag
bool m_filled
is the library read from ROOT or from structure file
std::string m_physicsList
used geant 4 physics list
virtual ~IShowerLib()
empty destructor
virtual const std::string getName() const
std::string m_geometry
atlas geometry version
Class for shower library shower.
const GenParticle * ConstGenParticlePtr
Namespace for the ShowerLib related classes.