CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
24 
25  void Clear();
26 
27 // private:
28 
29  // Data members
30  unsigned int nhit;
31  std::vector<unsigned int> detID;
32  std::vector<Point> hitPosition;
33  std::vector<float> nphotons;
34  std::vector<float> time;
36  float primEta , primPhi;
37  float primX , primY , primZ;
38 
39  // Setters
40  void setNhit(unsigned int i) { nhit = i; };
41  void setDetID(unsigned int id) { detID.push_back(id); };
42  void setHitPosition(const Point& p) { hitPosition.push_back(p); };
43  void setNphotons(float np) { nphotons.push_back(np); };
44  void setTime(float t) { time.push_back(t); };
45  void setPrimE(float e) { primaryEnergy = e; };
46  void setPrimEta(float eta) { primEta = eta; };
47  void setPrimPhi(float phi) { primPhi = phi; };
48  void setPrimX(float x) { primX = x; };
49  void setPrimY(float y) { primY = y; };
50  void setPrimZ(float z) { primZ = z; };
51 
52  // Accessors
53  unsigned int getNhit() { return nhit; };
54  unsigned int getDetID(int i) { return detID[i]; };
55  Point getHitPosition(int i) { return hitPosition[i]; };
56  float getNphotons(int i) { return nphotons[i]; };
57  float getTime(int i) { return time[i]; };
58  float getPrimE() { return primaryEnergy; };
59  float getPrimEta() { return primEta; };
60  float getPrimPhi() const { return primPhi; };
61  float getPrimX() { return primX; };
62  float getPrimY() { return primY; };
63  float getPrimZ() { return primZ; };
64 
65  ClassDef(CastorShowerEvent,2)
66 
67  };
68 
69 #endif
int i
Definition: DBlmapReader.cc:9
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)
T eta() const
std::vector< Point > hitPosition
unsigned int getDetID(int i)
float float float z
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
Definition: DDAxes.h:10
void setNphotons(float np)
void setNhit(unsigned int i)
void setHitPosition(const Point &p)
unsigned int getNhit()
Definition: DDAxes.h:10