![]() |
ATLAS Offline Software
|
Class for shower library shower lib. More...
#include <EtaEnergyShowerLib.h>
Public Member Functions | |
| virtual | ~EtaEnergyShowerLib () |
| default destructor | |
| virtual std::vector< EnergySpot > * | getShower (const G4Track *track, ShowerLibStatistics *stats, int randomShift) const |
| get shower for given G4 track | |
| virtual double | getContainmentZ (const G4Track *track) const |
| get average length of showers for the given energy | |
| virtual double | getContainmentR (const G4Track *track) const |
| get average lateral spread of the showers for the given energy | |
| 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 ShowerLibStatistics * | createStatistics () const |
| virtual const std::string | getName () const |
| const std::string | statistics () const |
| print library statistics | |
| virtual const std::string | detector () const |
| get detector tag | |
| virtual int | particle_id () const |
| get particle tag | |
| virtual const std::string | release () const |
| get Release tag | |
| virtual void | release (const std::string &release) |
| set Release tag | |
| virtual const std::string | geometry () const |
| get Geometry tag | |
| virtual void | geometry (const std::string &geometry) |
| set Geometry tag | |
| virtual const std::string | geantVersion () const |
| get geant version tag | |
| virtual void | geantVersion (const std::string &version) |
| set geant version tag | |
| virtual const std::string | physicsList () const |
| get geant 4 physics list name | |
| virtual void | physicsList (const std::string &list) |
| set geant 4 physics list name | |
| virtual const std::string | comment () const |
| get comment | |
| virtual void | comment (const std::string &comment) |
| set given string as comment | |
| virtual void | addComment (const std::string &comment) |
| add given string to comment | |
Static Public Member Functions | |
| static IShowerLib * | readFromROOTFile (TFile *source) |
| factory method. create a library from root file. returns NULL if file is invalid. | |
| static IShowerLib * | createEmptyLib (const std::string &inputFile) |
| factory method. create empty library with the given structure. returns NULL if file is invalid. | |
Protected Member Functions | |
| virtual const std::string | printParameters () const |
| bool | readMeta (TTree *source) |
| read metadata from the given TTree | |
| bool | writeMeta (TTree *dest) const |
| write metadata to the given TTree | |
Protected Attributes | |
| std::string | m_detector |
| name of the detector | |
| int | m_particle |
| ID of the generated particles. | |
| std::string | m_release |
| atlas software release | |
| std::string | m_geometry |
| atlas geometry version | |
| std::string | m_geantVersion |
| geant 4 version | |
| std::string | m_physicsList |
| used geant 4 physics list | |
| std::string | m_comment |
| comment | |
| bool | m_filled |
| is the library read from ROOT or from structure file | |
Private Types | |
| typedef std::map< float, Shower > | etabin |
| typedef std::map< float, etabin > | library |
Private Member Functions | |
| EtaEnergyShowerLib () | |
| bool | read (TTree *source) |
| read library from given TTree | |
| bool | write (TTree *dest) const |
| write library to given TTree | |
| bool | readStructure (std::vector< float > &structure) |
| bool | checkEtaAndStuff (const G4Track *track) const |
Private Attributes | |
| float | m_mineta |
| float | m_maxeta |
| library | m_libData |
| bool | m_onlyPositive |
Class for shower library shower lib.
Store complete shower library (collection of energy bins)
Definition at line 35 of file EtaEnergyShowerLib.h.
|
private |
Definition at line 94 of file EtaEnergyShowerLib.h.
|
private |
Definition at line 95 of file EtaEnergyShowerLib.h.
|
inlinevirtual |
default destructor
Definition at line 46 of file EtaEnergyShowerLib.h.
|
inlineprivate |
Definition at line 81 of file EtaEnergyShowerLib.h.
|
inlinevirtualinherited |
add given string to comment
Definition at line 141 of file IShowerLib.h.
|
private |
Definition at line 550 of file EtaEnergyShowerLib.cxx.
|
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 62 of file EtaEnergyShowerLib.cxx.
|
virtual |
Implements ShowerLib::IShowerLib.
Definition at line 527 of file EtaEnergyShowerLib.cxx.
|
inlinevirtualinherited |
get detector tag
Definition at line 121 of file IShowerLib.h.
|
inlinevirtualinherited |
get geant version tag
Definition at line 133 of file IShowerLib.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
get Geometry tag
Definition at line 130 of file IShowerLib.h.
|
inlinevirtualinherited |
set Geometry tag
Definition at line 131 of file IShowerLib.h.
|
virtual |
get average lateral spread of the showers for the given energy
Implements ShowerLib::IShowerLib.
Definition at line 295 of file EtaEnergyShowerLib.cxx.
|
virtual |
get average length of showers for the given energy
Implements ShowerLib::IShowerLib.
Definition at line 231 of file EtaEnergyShowerLib.cxx.
|
inlinevirtual |
Reimplemented from ShowerLib::IShowerLib.
Definition at line 73 of file EtaEnergyShowerLib.h.
|
virtual |
get shower for given G4 track
Implements ShowerLib::IShowerLib.
Definition at line 151 of file EtaEnergyShowerLib.cxx.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
get geant 4 physics list name
Definition at line 136 of file IShowerLib.h.
|
inlinevirtualinherited |
|
inlineprotectedvirtual |
Implements ShowerLib::IShowerLib.
Definition at line 77 of file EtaEnergyShowerLib.h.
|
private |
read library from given TTree
Definition at line 410 of file EtaEnergyShowerLib.cxx.
|
static |
factory method. create a library from root file. returns NULL if file is invalid.
Definition at line 36 of file EtaEnergyShowerLib.cxx.
|
protectedinherited |
read metadata from the given TTree
Definition at line 16 of file IShowerLib.cxx.
|
private |
Definition at line 516 of file EtaEnergyShowerLib.cxx.
|
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 359 of file EtaEnergyShowerLib.cxx.
|
private |
write library to given TTree
Definition at line 467 of file EtaEnergyShowerLib.cxx.
|
protectedinherited |
write metadata to the given TTree
Definition at line 40 of file IShowerLib.cxx.
|
virtual |
write library to ROOT file
Implements ShowerLib::IShowerLib.
Definition at line 390 of file EtaEnergyShowerLib.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 97 of file EtaEnergyShowerLib.h.
|
private |
Definition at line 92 of file EtaEnergyShowerLib.h.
|
private |
Definition at line 92 of file EtaEnergyShowerLib.h.
|
private |
Definition at line 98 of file EtaEnergyShowerLib.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.