ATLAS Offline Software
Classes | Typedefs | Functions
ShowerLib Namespace Reference

Namespace for the ShowerLib related classes. More...

Classes

class  EtaEnergyShowerLib
 Class for shower library shower lib. More...
 
class  FCALDistEnergyShowerLib
 Class for shower library shower lib. More...
 
class  FCALDistEtaEnergyShowerLib
 Class for shower library shower lib. More...
 
class  IShowerLib
 Class for shower library shower lib interface. More...
 
class  Shower
 Class for shower library shower. More...
 
class  ShowerEnergySpot
 
class  ShowerLibStatistics
 
class  StepInfo
 Class to collect information about G4 steps. More...
 
class  StepInfoCollection
 Class for collection of StepInfo class (G4 hits) More...
 
class  TestShowerLib
 Class for shower library shower lib. More...
 

Typedefs

typedef std::list< StepInfo * > StepInfoList
 
typedef IShowerLib *(* readTTree) (TFile *)
 
typedef std::vector< readTTreevectorTTree
 
typedef IShowerLib *(* readStruct) (const std::string &)
 
typedef std::vector< readStructvectorStruct
 

Functions

IShowerLibiterateTTree (TFile *fname)
 
IShowerLibiterateStruct (const std::string &fname)
 
int calcKey (float eta)
 
int calcKey (float eta, float dist)
 
vectorTTree vectorTTreeFull ()
 
vectorStruct vectorStructFull ()
 

Detailed Description

Namespace for the ShowerLib related classes.

Typedef Documentation

◆ readStruct

typedef IShowerLib*(* ShowerLib::readStruct) (const std::string &)

Definition at line 26 of file ShowerLibList.cxx.

◆ readTTree

typedef IShowerLib*(* ShowerLib::readTTree) (TFile *)

Definition at line 24 of file ShowerLibList.cxx.

◆ StepInfoList

typedef std::list<StepInfo*> ShowerLib::StepInfoList

Definition at line 23 of file LArG4GenShowerLib.h.

◆ vectorStruct

typedef std::vector<readStruct> ShowerLib::vectorStruct

Definition at line 27 of file ShowerLibList.cxx.

◆ vectorTTree

typedef std::vector<readTTree> ShowerLib::vectorTTree

Definition at line 25 of file ShowerLibList.cxx.

Function Documentation

◆ calcKey() [1/2]

int ShowerLib::calcKey ( float  eta)
inline

Definition at line 32 of file EtaEnergyShowerLib.cxx.

32  {
33  return (int)(eta*1000);
34  }

◆ calcKey() [2/2]

int ShowerLib::calcKey ( float  eta,
float  dist 
)
inline

Definition at line 35 of file FCALDistEtaEnergyShowerLib.cxx.

35  {
36  return (int)(eta*1000000)+(int)(dist*1000);
37  }

◆ iterateStruct()

IShowerLib * ShowerLib::iterateStruct ( const std::string &  fname)

Definition at line 67 of file ShowerLibList.cxx.

68  {
69  IShowerLib* library = nullptr;
70  vectorStruct structVector = vectorStructFull();
71  vectorStruct::const_iterator libiter;
72  for (libiter = structVector.begin(); libiter != structVector.end(); ++libiter) {
73  library = (**libiter)(fname);
74  if (library != nullptr) break;
75  }
76  return library;
77  }

◆ iterateTTree()

IShowerLib * ShowerLib::iterateTTree ( TFile *  fname)

Definition at line 55 of file ShowerLibList.cxx.

56  {
57  IShowerLib* library = nullptr;
58  vectorTTree ttreeVector = vectorTTreeFull();
59  vectorTTree::const_iterator libiter;
60  for (libiter = ttreeVector.begin(); libiter != ttreeVector.end(); ++libiter) {
61  library = (**libiter)(fname);
62  if (library != nullptr) break;
63  }
64  return library;
65  }

◆ vectorStructFull()

vectorStruct ShowerLib::vectorStructFull ( )

Definition at line 42 of file ShowerLibList.cxx.

43  {
44  vectorStruct structVector;
45 
46  // List all Struct reader functions
47  structVector.push_back(&(EtaEnergyShowerLib::createEmptyLib));
48  structVector.push_back(&(FCALDistEnergyShowerLib::createEmptyLib));
49  structVector.push_back(&(FCALDistEtaEnergyShowerLib::createEmptyLib));
50  structVector.push_back(&(TestShowerLib::createEmptyLib));
51 
52  return structVector;
53  }

◆ vectorTTreeFull()

vectorTTree ShowerLib::vectorTTreeFull ( )

Definition at line 29 of file ShowerLibList.cxx.

30  {
31  vectorTTree ttreeVector;
32 
33  // List all TTree reader functions
34  ttreeVector.push_back(&(EtaEnergyShowerLib::readFromROOTFile));
35  ttreeVector.push_back(&(FCALDistEnergyShowerLib::readFromROOTFile));
36  ttreeVector.push_back(&(FCALDistEtaEnergyShowerLib::readFromROOTFile));
37  ttreeVector.push_back(&(TestShowerLib::readFromROOTFile));
38 
39  return ttreeVector;
40  }
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
ShowerLib::vectorTTree
std::vector< readTTree > vectorTTree
Definition: ShowerLibList.cxx:25
ShowerLib::vectorStruct
std::vector< readStruct > vectorStruct
Definition: ShowerLibList.cxx:27
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
ShowerLib::vectorTTreeFull
vectorTTree vectorTTreeFull()
Definition: ShowerLibList.cxx:29
ShowerLib::vectorStructFull
vectorStruct vectorStructFull()
Definition: ShowerLibList.cxx:42