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 "
DetectorDescription/Core/interface/DDsvalues.h
"
16
#include "
DataFormats/HcalDetId/interface/HcalZDCDetId.h
"
17
18
#include <string>
19
#include <memory>
20
21
class
G4Step;
22
class
ZdcShowerLibrary
{
23
public
:
24
//Constructor and Destructor
25
ZdcShowerLibrary
(
const
std::string
&
name
,
edm::ParameterSet
const
&
p
);
26
~ZdcShowerLibrary
() =
default
;
27
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
void
initRun
(G4ParticleTable* theParticleTable);
40
std::vector<Hit>&
getHits
(
const
G4Step* aStep,
bool
&
ok
);
41
int
getEnergyFromLibrary
(
const
G4ThreeVector& posHit,
42
const
G4ThreeVector& momDir,
43
double
energy
,
44
G4int parCode,
45
HcalZDCDetId::Section
section
,
46
bool
side,
47
int
channel);
48
int
photonFluctuation
(
double
eav,
double
esig,
double
edis);
49
int
encodePartID
(G4int parCode);
50
51
private
:
52
bool
verbose
;
53
G4int
emPDG
,
epPDG
,
gammaPDG
;
54
G4int
pi0PDG
,
etaPDG
,
nuePDG
,
numuPDG
,
nutauPDG
;
55
G4int
anuePDG
,
anumuPDG
,
anutauPDG
,
geantinoPDG
;
56
int
npe
;
57
std::vector<ZdcShowerLibrary::Hit>
hits
;
58
};
59
#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
ZdcShowerLibrary::~ZdcShowerLibrary
~ZdcShowerLibrary()=default
ZdcShowerLibrary::pi0PDG
G4int pi0PDG
Definition:
ZdcShowerLibrary.h:54
convertSQLiteXML.ok
bool ok
Definition:
convertSQLiteXML.py:98
ZdcShowerLibrary::nutauPDG
G4int nutauPDG
Definition:
ZdcShowerLibrary.h:54
ZdcShowerLibrary::geantinoPDG
G4int geantinoPDG
Definition:
ZdcShowerLibrary.h:55
ZdcShowerLibrary::anutauPDG
G4int anutauPDG
Definition:
ZdcShowerLibrary.h:55
HcalZDCDetId::Section
Section
Definition:
HcalZDCDetId.h:23
ZdcShowerLibrary::gammaPDG
G4int gammaPDG
Definition:
ZdcShowerLibrary.h:53
ZdcShowerLibrary::ZdcShowerLibrary
ZdcShowerLibrary(const std::string &name, edm::ParameterSet const &p)
Definition:
ZdcShowerLibrary.cc:19
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:22
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:148
ZdcShowerLibrary::nuePDG
G4int nuePDG
Definition:
ZdcShowerLibrary.h:54
ZdcShowerLibrary::Hit::time
double time
Definition:
ZdcShowerLibrary.h:33
ZdcShowerLibrary::epPDG
G4int epPDG
Definition:
ZdcShowerLibrary.h:53
ZdcShowerLibrary::hits
std::vector< ZdcShowerLibrary::Hit > hits
Definition:
ZdcShowerLibrary.h:57
ZdcShowerLibrary::emPDG
G4int emPDG
Definition:
ZdcShowerLibrary.h:53
hgcalPlots.section
section
Definition:
hgcalPlots.py:2715
ZdcShowerLibrary::anumuPDG
G4int anumuPDG
Definition:
ZdcShowerLibrary.h:55
ZdcShowerLibrary::npe
int npe
Definition:
ZdcShowerLibrary.h:56
ZdcShowerLibrary::photonFluctuation
int photonFluctuation(double eav, double esig, double edis)
Definition:
ZdcShowerLibrary.cc:259
HcalZDCDetId.h
ZdcShowerLibrary::anuePDG
G4int anuePDG
Definition:
ZdcShowerLibrary.h:55
ZdcShowerLibrary::verbose
bool verbose
Definition:
ZdcShowerLibrary.h:52
DDsvalues.h
ZdcShowerLibrary::numuPDG
G4int numuPDG
Definition:
ZdcShowerLibrary.h:54
ZdcShowerLibrary::getHits
std::vector< Hit > & getHits(const G4Step *aStep, bool &ok)
Definition:
ZdcShowerLibrary.cc:48
ZdcShowerLibrary::Hit::detID
int detID
Definition:
ZdcShowerLibrary.h:34
ZdcShowerLibrary::encodePartID
int encodePartID(G4int parCode)
Definition:
ZdcShowerLibrary.cc:272
ZdcShowerLibrary::etaPDG
G4int etaPDG
Definition:
ZdcShowerLibrary.h:54
ZdcShowerLibrary::Hit::position
G4ThreeVector position
Definition:
ZdcShowerLibrary.h:31
edm::ParameterSet
Definition:
ParameterSet.h:48
ZdcShowerLibrary::initRun
void initRun(G4ParticleTable *theParticleTable)
Definition:
ZdcShowerLibrary.cc:27
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14