CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <boost/cstdint.hpp>
14 #include <iostream>
15 
16 #include "G4Step.hh"
17 //#include "G4StepPoint.hh"
18 
19 class FP420G4Hit : public G4VHit {
20 
21 public:
22 
23  FP420G4Hit();
24  ~FP420G4Hit();
25  FP420G4Hit(const FP420G4Hit &right);
26  const FP420G4Hit& operator=(const FP420G4Hit &right);
27  int operator==(const FP420G4Hit &){return 0;}
28 
29  void Draw(){}
30  void Print();
31 
32 public:
33 
34  G4ThreeVector getEntry() const;
35  void setEntry(G4ThreeVector xyz);
36 
37  G4ThreeVector getEntryLocalP() const;
38  void setEntryLocalP(G4ThreeVector xyz1);
39 
40  G4ThreeVector getExitLocalP() const;
41  void setExitLocalP(G4ThreeVector xyz1);
42 
43  double getEM() const;
44  void setEM (double e);
45 
46  double getHadr() const;
47  void setHadr (double e);
48 
49  double getIncidentEnergy() const;
50  void setIncidentEnergy (double e);
51 
52  //G4int getTrackID() const;
53  unsigned int getTrackID() const;
54  void setTrackID (int i);
55 
56  unsigned int getUnitID() const;
57  void setUnitID (unsigned int i);
58 
59  double getTimeSlice() const;
60  void setTimeSlice(double d);
61  int getTimeSliceID() const;
62 
63  void addEnergyDeposit(double em, double hd);
64  void addEnergyDeposit(const FP420G4Hit& aHit);
65 
66  double getEnergyDeposit() const;
67 
68  float getPabs() const;
69  float getTof() const;
70  float getEnergyLoss() const;
71  int getParticleType() const;
72 
73  void setPabs(float e) ;
74  void setTof(float e) ;
75  void addEnergyLoss(float e) ;
76  void setEnergyLoss(float e) ;
77  void setParticleType(short i) ;
78 
79  float getThetaAtEntry() const;
80  float getPhiAtEntry() const;
81 
82  void setThetaAtEntry(float t);
83  void setPhiAtEntry(float f) ;
84 
85  float getX() const;
86  void setX(float t);
87  float getY() const;
88  float getZ() const;
89  void setY(float t);
90  void setZ(float t);
91 
92 
93  int getParentId() const;
94  float getVx() const;
95  float getVy() const;
96  float getVz() const;
97 
98  void setParentId(int p);
99  void setVx(float p);
100  void setVy(float p);
101  void setVz(float p);
102 
103 
104 private:
105 
106  G4ThreeVector entry; //Entry point
107  G4ThreeVector entrylp; //Entry local point
108  G4ThreeVector exitlp; //Exit local point
109  double elem; //EnergyDeposit of EM particles
110  double hadr; //EnergyDeposit of HD particles
111  double theIncidentEnergy; //Energy of the primary particle
112  G4int theTrackID; //Identification number of the primary
113  //particle
114  double theTimeSlice; //Time Slice Identification
115 
116  int theUnitID; //FP420 Unit Number
117 
118  float theX;
119  float theY;
120  float theZ;
121  float thePabs ;
122  float theTof ;
125 
126 
129 
131  float theVx;
132  float theVy;
133  float theVz;
134 
135 
136 };
137 
138 std::ostream& operator<<(std::ostream&, const FP420G4Hit&);
139 
140 #endif
141 
float theTof
Definition: FP420G4Hit.h:122
int i
Definition: DBlmapReader.cc:9
const FP420G4Hit & operator=(const FP420G4Hit &right)
Definition: FP420G4Hit.cc:72
void setY(float t)
Definition: FP420G4Hit.cc:169
void setEntry(G4ThreeVector xyz)
Definition: FP420G4Hit.cc:116
double getEnergyDeposit() const
Definition: FP420G4Hit.cc:146
void setPhiAtEntry(float f)
Definition: FP420G4Hit.cc:163
void Print()
Definition: FP420G4Hit.cc:111
float getTof() const
Definition: FP420G4Hit.cc:149
void setVz(float p)
Definition: FP420G4Hit.cc:184
double theIncidentEnergy
Definition: FP420G4Hit.h:111
G4ThreeVector entrylp
Definition: FP420G4Hit.h:107
G4ThreeVector getExitLocalP() const
Definition: FP420G4Hit.cc:121
void setZ(float t)
Definition: FP420G4Hit.cc:172
float getVz() const
Definition: FP420G4Hit.cc:183
double theTimeSlice
Definition: FP420G4Hit.h:114
void setPabs(float e)
Definition: FP420G4Hit.cc:153
void Draw()
Definition: FP420G4Hit.h:29
int theParentId
Definition: FP420G4Hit.h:130
float getPabs() const
Definition: FP420G4Hit.cc:148
int theParticleType
Definition: FP420G4Hit.h:124
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void setVx(float p)
Definition: FP420G4Hit.cc:178
void setTrackID(int i)
Definition: FP420G4Hit.cc:134
unsigned int getTrackID() const
Definition: FP420G4Hit.cc:133
void addEnergyDeposit(double em, double hd)
Definition: FP420G4Hit.cc:143
float getVx() const
Definition: FP420G4Hit.cc:177
float getPhiAtEntry() const
Definition: FP420G4Hit.cc:160
int getParentId() const
Definition: FP420G4Hit.cc:174
unsigned int getUnitID() const
Definition: FP420G4Hit.cc:136
void setEnergyLoss(float e)
Definition: FP420G4Hit.cc:156
double elem
Definition: FP420G4Hit.h:109
float getVy() const
Definition: FP420G4Hit.cc:180
void setTof(float e)
Definition: FP420G4Hit.cc:154
double hadr
Definition: FP420G4Hit.h:110
double getIncidentEnergy() const
Definition: FP420G4Hit.cc:130
G4int theTrackID
Definition: FP420G4Hit.h:112
G4ThreeVector exitlp
Definition: FP420G4Hit.h:108
double f[11][100]
double getHadr() const
Definition: FP420G4Hit.cc:127
G4ThreeVector getEntryLocalP() const
Definition: FP420G4Hit.cc:118
void setTimeSlice(double d)
Definition: FP420G4Hit.cc:140
float getX() const
Definition: FP420G4Hit.cc:165
float theVy
Definition: FP420G4Hit.h:132
float getEnergyLoss() const
Definition: FP420G4Hit.cc:150
void setEM(double e)
Definition: FP420G4Hit.cc:125
void setIncidentEnergy(double e)
Definition: FP420G4Hit.cc:131
float theThetaAtEntry
Definition: FP420G4Hit.h:127
int getTimeSliceID() const
Definition: FP420G4Hit.cc:141
void setX(float t)
Definition: FP420G4Hit.cc:166
float thePabs
Definition: FP420G4Hit.h:121
float theY
Definition: FP420G4Hit.h:119
int theUnitID
Definition: FP420G4Hit.h:116
int getParticleType() const
Definition: FP420G4Hit.cc:151
void setParticleType(short i)
Definition: FP420G4Hit.cc:157
void setExitLocalP(G4ThreeVector xyz1)
Definition: FP420G4Hit.cc:122
void setThetaAtEntry(float t)
Definition: FP420G4Hit.cc:162
int operator==(const FP420G4Hit &)
Definition: FP420G4Hit.h:27
void setUnitID(unsigned int i)
Definition: FP420G4Hit.cc:137
G4ThreeVector entry
Definition: FP420G4Hit.h:106
float theZ
Definition: FP420G4Hit.h:120
double getEM() const
Definition: FP420G4Hit.cc:124
float theVx
Definition: FP420G4Hit.h:131
G4ThreeVector getEntry() const
Definition: FP420G4Hit.cc:115
float getY() const
Definition: FP420G4Hit.cc:168
void setParentId(int p)
Definition: FP420G4Hit.cc:175
double getTimeSlice() const
Definition: FP420G4Hit.cc:139
float theEnergyLoss
Definition: FP420G4Hit.h:123
float getZ() const
Definition: FP420G4Hit.cc:171
float thePhiAtEntry
Definition: FP420G4Hit.h:128
void addEnergyLoss(float e)
Definition: FP420G4Hit.cc:155
void setHadr(double e)
Definition: FP420G4Hit.cc:128
float getThetaAtEntry() const
Definition: FP420G4Hit.cc:159
float theX
Definition: FP420G4Hit.h:118
float theVz
Definition: FP420G4Hit.h:133
void setVy(float p)
Definition: FP420G4Hit.cc:181
void setEntryLocalP(G4ThreeVector xyz1)
Definition: FP420G4Hit.cc:119