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 
17  public:
18 
21 
23  ~CastorShowerEvent() override;
24  void Clear(Option_t * option ="") override;
25 
26 // private:
27 
28  // Data members
29  unsigned int nhit;
30  std::vector<unsigned int> detID;
31  std::vector<Point> hitPosition;
32  std::vector<float> nphotons;
33  std::vector<float> time;
35  float primEta , primPhi;
36  float primX , primY , primZ;
37 
38  // Setters
39  void setNhit(unsigned int i) { nhit = i; };
40  void setDetID(unsigned int id) { detID.push_back(id); };
41  void setHitPosition(const Point& p) { hitPosition.push_back(p); };
42  void setNphotons(float np) { nphotons.push_back(np); };
43  void setTime(float t) { time.push_back(t); };
44  void setPrimE(float e) { primaryEnergy = e; };
45  void setPrimEta(float eta) { primEta = eta; };
46  void setPrimPhi(float phi) { primPhi = phi; };
47  void setPrimX(float x) { primX = x; };
48  void setPrimY(float y) { primY = y; };
49  void setPrimZ(float z) { primZ = z; };
50 
51  // Accessors
52  unsigned int getNhit() { return nhit; };
53  unsigned int getDetID(int i) { return detID[i]; };
54  Point getHitPosition(int i) { return hitPosition[i]; };
55  float getNphotons(int i) { return nphotons[i]; };
56  float getTime(int i) { return time[i]; };
57  float getPrimE() { return primaryEnergy; };
58  float getPrimEta() { return primEta; };
59  float getPrimPhi() const { return primPhi; };
60  float getPrimX() { return primX; };
61  float getPrimY() { return primY; };
62  float getPrimZ() { return primZ; };
63 
64  ClassDefOverride(CastorShowerEvent,2)
65 
66  };
67 
68 #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
std::vector< Point > hitPosition
unsigned int getDetID(int i)
std::vector< float > nphotons
std::vector< unsigned int > detID
int np
Definition: AMPTWrapper.h:33
float getTime(int i)
float getNphotons(int i)
void setPrimE(float e)
void setPrimY(float y)
void setPrimX(float x)
std::vector< float > time
float getPrimPhi() const
math::XYZPoint Point
point in the space
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
void setNphotons(float np)
void setNhit(unsigned int i)
void setHitPosition(const Point &p)
unsigned int getNhit()