CMS 3D CMS Logo

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 //
21 
22 // system include files
23 #include <string>
24 #include <vector>
25 #include <memory>
26 #include <cmath>
27 
28 // user include files
29 
30 // forward declarations
31 class HcalTB04Analysis;
32 
34  typedef std::vector<float> FloatVector;
35  typedef std::vector<int> IntVector;
36  friend class HcalTB04Analysis;
37 
38 public:
39  PHcalTB04Info();
40  virtual ~PHcalTB04Info();
41 
42  // ---------- const member functions ---------------------
43  int primary() const { return nPrimary; }
44  int partID() const { return idBeam; }
45  float initE() const { return eBeam; }
46  float eta() const { return etaBeam; }
47  float phi() const { return phiBeam; }
48  int crystal() const { return nCrystal; }
49  IntVector idsEcal() const { return idEcal; }
50  int tower() const { return nTower; }
51  IntVector idsHcal() const { return idHcal; }
52  float simEtotal() const { return simEtot; }
53  float simEcE() const { return simEEc; }
54  float simHcE() const { return simEHc; }
55  float digEtotal() const { return digEtot; }
56  float digEcE() const { return digEEc; }
57  float digHcE() const { return digEHc; }
58  FloatVector simEEcal() const { return esime; }
59  FloatVector digEEcal() const { return edige; }
60  FloatVector simEHcal() const { return esimh; }
61  FloatVector digEHcal() const { return edigh; }
62 
63  int nHit() const { return hit; }
64  IntVector detectorHit() const { return detHit; }
65  IntVector etaIndexHit() const { return etaHit; }
66  IntVector phiIndexHit() const { return phiHit; }
67  IntVector layerHit() const { return layHit; }
68  FloatVector energyHit() const { return eHit; }
69  FloatVector timeHit() const { return tHit; }
70 
71  int evNum() const { return v1EvNum; }
72  int vtxType() const { return v1Type; }
73  int vtxSec() const { return v1Nsec; }
74  IntVector vtxTrkID() const { return v1secTrackID; }
75  IntVector vtxPartID() const { return v1secPartID; }
76  float vtxPrimX() const { return v1X; }
77  float vtxPrimY() const { return v1Y; }
78  float vtxPrimZ() const { return v1Z; }
79  float vtxPrimR() const { return v1R; }
80  float vtxPrimU() const { return v1U; }
81  float vtxPrimV() const { return v1V; }
82  float vtxPrimW() const { return v1W; }
83  float vtxPrimPx() const { return v1Px; }
84  float vtxPrimPy() const { return v1Py; }
85  float vtxPrimPz() const { return v1Pz; }
86  FloatVector vtxSecPx() const { return v1secPx; }
87  FloatVector vtxSecPy() const { return v1secPy; }
88  FloatVector vtxSecPz() const { return v1secPz; }
89  FloatVector vtxSecEk() const { return v1secEk; }
90 
91  // ---------- static member functions --------------------
92 
93  // ---------- member functions ---------------------------
94  void clear();
95  void setIDs(const std::vector<int>&, const std::vector<int>&);
96  void setPrimary(int primary, int id, double energy, double eta, double phi);
97  void setEdep(double simtot, double sime, double simh, double digtot, double dige, double digh);
98  void setEdepEcal(const std::vector<double>& esim, const std::vector<double>& edig);
99  void setEdepHcal(const std::vector<double>& esim, const std::vector<double>& edig);
100 
101  void setTrnsProf(const std::vector<double>& es1,
102  const std::vector<double>& eq1,
103  const std::vector<double>& es2,
104  const std::vector<double>& eq2);
105  void setLongProf(const std::vector<double>& es, const std::vector<double>& eq);
106  void saveHit(int det, int lay, int eta, int phi, double e, double t);
107 
108  //Vertex associated methods
109  void setVtxPrim(
110  int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz);
111  void setVtxSec(int id, int pdg, double px, double py, double pz, double ek);
112 
113 private:
114  // PHcalTB04Info(const PHcalTB04Info&);
115  // const PHcalTB04Info& operator=(const PHcalTB04Info&);
116 
117  // ---------- member data --------------------------------
118 
119  //Beam parameters
122 
123  //Deposited energies
131 
132  //Tower Members
133  int nCrystal;
135  int nTower;
137 
138  //Hit Members
139  int hit;
142 
143  //Vertex members
146  float v1X, v1Y, v1Z, v1R, v1U, v1V, v1W;
147  float v1Px, v1Py, v1Pz;
149 };
150 
151 #endif
PHcalTB04Info::v1Z
float v1Z
Definition: PHcalTB04Info.h:146
PHcalTB04Info::v1secEk
FloatVector v1secEk
Definition: PHcalTB04Info.h:148
PHcalTB04Info::v1U
float v1U
Definition: PHcalTB04Info.h:146
PHcalTB04Info::vtxPrimW
float vtxPrimW() const
Definition: PHcalTB04Info.h:82
PHcalTB04Info::digHcE
float digHcE() const
Definition: PHcalTB04Info.h:57
PHcalTB04Info::v1Py
float v1Py
Definition: PHcalTB04Info.h:147
PHcalTB04Info::vtxType
int vtxType() const
Definition: PHcalTB04Info.h:72
PHcalTB04Info::energyHit
FloatVector energyHit() const
Definition: PHcalTB04Info.h:68
DDAxes::y
PHcalTB04Info::eta
float eta() const
Definition: PHcalTB04Info.h:46
PHcalTB04Info::vtxPrimPx
float vtxPrimPx() const
Definition: PHcalTB04Info.h:83
PHcalTB04Info::nCrystal
int nCrystal
Definition: PHcalTB04Info.h:133
PHcalTB04Info::etaBeam
float etaBeam
Definition: PHcalTB04Info.h:121
PHcalTB04Info::vtxPrimZ
float vtxPrimZ() const
Definition: PHcalTB04Info.h:78
PHcalTB04Info::v1W
float v1W
Definition: PHcalTB04Info.h:146
PHcalTB04Info::v1Pz
float v1Pz
Definition: PHcalTB04Info.h:147
PHcalTB04Info::vtxPrimU
float vtxPrimU() const
Definition: PHcalTB04Info.h:80
PHcalTB04Info::phiBeam
float phiBeam
Definition: PHcalTB04Info.h:121
PHcalTB04Info::simHcE
float simHcE() const
Definition: PHcalTB04Info.h:54
PHcalTB04Info::v1secPx
FloatVector v1secPx
Definition: PHcalTB04Info.h:148
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
PHcalTB04Info::layHit
IntVector layHit
Definition: PHcalTB04Info.h:140
PHcalTB04Info::vtxPrimV
float vtxPrimV() const
Definition: PHcalTB04Info.h:81
PHcalTB04Info::simEcE
float simEcE() const
Definition: PHcalTB04Info.h:53
PHcalTB04Info::v1Nsec
int v1Nsec
Definition: PHcalTB04Info.h:144
PHcalTB04Info::setIDs
void setIDs(const std::vector< int > &, const std::vector< int > &)
Definition: PHcalTB04Info.cc:69
PHcalTB04Info::latsimPhi
FloatVector latsimPhi
Definition: PHcalTB04Info.h:129
PHcalTB04Info::setPrimary
void setPrimary(int primary, int id, double energy, double eta, double phi)
Definition: PHcalTB04Info.cc:95
PHcalTB04Info::tHit
FloatVector tHit
Definition: PHcalTB04Info.h:141
PHcalTB04Info::longsim
FloatVector longsim
Definition: PHcalTB04Info.h:130
PHcalTB04Info::vtxPrimY
float vtxPrimY() const
Definition: PHcalTB04Info.h:77
DDAxes::x
PHcalTB04Info::saveHit
void saveHit(int det, int lay, int eta, int phi, double e, double t)
Definition: PHcalTB04Info.cc:185
PHcalTB04Info::edige
FloatVector edige
Definition: PHcalTB04Info.h:126
findQualityFiles.v
v
Definition: findQualityFiles.py:179
PHcalTB04Info::setEdep
void setEdep(double simtot, double sime, double simh, double digtot, double dige, double digh)
Definition: PHcalTB04Info.cc:105
PHcalTB04Info::phiIndexHit
IntVector phiIndexHit() const
Definition: PHcalTB04Info.h:66
PHcalTB04Info::setTrnsProf
void setTrnsProf(const std::vector< double > &es1, const std::vector< double > &eq1, const std::vector< double > &es2, const std::vector< double > &eq2)
Definition: PHcalTB04Info.cc:149
PHcalTB04Info::hit
int hit
Definition: PHcalTB04Info.h:139
PHcalTB04Info::phiHit
IntVector phiHit
Definition: PHcalTB04Info.h:140
PHcalTB04Info::latdigPhi
FloatVector latdigPhi
Definition: PHcalTB04Info.h:129
PHcalTB04Info::v1Y
float v1Y
Definition: PHcalTB04Info.h:146
PHcalTB04Info::v1Px
float v1Px
Definition: PHcalTB04Info.h:147
PHcalTB04Info::v1EvNum
int v1EvNum
Definition: PHcalTB04Info.h:144
HcalTB04Analysis
Definition: HcalTB04Analysis.cc:72
PHcalTB04Info::simEEc
float simEEc
Definition: PHcalTB04Info.h:124
PHcalTB04Info::vtxSec
int vtxSec() const
Definition: PHcalTB04Info.h:73
PHcalTB04Info::esime
FloatVector esime
Definition: PHcalTB04Info.h:126
PHcalTB04Info::evNum
int evNum() const
Definition: PHcalTB04Info.h:71
PHcalTB04Info::PHcalTB04Info
PHcalTB04Info()
Definition: PHcalTB04Info.cc:30
PHcalTB04Info::nHit
int nHit() const
Definition: PHcalTB04Info.h:63
PHcalTB04Info::latsimEta
FloatVector latsimEta
Definition: PHcalTB04Info.h:128
PHcalTB04Info::detHit
IntVector detHit
Definition: PHcalTB04Info.h:140
PHcalTB04Info::setEdepEcal
void setEdepEcal(const std::vector< double > &esim, const std::vector< double > &edig)
Definition: PHcalTB04Info.cc:117
PHcalTB04Info::eBeam
float eBeam
Definition: PHcalTB04Info.h:121
w
const double w
Definition: UKUtility.cc:23
DDAxes::z
PHcalTB04Info::setLongProf
void setLongProf(const std::vector< double > &es, const std::vector< double > &eq)
Definition: PHcalTB04Info.cc:171
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
PHcalTB04Info::vtxPrimX
float vtxPrimX() const
Definition: PHcalTB04Info.h:76
PHcalTB04Info::edigh
FloatVector edigh
Definition: PHcalTB04Info.h:127
PHcalTB04Info::tower
int tower() const
Definition: PHcalTB04Info.h:50
PHcalTB04Info::vtxPrimPy
float vtxPrimPy() const
Definition: PHcalTB04Info.h:84
PHcalTB04Info::idsHcal
IntVector idsHcal() const
Definition: PHcalTB04Info.h:51
PHcalTB04Info::primary
int primary() const
Definition: PHcalTB04Info.h:43
PHcalTB04Info::nPrimary
int nPrimary
Definition: PHcalTB04Info.h:120
PHcalTB04Info::v1X
float v1X
Definition: PHcalTB04Info.h:146
PHcalTB04Info::vtxSecPy
FloatVector vtxSecPy() const
Definition: PHcalTB04Info.h:87
PHcalTB04Info::detectorHit
IntVector detectorHit() const
Definition: PHcalTB04Info.h:64
PHcalTB04Info::phi
float phi() const
Definition: PHcalTB04Info.h:47
PHcalTB04Info::simEEcal
FloatVector simEEcal() const
Definition: PHcalTB04Info.h:58
PHcalTB04Info::setVtxSec
void setVtxSec(int id, int pdg, double px, double py, double pz, double ek)
Definition: PHcalTB04Info.cc:218
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
PHcalTB04Info::setVtxPrim
void setVtxPrim(int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz)
Definition: PHcalTB04Info.cc:198
PHcalTB04Info::idsEcal
IntVector idsEcal() const
Definition: PHcalTB04Info.h:49
PHcalTB04Info::initE
float initE() const
Definition: PHcalTB04Info.h:45
PHcalTB04Info::v1V
float v1V
Definition: PHcalTB04Info.h:146
PHcalTB04Info::idEcal
IntVector idEcal
Definition: PHcalTB04Info.h:134
PHcalTB04Info::simEtot
float simEtot
Definition: PHcalTB04Info.h:124
PHcalTB04Info::vtxSecPx
FloatVector vtxSecPx() const
Definition: PHcalTB04Info.h:86
PHcalTB04Info::vtxSecPz
FloatVector vtxSecPz() const
Definition: PHcalTB04Info.h:88
PHcalTB04Info::digEtotal
float digEtotal() const
Definition: PHcalTB04Info.h:55
PHcalTB04Info::esimh
FloatVector esimh
Definition: PHcalTB04Info.h:127
PHcalTB04Info::FloatVector
std::vector< float > FloatVector
Definition: PHcalTB04Info.h:34
PHcalTB04Info::v1secPz
FloatVector v1secPz
Definition: PHcalTB04Info.h:148
PHcalTB04Info::timeHit
FloatVector timeHit() const
Definition: PHcalTB04Info.h:69
PHcalTB04Info::idHcal
IntVector idHcal
Definition: PHcalTB04Info.h:136
PHcalTB04Info::digEHcal
FloatVector digEHcal() const
Definition: PHcalTB04Info.h:61
PHcalTB04Info::simEtotal
float simEtotal() const
Definition: PHcalTB04Info.h:52
PHcalTB04Info::layerHit
IntVector layerHit() const
Definition: PHcalTB04Info.h:67
PHcalTB04Info::digEEc
float digEEc
Definition: PHcalTB04Info.h:125
PHcalTB04Info::setEdepHcal
void setEdepHcal(const std::vector< double > &esim, const std::vector< double > &edig)
Definition: PHcalTB04Info.cc:133
PHcalTB04Info::idBeam
int idBeam
Definition: PHcalTB04Info.h:120
PHcalTB04Info::digEHc
float digEHc
Definition: PHcalTB04Info.h:125
PHcalTB04Info::nTower
int nTower
Definition: PHcalTB04Info.h:135
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
PHcalTB04Info::partID
int partID() const
Definition: PHcalTB04Info.h:44
PHcalTB04Info::simEHcal
FloatVector simEHcal() const
Definition: PHcalTB04Info.h:60
PHcalTB04Info::eHit
FloatVector eHit
Definition: PHcalTB04Info.h:141
PHcalTB04Info::vtxPartID
IntVector vtxPartID() const
Definition: PHcalTB04Info.h:75
PHcalTB04Info::IntVector
std::vector< int > IntVector
Definition: PHcalTB04Info.h:35
pdg
Definition: pdg_functions.h:28
PHcalTB04Info::etaHit
IntVector etaHit
Definition: PHcalTB04Info.h:140
PHcalTB04Info::clear
void clear()
Definition: PHcalTB04Info.cc:53
PHcalTB04Info::digEEcal
FloatVector digEEcal() const
Definition: PHcalTB04Info.h:59
PHcalTB04Info::v1Type
int v1Type
Definition: PHcalTB04Info.h:144
PHcalTB04Info::vtxPrimPz
float vtxPrimPz() const
Definition: PHcalTB04Info.h:85
PHcalTB04Info
Definition: PHcalTB04Info.h:33
PHcalTB04Info::etaIndexHit
IntVector etaIndexHit() const
Definition: PHcalTB04Info.h:65
PHcalTB04Info::v1R
float v1R
Definition: PHcalTB04Info.h:146
PHcalTB04Info::vtxSecEk
FloatVector vtxSecEk() const
Definition: PHcalTB04Info.h:89
PHcalTB04Info::longdig
FloatVector longdig
Definition: PHcalTB04Info.h:130
PHcalTB04Info::crystal
int crystal() const
Definition: PHcalTB04Info.h:48
PHcalTB04Info::digEcE
float digEcE() const
Definition: PHcalTB04Info.h:56
PHcalTB04Info::v1secPy
FloatVector v1secPy
Definition: PHcalTB04Info.h:148
PHcalTB04Info::vtxPrimR
float vtxPrimR() const
Definition: PHcalTB04Info.h:79
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
PHcalTB04Info::digEtot
float digEtot
Definition: PHcalTB04Info.h:125
PHcalTB04Info::v1secPartID
IntVector v1secPartID
Definition: PHcalTB04Info.h:145
PHcalTB04Info::~PHcalTB04Info
virtual ~PHcalTB04Info()
Definition: PHcalTB04Info.cc:36
PHcalTB04Info::v1secTrackID
IntVector v1secTrackID
Definition: PHcalTB04Info.h:145
PHcalTB04Info::vtxTrkID
IntVector vtxTrkID() const
Definition: PHcalTB04Info.h:74
PHcalTB04Info::simEHc
float simEHc
Definition: PHcalTB04Info.h:124
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
PHcalTB04Info::latdigEta
FloatVector latdigEta
Definition: PHcalTB04Info.h:128