CMS 3D CMS Logo

ZdcShowerLibrary.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_ZdcShowerLibrary_h
2 #define SimG4CMS_ZdcShowerLibrary_h 1
3 // File: ZdcShowerLibrary.h
5 // Description: Gets information from a shower library
6 // E. Garcia June 2008
8 
12 
13 #include "G4ParticleTable.hh"
14 #include "G4ThreeVector.hh"
16 
17 #include <string>
18 #include <memory>
19 
20 class G4Step;
22 public:
23  //Constructor and Destructor
26 
27 public:
28  struct Hit {
29  Hit() {}
30  G4ThreeVector entryLocal;
31  G4ThreeVector position;
32  int depth;
33  double time;
34  int detID;
35  double DeHad;
36  double DeEM;
37  };
38 
39  std::vector<Hit>& getHits(const G4Step* aStep, bool& ok);
40  int getEnergyFromLibrary(const G4ThreeVector& posHit,
41  const G4ThreeVector& momDir,
42  double energy,
43  G4int parCode,
45  bool side,
46  int channel);
47  int photonFluctuation(double eav, double esig, double edis);
48 
49 private:
50  bool verbose;
51 
52  int npe;
53  std::vector<ZdcShowerLibrary::Hit> hits;
54 };
55 #endif
MessageLogger.h
HcalZDCDetId::Section
Section
Definition: HcalZDCDetId.h:23
ZdcShowerLibrary::hits
std::vector< ZdcShowerLibrary::Hit > hits
Definition: ZdcShowerLibrary.h:53
ZdcShowerLibrary::Hit::DeHad
double DeHad
Definition: ZdcShowerLibrary.h:35
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ZdcShowerLibrary::verbose
bool verbose
Definition: ZdcShowerLibrary.h:50
ZdcHardcodeGeometryData.h
ZdcShowerLibrary::npe
int npe
Definition: ZdcShowerLibrary.h:52
HcalZDCDetId.h
ZdcShowerLibrary::getHits
std::vector< Hit > & getHits(const G4Step *aStep, bool &ok)
Definition: ZdcShowerLibrary.cc:30
convertSQLiteXML.ok
bool ok
Definition: convertSQLiteXML.py:98
ZdcShowerLibrary::~ZdcShowerLibrary
~ZdcShowerLibrary()
Definition: ZdcShowerLibrary.cc:28
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
ZdcShowerLibrary::Hit::depth
int depth
Definition: ZdcShowerLibrary.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
ZdcShowerLibrary::Hit::detID
int detID
Definition: ZdcShowerLibrary.h:34
ZdcShowerLibrary::Hit
Definition: ZdcShowerLibrary.h:28
ZdcShowerLibrary::Hit::DeEM
double DeEM
Definition: ZdcShowerLibrary.h:36
ZdcShowerLibrary::Hit::Hit
Hit()
Definition: ZdcShowerLibrary.h:29
ZdcShowerLibrary
Definition: ZdcShowerLibrary.h:21
hgcalPlots.section
section
Definition: hgcalPlots.py:2670
ZdcShowerLibrary::Hit::time
double time
Definition: ZdcShowerLibrary.h:33
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ZdcShowerLibrary::Hit::position
G4ThreeVector position
Definition: ZdcShowerLibrary.h:31
ParameterSet.h
ZdcShowerLibrary::ZdcShowerLibrary
ZdcShowerLibrary(const std::string &name, edm::ParameterSet const &p)
Definition: ZdcShowerLibrary.cc:20
ZdcShowerLibrary::getEnergyFromLibrary
int getEnergyFromLibrary(const G4ThreeVector &posHit, const G4ThreeVector &momDir, double energy, G4int parCode, HcalZDCDetId::Section section, bool side, int channel)
Definition: ZdcShowerLibrary.cc:130
ZdcShowerLibrary::photonFluctuation
int photonFluctuation(double eav, double esig, double edis)
Definition: ZdcShowerLibrary.cc:235
ZdcShowerLibrary::Hit::entryLocal
G4ThreeVector entryLocal
Definition: ZdcShowerLibrary.h:30