src
SimG4CMS
Forward
interface
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
9
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
10
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
11
#include "
Geometry/ForwardGeometry/interface/ZdcHardcodeGeometryData.h
"
12
13
#include "G4ParticleTable.hh"
14
#include "G4ThreeVector.hh"
15
#include "
DataFormats/HcalDetId/interface/HcalZDCDetId.h
"
16
17
#include <string>
18
#include <memory>
19
20
class
G4Step;
21
class
ZdcShowerLibrary
{
22
public
:
23
//Constructor and Destructor
24
ZdcShowerLibrary
(
const
std::string
&
name
,
edm::ParameterSet
const
&
p
);
25
~ZdcShowerLibrary
();
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,
44
HcalZDCDetId::Section
section
,
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
ZdcShowerLibrary::Hit
Definition:
ZdcShowerLibrary.h:28
ZdcShowerLibrary::Hit::Hit
Hit()
Definition:
ZdcShowerLibrary.h:29
ZdcShowerLibrary::Hit::entryLocal
G4ThreeVector entryLocal
Definition:
ZdcShowerLibrary.h:30
ZdcShowerLibrary::Hit::depth
int depth
Definition:
ZdcShowerLibrary.h:32
MessageLogger.h
convertSQLiteXML.ok
bool ok
Definition:
convertSQLiteXML.py:98
HcalZDCDetId::Section
Section
Definition:
HcalZDCDetId.h:23
ZdcShowerLibrary::ZdcShowerLibrary
ZdcShowerLibrary(const std::string &name, edm::ParameterSet const &p)
Definition:
ZdcShowerLibrary.cc:20
hcalRecHitTable_cff.energy
energy
Definition:
hcalRecHitTable_cff.py:13
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ZdcShowerLibrary::Hit::DeHad
double DeHad
Definition:
ZdcShowerLibrary.h:35
ZdcShowerLibrary::Hit::DeEM
double DeEM
Definition:
ZdcShowerLibrary.h:36
ParameterSet.h
ZdcShowerLibrary
Definition:
ZdcShowerLibrary.h:21
ZdcHardcodeGeometryData.h
ZdcShowerLibrary::getEnergyFromLibrary
int getEnergyFromLibrary(const G4ThreeVector &posHit, const G4ThreeVector &momDir, double energy, G4int parCode, HcalZDCDetId::Section section, bool side, int channel)
Definition:
ZdcShowerLibrary.cc:131
ZdcShowerLibrary::Hit::time
double time
Definition:
ZdcShowerLibrary.h:33
ZdcShowerLibrary::hits
std::vector< ZdcShowerLibrary::Hit > hits
Definition:
ZdcShowerLibrary.h:53
hgcalPlots.section
section
Definition:
hgcalPlots.py:2715
ZdcShowerLibrary::npe
int npe
Definition:
ZdcShowerLibrary.h:52
ZdcShowerLibrary::photonFluctuation
int photonFluctuation(double eav, double esig, double edis)
Definition:
ZdcShowerLibrary.cc:234
HcalZDCDetId.h
ZdcShowerLibrary::verbose
bool verbose
Definition:
ZdcShowerLibrary.h:50
ZdcShowerLibrary::getHits
std::vector< Hit > & getHits(const G4Step *aStep, bool &ok)
Definition:
ZdcShowerLibrary.cc:30
ZdcShowerLibrary::Hit::detID
int detID
Definition:
ZdcShowerLibrary.h:34
ZdcShowerLibrary::Hit::position
G4ThreeVector position
Definition:
ZdcShowerLibrary.h:31
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
ZdcShowerLibrary::~ZdcShowerLibrary
~ZdcShowerLibrary()
Definition:
ZdcShowerLibrary.cc:28
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14