CMS 3D CMS Logo

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