hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MCEcalHit.h
Go to the documentation of this file.
1
7#ifndef _MC_ECAL_HIT_H_
8#define _MC_ECAL_HIT_H_
9
10//----------------//
11// C++ StdLib //
12//----------------//
13#include <iostream>
14
15//----------//
16// ROOT //
17//----------//
18#include <TObject.h>
19#include <TClonesArray.h>
20#include <TRefArray.h>
21
22class MCEcalHit : public TObject {
23
24 public:
25
28
30 virtual ~MCEcalHit();
31
33 void Clear(Option_t *option="");
34
40 void setPosition(const double* position, bool rotate = false);
41
43 std::vector<double> getPosition() const { return {x_, y_, z_}; };
44
46 double getGlobalX() const {return x_;}
47
49 double getGlobalY() const {return y_;}
50
52 double getGlobalZ() const {return z_;}
53
59 void setEnergy(const double energy) { energy_ = energy; };
60
62 double getEnergy() const { return energy_; };
63
69 void setSystem(const int system ) {system_ = system;} ;
70
71 //** @return the Ecal hit system */
72 int getSystem() { return system_;} ;
73
79 void setLayer(const int layer) {layer_ = layer;};
80
81 //** @return the Ecal hit layer from the raw hit content */
82 int getLayer() const {return layer_;};
83
89 void setIX(const int ix) {ix_ = ix;};
90
91 //** @return the y index of the hit. */
92 int getIX() const {return ix_;};
93
99 void setIY(const int iy) {iy_ = iy;};
100
101 //** @return the y index of the hit. */
102 int getIY() const {return iy_;};
103
105
106 private:
107
109 double x_{-999};
110
112 double y_{-999};
113
115 double z_{-999};
116
118 int system_{-999};
119
121 int layer_{-999};
122
124 int ix_{-999};
125
127 int iy_{-999};
128
130 float energy_{-999};
131
132}; // MCEcalHit
133
134#endif // _MC_ECAL_HIT_H_
double getGlobalY() const
Definition MCEcalHit.h:49
void setLayer(const int layer)
Definition MCEcalHit.h:79
int getLayer() const
Definition MCEcalHit.h:82
int getIY() const
Definition MCEcalHit.h:102
float energy_
Definition MCEcalHit.h:130
double getEnergy() const
Definition MCEcalHit.h:62
double getGlobalZ() const
Definition MCEcalHit.h:52
void setPosition(const double *position, bool rotate=false)
Definition MCEcalHit.cxx:23
int getIX() const
Definition MCEcalHit.h:92
std::vector< double > getPosition() const
Definition MCEcalHit.h:43
void Clear(Option_t *option="")
Definition MCEcalHit.cxx:19
void setSystem(const int system)
Definition MCEcalHit.h:69
void setEnergy(const double energy)
Definition MCEcalHit.h:59
int getSystem()
Definition MCEcalHit.h:72
double z_
Definition MCEcalHit.h:115
double y_
Definition MCEcalHit.h:112
ClassDef(MCEcalHit, 1)
int system_
Definition MCEcalHit.h:118
double x_
Definition MCEcalHit.h:109
virtual ~MCEcalHit()
Definition MCEcalHit.cxx:15
void setIY(const int iy)
Definition MCEcalHit.h:99
double getGlobalX() const
Definition MCEcalHit.h:46
void setIX(const int ix)
Definition MCEcalHit.h:89