ATLAS Offline Software
|
Class for shower library shower lib. More...
#include <FCALDistEtaEnergyShowerLib.h>
Public Member Functions | |
virtual | ~FCALDistEtaEnergyShowerLib () |
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::map< float, Shower > | distbin |
typedef std::map< float, distbin > | etabin |
typedef std::map< float, etabin > | library |
Private Member Functions | |
FCALDistEtaEnergyShowerLib () | |
bool | read (TTree *source) |
read library from given TTree More... | |
bool | write (TTree *dest) const |
write library to given TTree More... | |
bool | readStructure (std::map< float, std::vector< float > > &structure) |
float | distance (double x, double y) const |
Private Attributes | |
library | m_libData |
double | m_xrodcent |
double | m_yrodcent |
double | m_step |
bool | m_compat |
Class for shower library shower lib.
Store complete shower library (collection of energy bins)
Definition at line 35 of file FCALDistEtaEnergyShowerLib.h.
|
private |
Definition at line 101 of file FCALDistEtaEnergyShowerLib.h.
|
private |
Definition at line 102 of file FCALDistEtaEnergyShowerLib.h.
|
private |
Definition at line 103 of file FCALDistEtaEnergyShowerLib.h.
|
inlinevirtual |
|
inlineprivate |
Definition at line 84 of file FCALDistEtaEnergyShowerLib.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 94 of file FCALDistEtaEnergyShowerLib.cxx.
|
virtual |
Implements ShowerLib::IShowerLib.
Definition at line 794 of file FCALDistEtaEnergyShowerLib.cxx.
|
inlinevirtualinherited |
|
private |
Definition at line 39 of file FCALDistEtaEnergyShowerLib.cxx.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
virtual |
get average lateral spread of the showers for the given energy
Implements ShowerLib::IShowerLib.
Definition at line 455 of file FCALDistEtaEnergyShowerLib.cxx.
|
virtual |
get average length of showers for the given energy
Implements ShowerLib::IShowerLib.
Definition at line 359 of file FCALDistEtaEnergyShowerLib.cxx.
|
inlinevirtual |
Reimplemented from ShowerLib::IShowerLib.
Definition at line 76 of file FCALDistEtaEnergyShowerLib.h.
|
virtual |
get shower for given G4 track
Implements ShowerLib::IShowerLib.
Definition at line 247 of file FCALDistEtaEnergyShowerLib.cxx.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
protectedvirtual |
Implements ShowerLib::IShowerLib.
Definition at line 771 of file FCALDistEtaEnergyShowerLib.cxx.
|
private |
|
static |
factory method. create a library from root file. returns NULL if file is invalid.
Definition at line 56 of file FCALDistEtaEnergyShowerLib.cxx.
|
protectedinherited |
|
private |
Definition at line 779 of file FCALDistEtaEnergyShowerLib.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 551 of file FCALDistEtaEnergyShowerLib.cxx.
|
private |
|
protectedinherited |
|
virtual |
write library to ROOT file
Implements ShowerLib::IShowerLib.
Definition at line 595 of file FCALDistEtaEnergyShowerLib.cxx.
|
protectedinherited |
comment
Definition at line 112 of file IShowerLib.h.
|
private |
Definition at line 113 of file FCALDistEtaEnergyShowerLib.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 105 of file FCALDistEtaEnergyShowerLib.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.
|
private |
Definition at line 110 of file FCALDistEtaEnergyShowerLib.h.
|
private |
Definition at line 108 of file FCALDistEtaEnergyShowerLib.h.
|
private |
Definition at line 109 of file FCALDistEtaEnergyShowerLib.h.