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
float getZ() const
Definition: FP420G4Hit.cc:162
float theTof
Definition: FP420G4Hit.h:115
float getThetaAtEntry() const
Definition: FP420G4Hit.cc:150
const FP420G4Hit & operator=(const FP420G4Hit &right)
Definition: FP420G4Hit.cc:67
void setY(float t)
Definition: FP420G4Hit.cc:160
void setPhiAtEntry(float f)
Definition: FP420G4Hit.cc:154
float getY() const
Definition: FP420G4Hit.cc:159
void setVz(float p)
Definition: FP420G4Hit.cc:175
float getVz() const
Definition: FP420G4Hit.cc:174
std::ostream & operator<<(std::ostream &, const FP420G4Hit &)
Definition: FP420G4Hit.cc:177
void setEntry(const G4ThreeVector &xyz)
Definition: FP420G4Hit.cc:105
double theIncidentEnergy
Definition: FP420G4Hit.h:104
G4ThreeVector entrylp
Definition: FP420G4Hit.h:100
void setZ(float t)
Definition: FP420G4Hit.cc:163
double theTimeSlice
Definition: FP420G4Hit.h:107
void setPabs(float e)
Definition: FP420G4Hit.cc:144
int theParentId
Definition: FP420G4Hit.h:122
int theParticleType
Definition: FP420G4Hit.h:117
void setVx(float p)
Definition: FP420G4Hit.cc:169
void setTrackID(int i)
Definition: FP420G4Hit.cc:123
unsigned int getUnitID() const
Definition: FP420G4Hit.cc:125
void addEnergyDeposit(double em, double hd)
Definition: FP420G4Hit.cc:132
double getHadr() const
Definition: FP420G4Hit.cc:116
void setEnergyLoss(float e)
Definition: FP420G4Hit.cc:147
double getIncidentEnergy() const
Definition: FP420G4Hit.cc:119
double elem
Definition: FP420G4Hit.h:102
void Draw() override
Definition: FP420G4Hit.h:26
int getTimeSliceID() const
Definition: FP420G4Hit.cc:130
void setTof(float e)
Definition: FP420G4Hit.cc:145
G4ThreeVector getEntry() const
Definition: FP420G4Hit.cc:104
double getEM() const
Definition: FP420G4Hit.cc:113
double hadr
Definition: FP420G4Hit.h:103
double getTimeSlice() const
Definition: FP420G4Hit.cc:128
unsigned int getTrackID() const
Definition: FP420G4Hit.cc:122
G4int theTrackID
Definition: FP420G4Hit.h:105
G4ThreeVector exitlp
Definition: FP420G4Hit.h:101
void Print() override
Definition: FP420G4Hit.cc:102
double f[11][100]
int getParticleType() const
Definition: FP420G4Hit.cc:142
G4ThreeVector getEntryLocalP() const
Definition: FP420G4Hit.cc:107
float getVx() const
Definition: FP420G4Hit.cc:168
void setTimeSlice(double d)
Definition: FP420G4Hit.cc:129
float theVy
Definition: FP420G4Hit.h:124
d
Definition: ztail.py:151
void setEntryLocalP(const G4ThreeVector &xyz1)
Definition: FP420G4Hit.cc:108
~FP420G4Hit() override
Definition: FP420G4Hit.cc:37
float getVy() const
Definition: FP420G4Hit.cc:171
float getTof() const
Definition: FP420G4Hit.cc:140
void setEM(double e)
Definition: FP420G4Hit.cc:114
void setIncidentEnergy(double e)
Definition: FP420G4Hit.cc:120
float theThetaAtEntry
Definition: FP420G4Hit.h:119
void setX(float t)
Definition: FP420G4Hit.cc:157
void setExitLocalP(const G4ThreeVector &xyz1)
Definition: FP420G4Hit.cc:111
float thePabs
Definition: FP420G4Hit.h:114
float theY
Definition: FP420G4Hit.h:112
double getEnergyDeposit() const
Definition: FP420G4Hit.cc:137
int theUnitID
Definition: FP420G4Hit.h:109
void setParticleType(short i)
Definition: FP420G4Hit.cc:148
void setThetaAtEntry(float t)
Definition: FP420G4Hit.cc:153
int operator==(const FP420G4Hit &)
Definition: FP420G4Hit.h:24
void setUnitID(unsigned int i)
Definition: FP420G4Hit.cc:126
G4ThreeVector entry
Definition: FP420G4Hit.h:99
float getPhiAtEntry() const
Definition: FP420G4Hit.cc:151
float getPabs() const
Definition: FP420G4Hit.cc:139
float theZ
Definition: FP420G4Hit.h:113
int getParentId() const
Definition: FP420G4Hit.cc:165
float theVx
Definition: FP420G4Hit.h:123
float getEnergyLoss() const
Definition: FP420G4Hit.cc:141
float getX() const
Definition: FP420G4Hit.cc:156
void setParentId(int p)
Definition: FP420G4Hit.cc:166
float theEnergyLoss
Definition: FP420G4Hit.h:116
float thePhiAtEntry
Definition: FP420G4Hit.h:120
void addEnergyLoss(float e)
Definition: FP420G4Hit.cc:146
void setHadr(double e)
Definition: FP420G4Hit.cc:117
float theX
Definition: FP420G4Hit.h:111
float theVz
Definition: FP420G4Hit.h:125
G4ThreeVector getExitLocalP() const
Definition: FP420G4Hit.cc:110
void setVy(float p)
Definition: FP420G4Hit.cc:172