CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 theTof
Definition: FP420G4Hit.h:115
const FP420G4Hit & operator=(const FP420G4Hit &right)
Definition: FP420G4Hit.cc:66
void setY(float t)
Definition: FP420G4Hit.cc:159
double getEnergyDeposit() const
Definition: FP420G4Hit.cc:136
void setPhiAtEntry(float f)
Definition: FP420G4Hit.cc:153
float getTof() const
Definition: FP420G4Hit.cc:139
void setVz(float p)
Definition: FP420G4Hit.cc:174
void setEntry(const G4ThreeVector &xyz)
Definition: FP420G4Hit.cc:104
double theIncidentEnergy
Definition: FP420G4Hit.h:104
G4ThreeVector entrylp
Definition: FP420G4Hit.h:100
G4ThreeVector getExitLocalP() const
Definition: FP420G4Hit.cc:109
void setZ(float t)
Definition: FP420G4Hit.cc:162
float getVz() const
Definition: FP420G4Hit.cc:173
double theTimeSlice
Definition: FP420G4Hit.h:107
void setPabs(float e)
Definition: FP420G4Hit.cc:143
int theParentId
Definition: FP420G4Hit.h:122
float getPabs() const
Definition: FP420G4Hit.cc:138
int theParticleType
Definition: FP420G4Hit.h:117
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
void setVx(float p)
Definition: FP420G4Hit.cc:168
void setTrackID(int i)
Definition: FP420G4Hit.cc:122
unsigned int getTrackID() const
Definition: FP420G4Hit.cc:121
void addEnergyDeposit(double em, double hd)
Definition: FP420G4Hit.cc:131
float getVx() const
Definition: FP420G4Hit.cc:167
float getPhiAtEntry() const
Definition: FP420G4Hit.cc:150
tuple d
Definition: ztail.py:151
int getParentId() const
Definition: FP420G4Hit.cc:164
unsigned int getUnitID() const
Definition: FP420G4Hit.cc:124
void setEnergyLoss(float e)
Definition: FP420G4Hit.cc:146
double elem
Definition: FP420G4Hit.h:102
float getVy() const
Definition: FP420G4Hit.cc:170
void Draw() override
Definition: FP420G4Hit.h:26
void setTof(float e)
Definition: FP420G4Hit.cc:144
double hadr
Definition: FP420G4Hit.h:103
double getIncidentEnergy() const
Definition: FP420G4Hit.cc:118
G4int theTrackID
Definition: FP420G4Hit.h:105
G4ThreeVector exitlp
Definition: FP420G4Hit.h:101
void Print() override
Definition: FP420G4Hit.cc:101
double getHadr() const
Definition: FP420G4Hit.cc:115
G4ThreeVector getEntryLocalP() const
Definition: FP420G4Hit.cc:106
void setTimeSlice(double d)
Definition: FP420G4Hit.cc:128
float getX() const
Definition: FP420G4Hit.cc:155
float theVy
Definition: FP420G4Hit.h:124
float getEnergyLoss() const
Definition: FP420G4Hit.cc:140
void setEntryLocalP(const G4ThreeVector &xyz1)
Definition: FP420G4Hit.cc:107
~FP420G4Hit() override
Definition: FP420G4Hit.cc:36
void setEM(double e)
Definition: FP420G4Hit.cc:113
void setIncidentEnergy(double e)
Definition: FP420G4Hit.cc:119
float theThetaAtEntry
Definition: FP420G4Hit.h:119
int getTimeSliceID() const
Definition: FP420G4Hit.cc:129
void setX(float t)
Definition: FP420G4Hit.cc:156
void setExitLocalP(const G4ThreeVector &xyz1)
Definition: FP420G4Hit.cc:110
float thePabs
Definition: FP420G4Hit.h:114
float theY
Definition: FP420G4Hit.h:112
int theUnitID
Definition: FP420G4Hit.h:109
int getParticleType() const
Definition: FP420G4Hit.cc:141
void setParticleType(short i)
Definition: FP420G4Hit.cc:147
void setThetaAtEntry(float t)
Definition: FP420G4Hit.cc:152
int operator==(const FP420G4Hit &)
Definition: FP420G4Hit.h:24
void setUnitID(unsigned int i)
Definition: FP420G4Hit.cc:125
G4ThreeVector entry
Definition: FP420G4Hit.h:99
float theZ
Definition: FP420G4Hit.h:113
double getEM() const
Definition: FP420G4Hit.cc:112
float theVx
Definition: FP420G4Hit.h:123
G4ThreeVector getEntry() const
Definition: FP420G4Hit.cc:103
float getY() const
Definition: FP420G4Hit.cc:158
void setParentId(int p)
Definition: FP420G4Hit.cc:165
double getTimeSlice() const
Definition: FP420G4Hit.cc:127
float theEnergyLoss
Definition: FP420G4Hit.h:116
float getZ() const
Definition: FP420G4Hit.cc:161
float thePhiAtEntry
Definition: FP420G4Hit.h:120
void addEnergyLoss(float e)
Definition: FP420G4Hit.cc:145
void setHadr(double e)
Definition: FP420G4Hit.cc:116
float getThetaAtEntry() const
Definition: FP420G4Hit.cc:149
float theX
Definition: FP420G4Hit.h:111
float theVz
Definition: FP420G4Hit.h:125
void setVy(float p)
Definition: FP420G4Hit.cc:171