CMS 3D CMS Logo

CastorShowerEvent.h
Go to the documentation of this file.
1 #ifndef CastorShowerEvent_h
2 #define CastorShowerEvent_h
3 
4 #include "TROOT.h"
5 #include "Rtypes.h"
6 #include "TObject.h"
7 #include "TClass.h"
8 #include "TDictionary.h"
9 
11 #include <vector>
12 #include <string>
13 
14 // class CastorShowerEvent {
15 class CastorShowerEvent : public TObject {
16 public:
19 
21  ~CastorShowerEvent() override;
22  void Clear(Option_t* option = "") override;
23 
24  // private:
25 
26  // Data members
27  unsigned int nhit;
28  std::vector<unsigned int> detID;
29  std::vector<Point> hitPosition;
30  std::vector<float> nphotons;
31  std::vector<float> time;
33  float primEta, primPhi;
34  float primX, primY, primZ;
35 
36  // Setters
37  void setNhit(unsigned int i) { nhit = i; };
38  void setDetID(unsigned int id) { detID.push_back(id); };
39  void setHitPosition(const Point& p) { hitPosition.push_back(p); };
40  void setNphotons(float np) { nphotons.push_back(np); };
41  void setTime(float t) { time.push_back(t); };
42  void setPrimE(float e) { primaryEnergy = e; };
43  void setPrimEta(float eta) { primEta = eta; };
44  void setPrimPhi(float phi) { primPhi = phi; };
45  void setPrimX(float x) { primX = x; };
46  void setPrimY(float y) { primY = y; };
47  void setPrimZ(float z) { primZ = z; };
48 
49  // Accessors
50  unsigned int getNhit() { return nhit; };
51  unsigned int getDetID(int i) { return detID[i]; };
52  Point getHitPosition(int i) { return hitPosition[i]; };
53  float getNphotons(int i) { return nphotons[i]; };
54  float getTime(int i) { return time[i]; };
55  float getPrimE() { return primaryEnergy; };
56  float getPrimEta() { return primEta; };
57  float getPrimPhi() const { return primPhi; };
58  float getPrimX() { return primX; };
59  float getPrimY() { return primY; };
60  float getPrimZ() { return primZ; };
61 
62  ClassDefOverride(CastorShowerEvent, 2)
63 };
64 
65 #endif
void Clear(Option_t *option="") override
void setTime(float t)
void setPrimEta(float eta)
Point getHitPosition(int i)
void setPrimZ(float z)
void setDetID(unsigned int id)
void setPrimPhi(float phi)
~CastorShowerEvent() override
float getPrimPhi() const
std::vector< Point > hitPosition
unsigned int getDetID(int i)
std::vector< float > nphotons
std::vector< unsigned int > detID
int np
Definition: AMPTWrapper.h:43
float getTime(int i)
float getNphotons(int i)
void setPrimE(float e)
void setPrimY(float y)
void setPrimX(float x)
std::vector< float > time
math::XYZPoint Point
point in the space
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
Structure Point Contains parameters of Gaussian fits to DMRs.
void setNphotons(float np)
void setNhit(unsigned int i)
void setHitPosition(const Point &p)
unsigned int getNhit()