Main Page
Namespaces
Classes
Package Documentation
SimDataFormats
HcalTestBeam
src
PHcalTB06Info.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: HcalTestBeam
4
// Class : PHcalTB06Info
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Sunanda Banerjee
10
// Created: Tue Oct 10 10:25:44 CEST 2006
11
//
12
13
// system include files
14
15
// user include files
16
#include "
SimDataFormats/HcalTestBeam/interface/PHcalTB06Info.h
"
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
19
20
21
//
22
// constants, enums and typedefs
23
//
24
25
//
26
// static data member definitions
27
//
28
29
//
30
// constructors and destructor
31
//
32
PHcalTB06Info::PHcalTB06Info
() {
33
clear
();
34
}
35
36
// PHcalTB06Info::PHcalTB06Info(const PHcalTB06Info& rhs) {
37
// // do actual copying here;
38
// }
39
40
PHcalTB06Info::~PHcalTB06Info
() {
41
}
42
43
//
44
// assignment operators
45
//
46
// const PHcalTB06Info& PHcalTB06Info::operator=(const PHcalTB06Info& rhs) {
47
// //An exception safe implementation is
48
// PHcalTB06Info temp(rhs);
49
// swap(rhs);
50
//
51
// return *this;
52
// }
53
54
//
55
// member functions
56
//
57
58
void
PHcalTB06Info::clear
() {
59
nPrimary
=
idBeam
=0;
60
eBeam
=
etaBeam
=
phiBeam
= 0;
61
62
simEtot
=
simEEc
=
simEHc
= 0;
63
64
hit
= 0;
65
hits
.clear();
66
67
v1EvNum
=
v1Type
=
v1Nsec
= 0;
68
v1X
=
v1Y
=
v1Z
=
v1U
=
v1V
=
v1W
= 0;
69
v1Px
=
v1Py
=
v1Pz
= 0;
70
v1Sec
.clear();
71
}
72
73
void
PHcalTB06Info::setPrimary
(
int
primary
,
int
id
,
double
energy,
double
etav,
74
double
phiv) {
75
76
nPrimary
=
primary
;
77
idBeam
=
id
;
78
eBeam
= (
float
)(energy);
79
etaBeam
= (
float
)(etav);
80
phiBeam
= (
float
)(phiv);
81
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setPrimary: nPrimary "
<<
nPrimary
82
<<
" partID "
<<
idBeam
<<
" initE "
<<
eBeam
83
<<
" eta "
<<
etaBeam
<<
" phi "
<<
phiBeam
;
84
}
85
86
void
PHcalTB06Info::setEdep
(
double
simtot,
double
sime,
double
simh) {
87
88
simEtot
= (
float
)simtot;
89
simEEc
= (
float
)sime;
90
simEHc
= (
float
)simh;
91
92
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setEdep: simEtot "
<<
simEtot
93
<<
" simEEc "
<<
simEEc
<<
" simEHc "
<<
simEHc
;
94
}
95
96
void
PHcalTB06Info::saveHit
(
unsigned
int
id
,
double
eta
,
double
phi
,
double
e
,
97
double
t
) {
98
99
int
nh =
hit
;
100
hit
++;
101
PHcalTB06Info::Hit
newHit;
102
newHit.
id
=
id
;
103
newHit.
eta
= (
float
)(eta);
104
newHit.
phi
= (
float
)(phi);
105
newHit.
e
= (
float
)(e);
106
newHit.
t
= (
float
)(t);
107
hits
.push_back(newHit);
108
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::saveHit "
<<
hit
<<
" ID 0x"
109
<< std::hex <<
hits
[nh].id <<
std::dec
<<
" Eta "
110
<<
hits
[nh].eta <<
" Phi "
<<
hits
[nh].phi
111
<<
" E "
<<
hits
[nh].e <<
" t "
<<
hits
[nh].t;
112
}
113
114
void
PHcalTB06Info::setVtxPrim
(
int
evNum
,
int
type
,
double
x
,
double
y
,
115
double
z
,
double
u,
double
v
,
double
w
,
116
double
px,
double
py,
double
pz) {
117
118
v1EvNum
=
evNum
;
119
v1Type
=
type
;
120
double
r
=
sqrt
(x*x+y*y+z*z);
121
v1X
= (
float
)(x);
122
v1Y
= (
float
)(y);
123
v1Z
= (
float
)(z);
124
v1R
= (
float
)(r);
125
v1Px
= (
float
)(px);
126
v1Py
= (
float
)(py);
127
v1Pz
= (
float
)(pz);
128
v1U
= (
float
)(u);
129
v1V
= (
float
)(v);
130
v1W
= (
float
)(w);
131
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setVtxPrim: EvNum "
<<
v1EvNum
132
<<
" Type "
<<
v1Type
<<
" X/Y/Z/R "
<<
v1X
<<
"/"
133
<<
v1Y
<<
"/"
<<
v1Z
<<
"/"
<<
v1R
<<
" Px/Py/Pz "
134
<<
v1Px
<<
"/"
<<
v1Py
<<
"/"
<<
v1Pz
<<
" U/V/W "
135
<<
v1U
<<
"/"
<<
v1V
<<
"/"
<<
v1W
;
136
}
137
138
void
PHcalTB06Info::setVtxSec
(
int
id
,
int
pdg,
double
px,
double
py,
double
pz,
139
double
ek) {
140
141
int
ns =
v1Nsec
;
142
v1Nsec
++;
143
PHcalTB06Info::Vtx
newVtx;
144
newVtx.
trackID
=
id
;
145
newVtx.
partID
= pdg;
146
newVtx.
px
= (
float
)(px);
147
newVtx.
py
= (
float
)(py);
148
newVtx.
pz
= (
float
)(pz);
149
newVtx.
eKin
= (
float
)(ek);
150
v1Sec
.push_back(newVtx);
151
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setVtxSec "
<<
v1Nsec
<<
" ID "
152
<<
v1Sec
[ns].trackID <<
" PDG Code "
153
<<
v1Sec
[ns].partID <<
" Px/Py/Pz/Ek "
154
<<
v1Sec
[ns].px <<
"/"
<<
v1Sec
[ns].py <<
"/"
155
<<
v1Sec
[ns].pz <<
"/"
<<
v1Sec
[ns].eKin;
156
}
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:601
PHcalTB06Info::idBeam
int idBeam
Definition:
PHcalTB06Info.h:120
PHcalTB06Info::v1W
float v1W
Definition:
PHcalTB06Info.h:133
type
type
Definition:
HCALResponse.h:21
PHcalTB06Info::v1Px
float v1Px
Definition:
PHcalTB06Info.h:134
MessageLogger.h
PHcalTB06Info::Hit::e
float e
Definition:
PHcalTB06Info.h:51
PHcalTB06Info::Vtx::eKin
float eKin
Definition:
PHcalTB06Info.h:43
PHcalTB06Info::Vtx
Definition:
PHcalTB06Info.h:36
PHcalTB06Info::v1R
float v1R
Definition:
PHcalTB06Info.h:133
PHcalTB06Info::v1Y
float v1Y
Definition:
PHcalTB06Info.h:133
w
const double w
Definition:
UKUtility.cc:23
PHcalTB06Info::Vtx::pz
float pz
Definition:
PHcalTB06Info.h:42
PHcalTB06Info::Hit
Definition:
PHcalTB06Info.h:46
PHcalTB06Info::v1Z
float v1Z
Definition:
PHcalTB06Info.h:133
PHcalTB06Info::phi
float phi() const
Definition:
PHcalTB06Info.h:65
PHcalTB06Info::setEdep
void setEdep(double simtot, double sime, double simh)
Definition:
PHcalTB06Info.cc:86
PHcalTB06Info::Vtx::trackID
int trackID
Definition:
PHcalTB06Info.h:38
PHcalTB06Info::Hit::id
unsigned int id
Definition:
PHcalTB06Info.h:48
PHcalTB06Info::hit
int hit
Definition:
PHcalTB06Info.h:128
PHcalTB06Info::Vtx::partID
int partID
Definition:
PHcalTB06Info.h:39
PHcalTB06Info::v1Type
int v1Type
Definition:
PHcalTB06Info.h:132
PHcalTB06Info::PHcalTB06Info
PHcalTB06Info()
Definition:
PHcalTB06Info.cc:32
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
PHcalTB06Info::eBeam
float eBeam
Definition:
PHcalTB06Info.h:121
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:114
PHcalTB06Info::Hit::eta
float eta
Definition:
PHcalTB06Info.h:49
PHcalTB06Info::phiBeam
float phiBeam
Definition:
PHcalTB06Info.h:121
PHcalTB06Info::Vtx::py
float py
Definition:
PHcalTB06Info.h:41
PHcalTB06Info::~PHcalTB06Info
virtual ~PHcalTB06Info()
Definition:
PHcalTB06Info.cc:40
PHcalTB06Info::v1V
float v1V
Definition:
PHcalTB06Info.h:133
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:28
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:18
PHcalTB06Info::simEtot
float simEtot
Definition:
PHcalTB06Info.h:124
PHcalTB06Info::simEHc
float simEHc
Definition:
PHcalTB06Info.h:124
PHcalTB06Info.h
PHcalTB06Info::v1Sec
VtxVector v1Sec
Definition:
PHcalTB06Info.h:135
objects.autophobj.float
float
Definition:
autophobj.py:147
PHcalTB06Info::setVtxSec
void setVtxSec(int id, int pdg, double px, double py, double pz, double ek)
Definition:
PHcalTB06Info.cc:138
PHcalTB06Info::saveHit
void saveHit(unsigned int det, double eta, double phi, double e, double t)
Definition:
PHcalTB06Info.cc:96
PHcalTB06Info::v1EvNum
int v1EvNum
Definition:
PHcalTB06Info.h:132
PHcalTB06Info::Hit::phi
float phi
Definition:
PHcalTB06Info.h:50
PHcalTB06Info::hits
HitVector hits
Definition:
PHcalTB06Info.h:129
alignCSCRings.r
r
Definition:
alignCSCRings.py:92
PHcalTB06Info::v1Py
float v1Py
Definition:
PHcalTB06Info.h:134
PHcalTB06Info::etaBeam
float etaBeam
Definition:
PHcalTB06Info.h:121
PHcalTB06Info::v1Pz
float v1Pz
Definition:
PHcalTB06Info.h:134
PHcalTB06Info::simEEc
float simEEc
Definition:
PHcalTB06Info.h:124
PHcalTB06Info::setPrimary
void setPrimary(int primary, int id, double energy, double eta, double phi)
Definition:
PHcalTB06Info.cc:73
PHcalTB06Info::v1Nsec
int v1Nsec
Definition:
PHcalTB06Info.h:132
PHcalTB06Info::clear
void clear()
Definition:
PHcalTB06Info.cc:58
hit
Definition:
SiStripHitEffFromCalibTree.cc:85
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
PHcalTB06Info::Hit::t
float t
Definition:
PHcalTB06Info.h:52
DDAxes::y
PHcalTB06Info::nPrimary
int nPrimary
Definition:
PHcalTB06Info.h:120
DDAxes::z
PHcalTB06Info::primary
int primary() const
Definition:
PHcalTB06Info.h:61
lumiQTWidget.t
t
Definition:
lumiQTWidget.py:50
PHcalTB06Info::v1X
float v1X
Definition:
PHcalTB06Info.h:133
PHcalTB06Info::v1U
float v1U
Definition:
PHcalTB06Info.h:133
PHcalTB06Info::Vtx::px
float px
Definition:
PHcalTB06Info.h:40
DDAxes::x
PHcalTB06Info::eta
float eta() const
Definition:
PHcalTB06Info.h:64
PHcalTB06Info::evNum
int evNum() const
Definition:
PHcalTB06Info.h:78
Generated for CMSSW Reference Manual by
1.8.11