CMS 3D CMS Logo

PHcalTB06Info.h
Go to the documentation of this file.
1 #ifndef HcalTestBeam_PHcalTB06Info_h
2 #define HcalTestBeam_PHcalTB06Info_h
3 // -*- C++ -*-
4 //
5 // Package: HcalTestBeam
6 // Class : PHcalTB06Info
7 //
17 //
18 // Original Author: Sunanda Banerjee
19 // Created: Tue Oct 10 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 
31 public:
32  PHcalTB06Info();
33  virtual ~PHcalTB06Info();
34 
35  struct Vtx {
36  Vtx() : trackID(0), partID(0), px(0), py(0), pz(0), eKin(0) {}
37  int trackID;
38  int partID;
39  float px;
40  float py;
41  float pz;
42  float eKin;
43  };
44 
45  struct Hit {
46  Hit() : id(0), eta(0), phi(0), e(0), t(0) {}
47  unsigned int id;
48  float eta;
49  float phi;
50  float e;
51  float t;
52  };
53 
54  typedef std::vector<float> FloatVector;
55  typedef std::vector<int> IntVector;
56  typedef std::vector<Vtx> VtxVector;
57  typedef std::vector<Hit> HitVector;
58 
59  // ---------- const member functions ---------------------
60  int primary() const { return nPrimary; }
61  int partID() const { return idBeam; }
62  float initE() const { return eBeam; }
63  float eta() const { return etaBeam; }
64  float phi() const { return phiBeam; }
65  float simEtotal() const { return simEtot; }
66  float simEcE() const { return simEEc; }
67  float simHcE() const { return simEHc; }
68 
69  HitVector simHits() const { return hits; }
70  Hit simHit(unsigned int i) const { return hits[i]; }
71  unsigned int simHitID(unsigned int i) const { return hits[i].id; }
72  float simHitEta(unsigned int i) const { return hits[i].eta; }
73  float simHitPhi(unsigned int i) const { return hits[i].phi; }
74  float simHitE(unsigned int i) const { return hits[i].e; }
75  float simHitT(unsigned int i) const { return hits[i].t; }
76 
77  int evNum() const { return v1EvNum; }
78  int vtxType() const { return v1Type; }
79  float vtxPrimX() const { return v1X; }
80  float vtxPrimY() const { return v1Y; }
81  float vtxPrimZ() const { return v1Z; }
82  float vtxPrimR() const { return v1R; }
83  float vtxPrimU() const { return v1U; }
84  float vtxPrimV() const { return v1V; }
85  float vtxPrimW() const { return v1W; }
86  float vtxPrimPx() const { return v1Px; }
87  float vtxPrimPy() const { return v1Py; }
88  float vtxPrimPz() const { return v1Pz; }
89  int vtxSec() const { return v1Nsec; }
90  VtxVector vtxSecondaries() const { return v1Sec; }
91  Vtx vtxSecondary(unsigned int i) const { return v1Sec[i]; }
92  int vtxTrackID(unsigned int i) const { return v1Sec[i].trackID; }
93  int vtxPartID(unsigned int i) const { return v1Sec[i].partID; }
94  float vtxSecPx(unsigned int i) const { return v1Sec[i].px; }
95  float vtxSecPy(unsigned int i) const { return v1Sec[i].py; }
96  float vtxSecPz(unsigned int i) const { return v1Sec[i].pz; }
97  float vtxSecEKin(unsigned int i) const { return v1Sec[i].eKin; }
98 
99  // ---------- static member functions --------------------
100 
101  // ---------- member functions ---------------------------
102  void clear();
103  void setPrimary(int primary, int id, double energy, double eta, double phi);
104  void setEdep(double simtot, double sime, double simh);
105  void saveHit(unsigned int det, double eta, double phi, double e, double t);
106 
107  //Vertex associated methods
108  void setVtxPrim(
109  int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz);
110  void setVtxSec(int id, int pdg, double px, double py, double pz, double ek);
111 
112 private:
113  // PHcalTB06Info(const PHcalTB06Info&);
114  // const PHcalTB06Info& operator=(const PHcalTB06Info&);
115 
116  // ---------- member data --------------------------------
117 
118  //Beam parameters
121 
122  //Deposited energies
125 
126  //Hit Members
127  int hit;
129 
130  //Vertex members
132  float v1X, v1Y, v1Z, v1R, v1U, v1V, v1W;
133  float v1Px, v1Py, v1Pz;
135 };
136 
137 #endif
PHcalTB06Info::simHcE
float simHcE() const
Definition: PHcalTB06Info.h:67
PHcalTB06Info::setEdep
void setEdep(double simtot, double sime, double simh)
Definition: PHcalTB06Info.cc:78
PHcalTB06Info::Hit::t
float t
Definition: PHcalTB06Info.h:51
PHcalTB06Info::vtxSecondaries
VtxVector vtxSecondaries() const
Definition: PHcalTB06Info.h:90
PHcalTB06Info::vtxPrimU
float vtxPrimU() const
Definition: PHcalTB06Info.h:83
PHcalTB06Info::setPrimary
void setPrimary(int primary, int id, double energy, double eta, double phi)
Definition: PHcalTB06Info.cc:68
DDAxes::y
PHcalTB06Info::simHitPhi
float simHitPhi(unsigned int i) const
Definition: PHcalTB06Info.h:73
mps_fire.i
i
Definition: mps_fire.py:428
PHcalTB06Info::vtxSecPx
float vtxSecPx(unsigned int i) const
Definition: PHcalTB06Info.h:94
PHcalTB06Info::vtxPrimV
float vtxPrimV() const
Definition: PHcalTB06Info.h:84
PHcalTB06Info
Definition: PHcalTB06Info.h:30
PHcalTB06Info::vtxType
int vtxType() const
Definition: PHcalTB06Info.h:78
PHcalTB06Info::~PHcalTB06Info
virtual ~PHcalTB06Info()
Definition: PHcalTB06Info.cc:36
PHcalTB06Info::Hit::eta
float eta
Definition: PHcalTB06Info.h:48
PHcalTB06Info::vtxSecondary
Vtx vtxSecondary(unsigned int i) const
Definition: PHcalTB06Info.h:91
PHcalTB06Info::vtxPrimY
float vtxPrimY() const
Definition: PHcalTB06Info.h:80
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
PHcalTB06Info::v1Type
int v1Type
Definition: PHcalTB06Info.h:131
PHcalTB06Info::vtxPrimZ
float vtxPrimZ() const
Definition: PHcalTB06Info.h:81
PHcalTB06Info::Vtx
Definition: PHcalTB06Info.h:35
PHcalTB06Info::v1V
float v1V
Definition: PHcalTB06Info.h:132
PHcalTB06Info::vtxPrimR
float vtxPrimR() const
Definition: PHcalTB06Info.h:82
DDAxes::x
PHcalTB06Info::Vtx::Vtx
Vtx()
Definition: PHcalTB06Info.h:36
PHcalTB06Info::clear
void clear()
Definition: PHcalTB06Info.cc:53
findQualityFiles.v
v
Definition: findQualityFiles.py:179
PHcalTB06Info::digEHc
float digEHc
Definition: PHcalTB06Info.h:124
PHcalTB06Info::vtxSec
int vtxSec() const
Definition: PHcalTB06Info.h:89
PHcalTB06Info::Hit
Definition: PHcalTB06Info.h:45
PHcalTB06Info::idBeam
int idBeam
Definition: PHcalTB06Info.h:119
PHcalTB06Info::phiBeam
float phiBeam
Definition: PHcalTB06Info.h:120
PHcalTB06Info::setVtxSec
void setVtxSec(int id, int pdg, double px, double py, double pz, double ek)
Definition: PHcalTB06Info.cc:122
PHcalTB06Info::simEHc
float simEHc
Definition: PHcalTB06Info.h:123
PHcalTB06Info::vtxPartID
int vtxPartID(unsigned int i) const
Definition: PHcalTB06Info.h:93
PHcalTB06Info::Hit::e
float e
Definition: PHcalTB06Info.h:50
w
const double w
Definition: UKUtility.cc:23
PHcalTB06Info::hit
int hit
Definition: PHcalTB06Info.h:127
PHcalTB06Info::Hit::phi
float phi
Definition: PHcalTB06Info.h:49
PHcalTB06Info::simHitID
unsigned int simHitID(unsigned int i) const
Definition: PHcalTB06Info.h:71
DDAxes::z
PHcalTB06Info::vtxSecEKin
float vtxSecEKin(unsigned int i) const
Definition: PHcalTB06Info.h:97
PHcalTB06Info::v1Y
float v1Y
Definition: PHcalTB06Info.h:132
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
PHcalTB06Info::Vtx::eKin
float eKin
Definition: PHcalTB06Info.h:42
PHcalTB06Info::PHcalTB06Info
PHcalTB06Info()
Definition: PHcalTB06Info.cc:30
PHcalTB06Info::simHitEta
float simHitEta(unsigned int i) const
Definition: PHcalTB06Info.h:72
PHcalTB06Info::Vtx::py
float py
Definition: PHcalTB06Info.h:40
PHcalTB06Info::v1W
float v1W
Definition: PHcalTB06Info.h:132
PHcalTB06Info::HitVector
std::vector< Hit > HitVector
Definition: PHcalTB06Info.h:57
PHcalTB06Info::saveHit
void saveHit(unsigned int det, double eta, double phi, double e, double t)
Definition: PHcalTB06Info.cc:87
PHcalTB06Info::v1Py
float v1Py
Definition: PHcalTB06Info.h:133
PHcalTB06Info::v1Px
float v1Px
Definition: PHcalTB06Info.h:133
PHcalTB06Info::v1EvNum
int v1EvNum
Definition: PHcalTB06Info.h:131
PHcalTB06Info::eta
float eta() const
Definition: PHcalTB06Info.h:63
PHcalTB06Info::Vtx::trackID
int trackID
Definition: PHcalTB06Info.h:37
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
PHcalTB06Info::vtxSecPz
float vtxSecPz(unsigned int i) const
Definition: PHcalTB06Info.h:96
PHcalTB06Info::v1U
float v1U
Definition: PHcalTB06Info.h:132
PHcalTB06Info::vtxPrimW
float vtxPrimW() const
Definition: PHcalTB06Info.h:85
PHcalTB06Info::simEtot
float simEtot
Definition: PHcalTB06Info.h:123
PHcalTB06Info::vtxPrimX
float vtxPrimX() const
Definition: PHcalTB06Info.h:79
PHcalTB06Info::evNum
int evNum() const
Definition: PHcalTB06Info.h:77
PHcalTB06Info::Vtx::partID
int partID
Definition: PHcalTB06Info.h:38
PHcalTB06Info::vtxPrimPz
float vtxPrimPz() const
Definition: PHcalTB06Info.h:88
PHcalTB06Info::simEtotal
float simEtotal() const
Definition: PHcalTB06Info.h:65
PHcalTB06Info::vtxPrimPy
float vtxPrimPy() const
Definition: PHcalTB06Info.h:87
PHcalTB06Info::phi
float phi() const
Definition: PHcalTB06Info.h:64
PHcalTB06Info::primary
int primary() const
Definition: PHcalTB06Info.h:60
PHcalTB06Info::FloatVector
std::vector< float > FloatVector
Definition: PHcalTB06Info.h:54
PHcalTB06Info::vtxPrimPx
float vtxPrimPx() const
Definition: PHcalTB06Info.h:86
PHcalTB06Info::simHitT
float simHitT(unsigned int i) const
Definition: PHcalTB06Info.h:75
PHcalTB06Info::nPrimary
int nPrimary
Definition: PHcalTB06Info.h:119
PHcalTB06Info::Vtx::pz
float pz
Definition: PHcalTB06Info.h:41
PHcalTB06Info::VtxVector
std::vector< Vtx > VtxVector
Definition: PHcalTB06Info.h:56
PHcalTB06Info::IntVector
std::vector< int > IntVector
Definition: PHcalTB06Info.h:55
PHcalTB06Info::vtxTrackID
int vtxTrackID(unsigned int i) const
Definition: PHcalTB06Info.h:92
PHcalTB06Info::vtxSecPy
float vtxSecPy(unsigned int i) const
Definition: PHcalTB06Info.h:95
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
PHcalTB06Info::simHits
HitVector simHits() const
Definition: PHcalTB06Info.h:69
PHcalTB06Info::v1Sec
VtxVector v1Sec
Definition: PHcalTB06Info.h:134
PHcalTB06Info::hits
HitVector hits
Definition: PHcalTB06Info.h:128
PHcalTB06Info::simHitE
float simHitE(unsigned int i) const
Definition: PHcalTB06Info.h:74
PHcalTB06Info::v1R
float v1R
Definition: PHcalTB06Info.h:132
PHcalTB06Info::Hit::Hit
Hit()
Definition: PHcalTB06Info.h:46
PHcalTB06Info::Hit::id
unsigned int id
Definition: PHcalTB06Info.h:47
PHcalTB06Info::simEcE
float simEcE() const
Definition: PHcalTB06Info.h:66
PHcalTB06Info::etaBeam
float etaBeam
Definition: PHcalTB06Info.h:120
pdg
Definition: pdg_functions.h:28
PHcalTB06Info::simHit
Hit simHit(unsigned int i) const
Definition: PHcalTB06Info.h:70
PHcalTB06Info::simEEc
float simEEc
Definition: PHcalTB06Info.h:123
PHcalTB06Info::Vtx::px
float px
Definition: PHcalTB06Info.h:39
PHcalTB06Info::digEtot
float digEtot
Definition: PHcalTB06Info.h:124
PHcalTB06Info::v1Nsec
int v1Nsec
Definition: PHcalTB06Info.h:131
PHcalTB06Info::v1Pz
float v1Pz
Definition: PHcalTB06Info.h:133
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
PHcalTB06Info::eBeam
float eBeam
Definition: PHcalTB06Info.h:120
PHcalTB06Info::v1X
float v1X
Definition: PHcalTB06Info.h:132
PHcalTB06Info::digEEc
float digEEc
Definition: PHcalTB06Info.h:124
PHcalTB06Info::partID
int partID() const
Definition: PHcalTB06Info.h:61
PHcalTB06Info::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: PHcalTB06Info.cc:102
PHcalTB06Info::initE
float initE() const
Definition: PHcalTB06Info.h:62
PHcalTB06Info::v1Z
float v1Z
Definition: PHcalTB06Info.h:132
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37