ATLAS Offline Software
|
Class for shower library shower lib. More...
#include <TestShowerLib.h>
Classes | |
struct | genInfo |
Public Member Functions | |
virtual | ~TestShowerLib () |
default destructor More... | |
virtual std::vector< EnergySpot > * | getShower (const G4Track *track, ShowerLibStatistics *stats, int randomShift) const |
get shower for given G4 track More... | |
virtual double | getContainmentZ (const G4Track *track) const |
get average length of showers for the given energy More... | |
virtual double | getContainmentR (const G4Track *track) const |
get average lateral spread of the showers for the given energy More... | |
virtual bool | storeShower (HepMC::ConstGenParticlePtr genParticle, const Shower *shower) |
store shower in the library More... | |
virtual bool | writeToROOT (TFile *dest) |
write library to ROOT file More... | |
virtual ShowerLibStatistics * | createStatistics () const |
virtual const std::string | getName () const |
const std::string | statistics () const |
print library statistics More... | |
virtual const std::string | detector () const |
get detector tag More... | |
virtual int | particle_id () const |
get particle tag More... | |
virtual const std::string | release () const |
get Release tag More... | |
virtual void | release (const std::string &release) |
set Release tag More... | |
virtual const std::string | geometry () const |
get Geometry tag More... | |
virtual void | geometry (const std::string &geometry) |
set Geometry tag More... | |
virtual const std::string | geantVersion () const |
get geant version tag More... | |
virtual void | geantVersion (const std::string &version) |
set geant version tag More... | |
virtual const std::string | physicsList () const |
get geant 4 physics list name More... | |
virtual void | physicsList (const std::string &list) |
set geant 4 physics list name More... | |
virtual const std::string | comment () const |
get comment More... | |
virtual void | comment (const std::string &comment) |
set given string as comment More... | |
virtual void | addComment (const std::string &comment) |
add given string to comment More... | |
Static Public Member Functions | |
static IShowerLib * | readFromROOTFile (TFile *source) |
factory method. create a library from root file. returns NULL if file is invalid. More... | |
static IShowerLib * | createEmptyLib (const std::string &inputFile) |
factory method. create empty library with the given structure. returns NULL if file is invalid. More... | |
Protected Member Functions | |
virtual const std::string | printParameters () const |
bool | readMeta (TTree *source) |
read metadata from the given TTree More... | |
bool | writeMeta (TTree *dest) const |
write metadata to the given TTree More... | |
Protected Attributes | |
std::string | m_detector |
name of the detector More... | |
int | m_particle |
ID of the generated particles. More... | |
std::string | m_release |
atlas software release More... | |
std::string | m_geometry |
atlas geometry version More... | |
std::string | m_geantVersion |
geant 4 version More... | |
std::string | m_physicsList |
used geant 4 physics list More... | |
std::string | m_comment |
comment More... | |
bool | m_filled |
is the library read from ROOT or from structure file More... | |
Private Types | |
typedef std::pair< genInfo, Shower > | storedShower |
typedef std::list< storedShower > | library |
Private Member Functions | |
TestShowerLib () | |
bool | read (TTree *source) |
read library from given TTree More... | |
bool | write (TTree *dest) const |
write library to given TTree More... | |
Private Attributes | |
library | m_libData |
Class for shower library shower lib.
Store complete shower library (collection of energy bins)
Definition at line 35 of file TestShowerLib.h.
|
private |
Definition at line 77 of file TestShowerLib.h.
|
private |
Definition at line 76 of file TestShowerLib.h.
|
virtual |
|
inlineprivate |
Definition at line 69 of file TestShowerLib.h.
|
inlinevirtualinherited |
add given string to comment
Definition at line 141 of file IShowerLib.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
set given string as comment
Definition at line 140 of file IShowerLib.h.
|
static |
factory method. create empty library with the given structure. returns NULL if file is invalid.
Definition at line 67 of file TestShowerLib.cxx.
|
virtual |
Implements ShowerLib::IShowerLib.
Definition at line 281 of file TestShowerLib.cxx.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
virtual |
get average lateral spread of the showers for the given energy
Implements ShowerLib::IShowerLib.
Definition at line 140 of file TestShowerLib.cxx.
|
virtual |
get average length of showers for the given energy
Implements ShowerLib::IShowerLib.
Definition at line 129 of file TestShowerLib.cxx.
|
inlinevirtual |
Reimplemented from ShowerLib::IShowerLib.
Definition at line 61 of file TestShowerLib.h.
|
virtual |
get shower for given G4 track
Implements ShowerLib::IShowerLib.
Definition at line 118 of file TestShowerLib.cxx.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlineprotectedvirtual |
|
private |
|
static |
factory method. create a library from root file. returns NULL if file is invalid.
Definition at line 41 of file TestShowerLib.cxx.
|
protectedinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inherited |
print library statistics
Definition at line 71 of file IShowerLib.cxx.
|
virtual |
store shower in the library
Implements ShowerLib::IShowerLib.
Definition at line 151 of file TestShowerLib.cxx.
|
private |
|
protectedinherited |
|
virtual |
write library to ROOT file
Implements ShowerLib::IShowerLib.
Definition at line 167 of file TestShowerLib.cxx.
|
protectedinherited |
comment
Definition at line 112 of file IShowerLib.h.
|
protectedinherited |
name of the detector
Definition at line 106 of file IShowerLib.h.
|
protectedinherited |
is the library read from ROOT or from structure file
Definition at line 114 of file IShowerLib.h.
|
protectedinherited |
geant 4 version
Definition at line 110 of file IShowerLib.h.
|
protectedinherited |
atlas geometry version
Definition at line 109 of file IShowerLib.h.
|
private |
Definition at line 84 of file TestShowerLib.h.
|
protectedinherited |
ID of the generated particles.
Definition at line 107 of file IShowerLib.h.
|
protectedinherited |
used geant 4 physics list
Definition at line 111 of file IShowerLib.h.
|
protectedinherited |
atlas software release
Definition at line 108 of file IShowerLib.h.