CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TotemG4Hit.h
Go to the documentation of this file.
1 #ifndef Forward_TotemG4Hit_h
2 #define Forward_TotemG4Hit_h 1
3 // -*- C++ -*-
4 //
5 // Package: Forward
6 // Class : TotemG4Hit
7 //
25 //
26 // Original Author:
27 // Created: Tue May 16 10:14:34 CEST 2006
28 // $Id: TotemG4Hit.h,v 1.2 2007/11/20 12:37:19 fabiocos Exp $
29 //
30 
31 // system include files
32 
33 // user include files
34 
35 #include "G4VHit.hh"
37 #include <boost/cstdint.hpp>
38 #include <iostream>
39 
40 class TotemG4Hit : public G4VHit {
41 
42 public:
43 
44  // ---------- Constructor and destructor -----------------
45  TotemG4Hit();
46  ~TotemG4Hit();
47  TotemG4Hit(const TotemG4Hit &right);
48 
49  // ---------- operators ----------------------------------
50  const TotemG4Hit& operator=(const TotemG4Hit &right);
51  int operator==(const TotemG4Hit &){return 0;}
52 
53  // ---------- member functions ---------------------------
54  void Draw(){}
55  void Print();
56 
57  math::XYZPoint getEntry() const;
58  void setEntry(double x, double y, double z) {entry.SetCoordinates(x,y,z);}
59 
60  double getEM() const;
61  void setEM (double e);
62 
63  double getHadr() const;
64  void setHadr (double e);
65 
66  double getIncidentEnergy() const;
67  void setIncidentEnergy (double e);
68 
69  int getTrackID() const;
70  void setTrackID (int i);
71 
72  uint32_t getUnitID() const;
73  void setUnitID (uint32_t i);
74 
75  double getTimeSlice() const;
76  void setTimeSlice(double d);
77  int getTimeSliceID() const;
78 
79  void addEnergyDeposit(double em, double hd);
80  void addEnergyDeposit(const TotemG4Hit& aHit);
81 
82  double getEnergyDeposit() const;
83 
84  float getPabs() const;
85  float getTof() const;
86  float getEnergyLoss() const;
87  int getParticleType() const;
88 
89  void setPabs(float e);
90  void setTof(float e);
91  void setEnergyLoss(float e) ;
92  void setParticleType(short i) ;
93 
94  float getThetaAtEntry() const;
95  float getPhiAtEntry() const;
96 
97  void setThetaAtEntry(float t);
98  void setPhiAtEntry(float f) ;
99 
100  float getX() const;
101  float getY() const;
102  float getZ() const;
103  void setX(float t);
104  void setY(float t);
105  void setZ(float t);
106 
107  int getParentId() const;
108  float getVx() const;
109  float getVy() const;
110  float getVz() const;
111 
112  void setParentId(int p);
113  void setVx(float p);
114  void setVy(float p);
115  void setVz(float p);
116 
117 private:
118 
119  math::XYZPoint entry; //Entry point
120  double elem; //EnergyDeposit of EM particles
121  double hadr; //EnergyDeposit of HD particles
122  double theIncidentEnergy; //Energy of the primary particle
123  int theTrackID; //Identification number of the primary
124  //particle
125  uint32_t theUnitID; //Totem Unit Number
126  double theTimeSlice; //Time Slice Identification
127 
128 
129  float theX;
130  float theY;
131  float theZ;
132  float thePabs;
133  float theTof;
136 
141 
143  float theVx;
144  float theVy;
145  float theVz;
146 
147 };
148 
149 std::ostream& operator<<(std::ostream&, const TotemG4Hit&);
150 
151 #endif
152 
void setVz(float p)
Definition: TotemG4Hit.cc:184
float theThetaAtEntry
Definition: TotemG4Hit.h:137
int i
Definition: DBlmapReader.cc:9
float theTof
Definition: TotemG4Hit.h:133
void setPabs(float e)
Definition: TotemG4Hit.cc:154
void setEnergyLoss(float e)
Definition: TotemG4Hit.cc:156
void Print()
Definition: TotemG4Hit.cc:119
int theParentId
Definition: TotemG4Hit.h:142
int operator==(const TotemG4Hit &)
Definition: TotemG4Hit.h:51
void setEntry(double x, double y, double z)
Definition: TotemG4Hit.h:58
float theVx
Definition: TotemG4Hit.h:143
float getTof() const
Definition: TotemG4Hit.cc:150
void setHadr(double e)
Definition: TotemG4Hit.cc:130
float getEnergyLoss() const
Definition: TotemG4Hit.cc:151
void setX(float t)
Definition: TotemG4Hit.cc:166
float theY
Definition: TotemG4Hit.h:130
int theTrackID
Definition: TotemG4Hit.h:123
math::XYZPoint getEntry() const
Definition: TotemG4Hit.cc:124
float getPabs() const
Definition: TotemG4Hit.cc:149
float theZ
Definition: TotemG4Hit.h:131
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float getVy() const
Definition: TotemG4Hit.cc:180
void setVy(float p)
Definition: TotemG4Hit.cc:181
uint32_t theUnitID
Definition: TotemG4Hit.h:125
double double double z
void setTimeSlice(double d)
Definition: TotemG4Hit.cc:142
double theTimeSlice
Definition: TotemG4Hit.h:126
void Draw()
Definition: TotemG4Hit.h:54
void setY(float t)
Definition: TotemG4Hit.cc:169
float thePhiAtEntry
Definition: TotemG4Hit.h:138
float getPhiAtEntry() const
Definition: TotemG4Hit.cc:160
std::pair< std::string, MonitorElement * > entry
Definition: ME_MAP.h:8
void setVx(float p)
Definition: TotemG4Hit.cc:178
float theX
Definition: TotemG4Hit.h:129
int getTrackID() const
Definition: TotemG4Hit.cc:135
int getTimeSliceID() const
Definition: TotemG4Hit.cc:143
double f[11][100]
float theEnergyLoss
Definition: TotemG4Hit.h:134
float theVz
Definition: TotemG4Hit.h:145
void setParentId(int p)
Definition: TotemG4Hit.cc:175
int theParticleType
Definition: TotemG4Hit.h:135
float getVx() const
Definition: TotemG4Hit.cc:177
void setZ(float t)
Definition: TotemG4Hit.cc:172
double getHadr() const
Definition: TotemG4Hit.cc:129
void setIncidentEnergy(double e)
Definition: TotemG4Hit.cc:133
double getIncidentEnergy() const
Definition: TotemG4Hit.cc:132
float getVz() const
Definition: TotemG4Hit.cc:183
void setThetaAtEntry(float t)
Definition: TotemG4Hit.cc:162
int getParentId() const
Definition: TotemG4Hit.cc:174
math::XYZPoint theExitPoint
Definition: TotemG4Hit.h:140
void setUnitID(uint32_t i)
Definition: TotemG4Hit.cc:139
void setTrackID(int i)
Definition: TotemG4Hit.cc:136
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
void setPhiAtEntry(float f)
Definition: TotemG4Hit.cc:163
uint32_t getUnitID() const
Definition: TotemG4Hit.cc:138
float theVy
Definition: TotemG4Hit.h:144
math::XYZPoint theEntryPoint
Definition: TotemG4Hit.h:139
double getEM() const
Definition: TotemG4Hit.cc:126
void setParticleType(short i)
Definition: TotemG4Hit.cc:157
void setTof(float e)
Definition: TotemG4Hit.cc:155
const TotemG4Hit & operator=(const TotemG4Hit &right)
Definition: TotemG4Hit.cc:82
float getZ() const
Definition: TotemG4Hit.cc:171
double getEnergyDeposit() const
Definition: TotemG4Hit.cc:147
float thePabs
Definition: TotemG4Hit.h:132
int getParticleType() const
Definition: TotemG4Hit.cc:152
float getX() const
Definition: TotemG4Hit.cc:165
void setEM(double e)
Definition: TotemG4Hit.cc:127
double hadr
Definition: TotemG4Hit.h:121
double getTimeSlice() const
Definition: TotemG4Hit.cc:141
float getThetaAtEntry() const
Definition: TotemG4Hit.cc:159
x
Definition: VDTMath.h:216
float getY() const
Definition: TotemG4Hit.cc:168
double elem
Definition: TotemG4Hit.h:120
math::XYZPoint entry
Definition: TotemG4Hit.h:119
void addEnergyDeposit(double em, double hd)
Definition: TotemG4Hit.cc:145
double theIncidentEnergy
Definition: TotemG4Hit.h:122