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
CalHit.h
Go to the documentation of this file.
1
7#ifndef _CALORIMETER_HIT_H_
8#define _CALORIMETER_HIT_H_
9
10//----------//
11// ROOT //
12//----------//
13#include <TObject.h>
14
15class CalHit : public TObject {
16
17 public:
18
21
23 ~CalHit();
24
26 void Clear(Option_t* option="");
27
33 void setEnergy(const double energy){ energy_ = energy; };
34
36 double getEnergy() const { return energy_; };
37
43 void setTime(const double time) { time_ = time; };
44
46 double getTime() const { return time_; };
47
54 void setCrystalIndices(int index_x_, int index_y_);
55
57 std::vector<int> getCrystalIndices() const { return { index_x_, index_y_ }; }
58
59 private:
60
62 int index_x_{-9999};
63
65 int index_y_{-9999};
66
68 double energy_{-9999};
69
71 double time_{0};
72
74};
75
76#endif
double energy_
Definition CalHit.h:68
std::vector< int > getCrystalIndices() const
Definition CalHit.h:57
int index_y_
Definition CalHit.h:65
void setCrystalIndices(int index_x_, int index_y_)
Definition CalHit.cxx:23
ClassDef(CalHit, 1)
double time_
Definition CalHit.h:71
double getEnergy() const
Definition CalHit.h:36
void Clear(Option_t *option="")
Definition CalHit.cxx:19
void setEnergy(const double energy)
Definition CalHit.h:33
void setTime(const double time)
Definition CalHit.h:43
int index_x_
Definition CalHit.h:62
~CalHit()
Definition CalHit.cxx:15
double getTime() const
Definition CalHit.h:46