CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PHcalTB04Info.h
Go to the documentation of this file.
1 #ifndef HcalTestBeam_PHcalTB04Info_h
2 #define HcalTestBeam_PHcalTB04Info_h
3 // -*- C++ -*-
4 //
5 // Package: HcalTestBeam
6 // Class : PHcalTB04Info
7 //
17 //
18 // Original Author: Sunanda Banerjee
19 // Created: Sun May 14 10:14:34 CEST 2006
20 // $Id: PHcalTB04Info.h,v 1.2 2006/11/15 05:52:36 sunanda Exp $
21 //
22 
23 // system include files
24 #include <string>
25 #include <vector>
26 #include <memory>
27 #include <cmath>
28 
29 // user include files
30 
31 // forward declarations
32 class HcalTB04Analysis;
33 
35 
36  typedef std::vector<float> FloatVector;
37  typedef std::vector<int> IntVector;
38  friend class HcalTB04Analysis;
39 
40 public:
41  PHcalTB04Info();
42  virtual ~PHcalTB04Info();
43 
44  // ---------- const member functions ---------------------
45  int primary() const {return nPrimary;}
46  int partID() const {return idBeam;}
47  float initE() const {return eBeam;}
48  float eta() const {return etaBeam;}
49  float phi() const {return phiBeam;}
50  int crystal() const {return nCrystal;}
51  IntVector idsEcal() const {return idEcal;}
52  int tower() const {return nTower;}
53  IntVector idsHcal() const {return idHcal;}
54  float simEtotal() const {return simEtot;}
55  float simEcE() const {return simEEc;}
56  float simHcE() const {return simEHc;}
57  float digEtotal() const {return digEtot;}
58  float digEcE() const {return digEEc;}
59  float digHcE() const {return digEHc;}
60  FloatVector simEEcal() const {return esime;}
61  FloatVector digEEcal() const {return edige;}
62  FloatVector simEHcal() const {return esimh;}
63  FloatVector digEHcal() const {return edigh;}
64 
65  int nHit() const {return hit;}
66  IntVector detectorHit() const {return detHit;}
67  IntVector etaIndexHit() const {return etaHit;}
68  IntVector phiIndexHit() const {return phiHit;}
69  IntVector layerHit() const {return layHit;}
70  FloatVector energyHit() const {return eHit;}
71  FloatVector timeHit() const {return tHit;}
72 
73  int evNum() const {return v1EvNum;}
74  int vtxType() const {return v1Type;}
75  int vtxSec() const {return v1Nsec;}
76  IntVector vtxTrkID() const {return v1secTrackID;}
77  IntVector vtxPartID() const {return v1secPartID;}
78  float vtxPrimX() const {return v1X;}
79  float vtxPrimY() const {return v1Y;}
80  float vtxPrimZ() const {return v1Z;}
81  float vtxPrimR() const {return v1R;}
82  float vtxPrimU() const {return v1U;}
83  float vtxPrimV() const {return v1V;}
84  float vtxPrimW() const {return v1W;}
85  float vtxPrimPx() const {return v1Px;}
86  float vtxPrimPy() const {return v1Py;}
87  float vtxPrimPz() const {return v1Pz;}
88  FloatVector vtxSecPx() const {return v1secPx;}
89  FloatVector vtxSecPy() const {return v1secPy;}
90  FloatVector vtxSecPz() const {return v1secPz;}
91  FloatVector vtxSecEk() const {return v1secEk;}
92 
93  // ---------- static member functions --------------------
94 
95  // ---------- member functions ---------------------------
96  void clear();
97  void setIDs(std::vector<int>, std::vector<int>);
98  void setPrimary(int primary, int id, double energy, double eta, double phi);
99  void setEdep(double simtot, double sime, double simh,
100  double digtot, double dige, double digh);
101  void setEdepEcal(std::vector<double> esim, std::vector<double> edig);
102  void setEdepHcal(std::vector<double> esim, std::vector<double> edig);
103 
104  void setTrnsProf(std::vector<double> es1, std::vector<double> eq1,
105  std::vector<double> es2, std::vector<double> eq2);
106  void setLongProf(std::vector<double> es, std::vector<double> eq);
107  void saveHit(int det, int lay, int eta, int phi, double e, double t);
108 
109  //Vertex associated methods
110  void setVtxPrim(int evNum, int type, double x, double y, double z, double u,
111  double v, double w, double px, double py, double pz);
112  void setVtxSec(int id, int pdg, double px, double py, double pz, double ek);
113 
114 private:
115  // PHcalTB04Info(const PHcalTB04Info&);
116  // const PHcalTB04Info& operator=(const PHcalTB04Info&);
117 
118  // ---------- member data --------------------------------
119 
120  //Beam parameters
123 
124  //Deposited energies
132 
133  //Tower Members
134  int nCrystal;
136  int nTower;
138 
139  //Hit Members
140  int hit;
143 
144  //Vertex members
147  float v1X, v1Y, v1Z, v1R, v1U, v1V, v1W;
148  float v1Px, v1Py, v1Pz;
150 };
151 
152 
153 #endif
IntVector detectorHit() const
Definition: PHcalTB04Info.h:66
FloatVector simEHcal() const
Definition: PHcalTB04Info.h:62
FloatVector eHit
virtual ~PHcalTB04Info()
type
Definition: HCALResponse.h:22
FloatVector v1secPy
int nHit() const
Definition: PHcalTB04Info.h:65
float simEtotal() const
Definition: PHcalTB04Info.h:54
int partID() const
Definition: PHcalTB04Info.h:46
IntVector layHit
float digEcE() const
Definition: PHcalTB04Info.h:58
FloatVector digEEcal() const
Definition: PHcalTB04Info.h:61
FloatVector vtxSecEk() const
Definition: PHcalTB04Info.h:91
float simHcE() const
Definition: PHcalTB04Info.h:56
float vtxPrimY() const
Definition: PHcalTB04Info.h:79
IntVector phiHit
float vtxPrimPy() const
Definition: PHcalTB04Info.h:86
void setPrimary(int primary, int id, double energy, double eta, double phi)
FloatVector v1secPx
void setLongProf(std::vector< double > es, std::vector< double > eq)
IntVector v1secPartID
std::vector< int > IntVector
Definition: PHcalTB04Info.h:37
double double double z
void setEdepHcal(std::vector< double > esim, std::vector< double > edig)
void setEdep(double simtot, double sime, double simh, double digtot, double dige, double digh)
FloatVector edigh
void setEdepEcal(std::vector< double > esim, std::vector< double > edig)
IntVector idsEcal() const
Definition: PHcalTB04Info.h:51
void saveHit(int det, int lay, int eta, int phi, double e, double t)
FloatVector edige
IntVector idsHcal() const
Definition: PHcalTB04Info.h:53
IntVector vtxPartID() const
Definition: PHcalTB04Info.h:77
FloatVector longdig
FloatVector esime
float digEtotal() const
Definition: PHcalTB04Info.h:57
IntVector layerHit() const
Definition: PHcalTB04Info.h:69
FloatVector v1secPz
int vtxSec() const
Definition: PHcalTB04Info.h:75
void setVtxSec(int id, int pdg, double px, double py, double pz, double ek)
FloatVector energyHit() const
Definition: PHcalTB04Info.h:70
FloatVector timeHit() const
Definition: PHcalTB04Info.h:71
float initE() const
Definition: PHcalTB04Info.h:47
IntVector v1secTrackID
IntVector idEcal
float vtxPrimZ() const
Definition: PHcalTB04Info.h:80
FloatVector simEEcal() const
Definition: PHcalTB04Info.h:60
float vtxPrimPx() const
Definition: PHcalTB04Info.h:85
IntVector etaIndexHit() const
Definition: PHcalTB04Info.h:67
FloatVector latsimEta
IntVector idHcal
IntVector vtxTrkID() const
Definition: PHcalTB04Info.h:76
FloatVector vtxSecPx() const
Definition: PHcalTB04Info.h:88
float vtxPrimR() const
Definition: PHcalTB04Info.h:81
FloatVector vtxSecPz() const
Definition: PHcalTB04Info.h:90
int evNum() const
Definition: PHcalTB04Info.h:73
int crystal() const
Definition: PHcalTB04Info.h:50
FloatVector vtxSecPy() const
Definition: PHcalTB04Info.h:89
void setIDs(std::vector< int >, std::vector< int >)
FloatVector longsim
float phi() const
Definition: PHcalTB04Info.h:49
IntVector etaHit
IntVector phiIndexHit() const
Definition: PHcalTB04Info.h:68
FloatVector v1secEk
void setVtxPrim(int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz)
float vtxPrimX() const
Definition: PHcalTB04Info.h:78
FloatVector latdigPhi
float digHcE() const
Definition: PHcalTB04Info.h:59
FloatVector esimh
float vtxPrimU() const
Definition: PHcalTB04Info.h:82
void setTrnsProf(std::vector< double > es1, std::vector< double > eq1, std::vector< double > es2, std::vector< double > eq2)
FloatVector digEHcal() const
Definition: PHcalTB04Info.h:63
float eta() const
Definition: PHcalTB04Info.h:48
int primary() const
Definition: PHcalTB04Info.h:45
float simEcE() const
Definition: PHcalTB04Info.h:55
float vtxPrimPz() const
Definition: PHcalTB04Info.h:87
x
Definition: VDTMath.h:216
IntVector detHit
float vtxPrimW() const
Definition: PHcalTB04Info.h:84
std::vector< float > FloatVector
Definition: PHcalTB04Info.h:36
float vtxPrimV() const
Definition: PHcalTB04Info.h:83
mathSSE::Vec4< T > v
FloatVector latsimPhi
FloatVector latdigEta
int vtxType() const
Definition: PHcalTB04Info.h:74
T w() const
FloatVector tHit
int tower() const
Definition: PHcalTB04Info.h:52