CMS 3D CMS Logo

BscG4Hit.h
Go to the documentation of this file.
1 // File: BscG4Hit.h
3 // Date: 02.2006
4 //
5 // Package: Bsc
6 // Class : BscG4Hit
7 //
9 #ifndef BscG4Hit_h
10 #define BscG4Hit_h
11 
12 #include "G4VHit.hh"
13 #include "G4ThreeVector.hh"
14 #include <cstdint>
15 #include <iostream>
16 
17 class BscG4Hit : public G4VHit {
18 public:
19  BscG4Hit();
20  ~BscG4Hit() override;
21  BscG4Hit(const BscG4Hit& right);
22  const BscG4Hit& operator=(const BscG4Hit& right);
23  int operator==(const BscG4Hit&) { return 0; }
24 
25  void Draw() override {}
26  void Print() override;
27 
28 public:
29  const G4ThreeVector& getEntry() const { return entry; };
30  void setEntry(const G4ThreeVector& xyz);
31 
32  const G4ThreeVector& getEntryLocalP() const { return entrylp; };
33  void setEntryLocalP(const G4ThreeVector& xyz) { entrylp = xyz; };
34 
35  const G4ThreeVector& getExitLocalP() const { return exitlp; };
36  void setExitLocalP(const G4ThreeVector& xyz) { exitlp = xyz; };
37 
38  float getEM() const { return elem; };
39  void setEM(float e) {
40  elem = e;
42  };
43 
44  float getHadr() const { return hadr; };
45  void setHadr(float e) {
46  hadr = e;
48  };
49 
50  float getIncidentEnergy() const { return theIncidentEnergy; };
51  void setIncidentEnergy(float e) { theIncidentEnergy = e; };
52 
53  int getTrackID() const { return theTrackID; };
54  void setTrackID(int id) { theTrackID = id; };
55 
56  uint32_t getUnitID() const { return theUnitID; };
57  void setUnitID(uint32_t id) { theUnitID = id; };
58 
59  double getTimeSlice() const { return theTimeSlice; };
60  void setTimeSlice(double d) { theTimeSlice = d; };
61  int getTimeSliceID() const { return (int)theTimeSlice; };
62  void addEnergyDeposit(float em, float hd);
63  void addEnergyDeposit(const BscG4Hit& aHit);
64 
65  float getEnergyDeposit() const { return theEnergyLoss; };
66 
67  float getPabs() const { return thePabs; };
68  float getTof() const { return theTof; };
69  float getEnergyLoss() const { return theEnergyLoss; };
70  int getParticleType() const { return theParticleType; };
71 
72  void setPabs(float e) { thePabs = e; };
73  void setTof(float e) { theTof = e; };
74  void setEnergyLoss(float e) { theEnergyLoss = e; };
75  void setParticleType(int i) { theParticleType = i; };
76 
77  float getThetaAtEntry() const { return theThetaAtEntry; };
78  float getPhiAtEntry() const { return thePhiAtEntry; };
79 
80  void setThetaAtEntry(float t) { theThetaAtEntry = t; };
81  void setPhiAtEntry(float f) { thePhiAtEntry = f; };
82 
83  float getX() const { return theX; };
84  void setX(float t) { theX = t; };
85  float getY() const { return theY; };
86  float getZ() const { return theZ; };
87  void setY(float t) { theY = t; };
88  void setZ(float t) { theZ = t; };
89 
90  void setHitPosition(const G4ThreeVector&);
91  void setVertexPosition(const G4ThreeVector&);
92 
93  int getParentId() const { return theParentId; };
94  int getProcessId() const { return theProcessId; };
95  float getVx() const { return theVx; };
96  float getVy() const { return theVy; };
97  float getVz() const { return theVz; };
98 
99  void setParentId(int p) { theParentId = p; };
100  void setProcessId(int p) { theProcessId = p; };
101  void setVx(float p) { theVx = p; };
102  void setVy(float p) { theVy = p; };
103  void setVz(float p) { theVz = p; };
104 
105 private:
106  G4ThreeVector entry; //Entry point
107  G4ThreeVector entrylp; //Entry local point
108  G4ThreeVector exitlp; //Exit local point
109  float elem; //EnergyDeposit of EM particles
110  float hadr; //EnergyDeposit of HD particles
111  float theIncidentEnergy; //Energy of the primary particle
112  int theTrackID; //Geant4 track ID
113  double theTimeSlice; //Time Slice Identification
114 
115  int theUnitID; // Unit Number
116 
117  float theX;
118  float theY;
119  float theZ;
120  float thePabs;
121  float theTof;
124 
127 
130  float theVx;
131  float theVy;
132  float theVz;
133 };
134 
135 std::ostream& operator<<(std::ostream&, const BscG4Hit&);
136 
137 #endif
BscG4Hit::setX
void setX(float t)
Definition: BscG4Hit.h:84
BscG4Hit::theVz
float theVz
Definition: BscG4Hit.h:132
BscG4Hit::theVx
float theVx
Definition: BscG4Hit.h:130
BscG4Hit::setProcessId
void setProcessId(int p)
Definition: BscG4Hit.h:100
BscG4Hit::setVy
void setVy(float p)
Definition: BscG4Hit.h:102
mps_fire.i
i
Definition: mps_fire.py:428
BscG4Hit::getParentId
int getParentId() const
Definition: BscG4Hit.h:93
BscG4Hit::setTof
void setTof(float e)
Definition: BscG4Hit.h:73
BscG4Hit::Draw
void Draw() override
Definition: BscG4Hit.h:25
BscG4Hit::getEnergyLoss
float getEnergyLoss() const
Definition: BscG4Hit.h:69
BscG4Hit::BscG4Hit
BscG4Hit()
Definition: BSCG4Hit.cc:9
BscG4Hit::theUnitID
int theUnitID
Definition: BscG4Hit.h:115
BscG4Hit::setVertexPosition
void setVertexPosition(const G4ThreeVector &)
Definition: BSCG4Hit.cc:124
BscG4Hit::thePabs
float thePabs
Definition: BscG4Hit.h:120
BscG4Hit::operator==
int operator==(const BscG4Hit &)
Definition: BscG4Hit.h:23
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
BscG4Hit::setY
void setY(float t)
Definition: BscG4Hit.h:87
BscG4Hit::getTrackID
int getTrackID() const
Definition: BscG4Hit.h:53
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
BscG4Hit::setTimeSlice
void setTimeSlice(double d)
Definition: BscG4Hit.h:60
BscG4Hit::getEntryLocalP
const G4ThreeVector & getEntryLocalP() const
Definition: BscG4Hit.h:32
BscG4Hit::getX
float getX() const
Definition: BscG4Hit.h:83
BscG4Hit::getY
float getY() const
Definition: BscG4Hit.h:85
operator<<
std::ostream & operator<<(std::ostream &, const BscG4Hit &)
Definition: BSCG4Hit.cc:130
BscG4Hit::addEnergyDeposit
void addEnergyDeposit(float em, float hd)
Definition: BSCG4Hit.cc:112
BscG4Hit::Print
void Print() override
Definition: BSCG4Hit.cc:110
BscG4Hit::getParticleType
int getParticleType() const
Definition: BscG4Hit.h:70
BscG4Hit::getEntry
const G4ThreeVector & getEntry() const
Definition: BscG4Hit.h:29
BscG4Hit::getPhiAtEntry
float getPhiAtEntry() const
Definition: BscG4Hit.h:78
BscG4Hit::theX
float theX
Definition: BscG4Hit.h:117
BscG4Hit::getHadr
float getHadr() const
Definition: BscG4Hit.h:44
BscG4Hit::setExitLocalP
void setExitLocalP(const G4ThreeVector &xyz)
Definition: BscG4Hit.h:36
BscG4Hit::theParentId
int theParentId
Definition: BscG4Hit.h:128
BscG4Hit::getTof
float getTof() const
Definition: BscG4Hit.h:68
BscG4Hit::theZ
float theZ
Definition: BscG4Hit.h:119
BscG4Hit::getVy
float getVy() const
Definition: BscG4Hit.h:96
BscG4Hit::theIncidentEnergy
float theIncidentEnergy
Definition: BscG4Hit.h:111
BscG4Hit::theY
float theY
Definition: BscG4Hit.h:118
BscG4Hit::getTimeSliceID
int getTimeSliceID() const
Definition: BscG4Hit.h:61
BscG4Hit::theProcessId
int theProcessId
Definition: BscG4Hit.h:129
BscG4Hit::getIncidentEnergy
float getIncidentEnergy() const
Definition: BscG4Hit.h:50
BscG4Hit::setPhiAtEntry
void setPhiAtEntry(float f)
Definition: BscG4Hit.h:81
BscG4Hit::getThetaAtEntry
float getThetaAtEntry() const
Definition: BscG4Hit.h:77
BscG4Hit::theParticleType
int theParticleType
Definition: BscG4Hit.h:123
BscG4Hit::theTimeSlice
double theTimeSlice
Definition: BscG4Hit.h:113
BscG4Hit::entry
G4ThreeVector entry
Definition: BscG4Hit.h:103
BscG4Hit::getZ
float getZ() const
Definition: BscG4Hit.h:86
BscG4Hit::setTrackID
void setTrackID(int id)
Definition: BscG4Hit.h:54
BscG4Hit::setPabs
void setPabs(float e)
Definition: BscG4Hit.h:72
BscG4Hit::getEM
float getEM() const
Definition: BscG4Hit.h:38
BscG4Hit::theThetaAtEntry
float theThetaAtEntry
Definition: BscG4Hit.h:125
BscG4Hit::operator=
const BscG4Hit & operator=(const BscG4Hit &right)
Definition: BSCG4Hit.cc:66
BscG4Hit::setVz
void setVz(float p)
Definition: BscG4Hit.h:103
BscG4Hit::entrylp
G4ThreeVector entrylp
Definition: BscG4Hit.h:107
BscG4Hit::elem
float elem
Definition: BscG4Hit.h:109
BscG4Hit::theEnergyLoss
float theEnergyLoss
Definition: BscG4Hit.h:122
BscG4Hit::getUnitID
uint32_t getUnitID() const
Definition: BscG4Hit.h:56
BscG4Hit::~BscG4Hit
~BscG4Hit() override
Definition: BSCG4Hit.cc:35
BscG4Hit::setIncidentEnergy
void setIncidentEnergy(float e)
Definition: BscG4Hit.h:51
BscG4Hit::hadr
float hadr
Definition: BscG4Hit.h:110
BscG4Hit::setEntryLocalP
void setEntryLocalP(const G4ThreeVector &xyz)
Definition: BscG4Hit.h:33
BscG4Hit::theVy
float theVy
Definition: BscG4Hit.h:131
BscG4Hit::getVz
float getVz() const
Definition: BscG4Hit.h:97
BscG4Hit::setEnergyLoss
void setEnergyLoss(float e)
Definition: BscG4Hit.h:74
BscG4Hit::setVx
void setVx(float p)
Definition: BscG4Hit.h:101
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
BscG4Hit::setParentId
void setParentId(int p)
Definition: BscG4Hit.h:99
BscG4Hit::setHitPosition
void setHitPosition(const G4ThreeVector &)
Definition: BSCG4Hit.cc:118
BscG4Hit::getVx
float getVx() const
Definition: BscG4Hit.h:95
BscG4Hit::setHadr
void setHadr(float e)
Definition: BscG4Hit.h:45
BscG4Hit::setZ
void setZ(float t)
Definition: BscG4Hit.h:88
BscG4Hit::getExitLocalP
const G4ThreeVector & getExitLocalP() const
Definition: BscG4Hit.h:35
BscG4Hit::setThetaAtEntry
void setThetaAtEntry(float t)
Definition: BscG4Hit.h:80
BscG4Hit::setEntry
void setEntry(const G4ThreeVector &xyz)
Definition: BSCG4Hit.cc:97
ztail.d
d
Definition: ztail.py:151
BscG4Hit::setParticleType
void setParticleType(int i)
Definition: BscG4Hit.h:75
BscG4Hit
Definition: BscG4Hit.h:17
BscG4Hit::theTof
float theTof
Definition: BscG4Hit.h:121
BscG4Hit::setUnitID
void setUnitID(uint32_t id)
Definition: BscG4Hit.h:57
BscG4Hit::theTrackID
int theTrackID
Definition: BscG4Hit.h:112
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
BscG4Hit::thePhiAtEntry
float thePhiAtEntry
Definition: BscG4Hit.h:126
BscG4Hit::getTimeSlice
double getTimeSlice() const
Definition: BscG4Hit.h:59
BscG4Hit::getEnergyDeposit
float getEnergyDeposit() const
Definition: BscG4Hit.h:65
BscG4Hit::exitlp
G4ThreeVector exitlp
Definition: BscG4Hit.h:108
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
BscG4Hit::getPabs
float getPabs() const
Definition: BscG4Hit.h:67
BscG4Hit::getProcessId
int getProcessId() const
Definition: BscG4Hit.h:94
BscG4Hit::setEM
void setEM(float e)
Definition: BscG4Hit.h:39