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
CastorShowerEvent::setHitPosition
void setHitPosition(const Point &p)
Definition: CastorShowerEvent.h:39
CastorShowerEvent::setTime
void setTime(float t)
Definition: CastorShowerEvent.h:41
DDAxes::y
mps_fire.i
i
Definition: mps_fire.py:428
CastorShowerEvent::getPrimE
float getPrimE()
Definition: CastorShowerEvent.h:55
CastorShowerEvent::getNhit
unsigned int getNhit()
Definition: CastorShowerEvent.h:50
CastorShowerEvent::primY
float primY
Definition: CastorShowerEvent.h:34
CastorShowerEvent::setPrimEta
void setPrimEta(float eta)
Definition: CastorShowerEvent.h:43
CastorShowerEvent::primPhi
float primPhi
Definition: CastorShowerEvent.h:33
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CastorShowerEvent::getDetID
unsigned int getDetID(int i)
Definition: CastorShowerEvent.h:51
np
int np
Definition: AMPTWrapper.h:43
CastorShowerEvent::setPrimZ
void setPrimZ(float z)
Definition: CastorShowerEvent.h:47
CastorShowerEvent::getPrimX
float getPrimX()
Definition: CastorShowerEvent.h:58
DDAxes::x
fileinputsource_cfi.option
option
Definition: fileinputsource_cfi.py:87
CastorShowerEvent::setDetID
void setDetID(unsigned int id)
Definition: CastorShowerEvent.h:38
CastorShowerEvent::primEta
float primEta
Definition: CastorShowerEvent.h:33
CastorShowerEvent::detID
std::vector< unsigned int > detID
Definition: CastorShowerEvent.h:28
CastorShowerEvent::primaryEnergy
float primaryEnergy
Definition: CastorShowerEvent.h:32
CastorShowerEvent::hitPosition
std::vector< Point > hitPosition
Definition: CastorShowerEvent.h:29
CastorShowerEvent::getPrimEta
float getPrimEta()
Definition: CastorShowerEvent.h:56
PVValHelper::eta
Definition: PVValidationHelpers.h:69
DDAxes::z
CastorShowerEvent::~CastorShowerEvent
~CastorShowerEvent() override
Definition: CastorShowerEvent.cc:9
CastorShowerEvent::getPrimPhi
float getPrimPhi() const
Definition: CastorShowerEvent.h:57
CastorShowerEvent::CastorShowerEvent
CastorShowerEvent()
Definition: CastorShowerEvent.cc:4
CastorShowerEvent::getPrimY
float getPrimY()
Definition: CastorShowerEvent.h:59
CastorShowerEvent::getNphotons
float getNphotons(int i)
Definition: CastorShowerEvent.h:53
CastorShowerEvent::getPrimZ
float getPrimZ()
Definition: CastorShowerEvent.h:60
CastorShowerEvent::primZ
float primZ
Definition: CastorShowerEvent.h:34
CastorShowerEvent::nphotons
std::vector< float > nphotons
Definition: CastorShowerEvent.h:30
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
CastorShowerEvent
Definition: CastorShowerEvent.h:15
CastorShowerEvent::setPrimY
void setPrimY(float y)
Definition: CastorShowerEvent.h:46
CastorShowerEvent::primX
float primX
Definition: CastorShowerEvent.h:34
CastorShowerEvent::time
std::vector< float > time
Definition: CastorShowerEvent.h:31
CastorShowerEvent::getTime
float getTime(int i)
Definition: CastorShowerEvent.h:54
CastorShowerEvent::setPrimX
void setPrimX(float x)
Definition: CastorShowerEvent.h:45
DDAxes::phi
CastorShowerEvent::Point
math::XYZPoint Point
point in the space
Definition: CastorShowerEvent.h:18
CastorShowerEvent::setNphotons
void setNphotons(float np)
Definition: CastorShowerEvent.h:40
CastorShowerEvent::setPrimE
void setPrimE(float e)
Definition: CastorShowerEvent.h:42
Point3D.h
CastorShowerEvent::nhit
unsigned int nhit
Definition: CastorShowerEvent.h:27
CastorShowerEvent::Clear
void Clear(Option_t *option="") override
Definition: CastorShowerEvent.cc:11
CastorShowerEvent::setNhit
void setNhit(unsigned int i)
Definition: CastorShowerEvent.h:37
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
CastorShowerEvent::getHitPosition
Point getHitPosition(int i)
Definition: CastorShowerEvent.h:52
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CastorShowerEvent::setPrimPhi
void setPrimPhi(float phi)
Definition: CastorShowerEvent.h:44