src
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
// constants, enums and typedefs
21
//
22
23
//
24
// static data member definitions
25
//
26
27
//
28
// constructors and destructor
29
//
30
PHcalTB06Info::PHcalTB06Info
() {
clear
(); }
31
32
// PHcalTB06Info::PHcalTB06Info(const PHcalTB06Info& rhs) {
33
// // do actual copying here;
34
// }
35
36
PHcalTB06Info::~PHcalTB06Info
() {}
37
38
//
39
// assignment operators
40
//
41
// const PHcalTB06Info& PHcalTB06Info::operator=(const PHcalTB06Info& rhs) {
42
// //An exception safe implementation is
43
// PHcalTB06Info temp(rhs);
44
// swap(rhs);
45
//
46
// return *this;
47
// }
48
49
//
50
// member functions
51
//
52
53
void
PHcalTB06Info::clear
() {
54
nPrimary
=
idBeam
= 0;
55
eBeam
=
etaBeam
=
phiBeam
= 0;
56
57
simEtot
=
simEEc
=
simEHc
= 0;
58
59
hit
= 0;
60
hits
.clear();
61
62
v1EvNum
=
v1Type
=
v1Nsec
= 0;
63
v1X
=
v1Y
=
v1Z
=
v1U
=
v1V
=
v1W
= 0;
64
v1Px
=
v1Py
=
v1Pz
= 0;
65
v1Sec
.clear();
66
}
67
68
void
PHcalTB06Info::setPrimary
(
int
primary,
int
id
,
double
energy
,
double
etav,
double
phiv) {
69
nPrimary
=
primary
;
70
idBeam
=
id
;
71
eBeam
= (
float
)(
energy
);
72
etaBeam
= (
float
)(etav);
73
phiBeam
= (
float
)(phiv);
74
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setPrimary: nPrimary "
<<
nPrimary
<<
" partID "
<<
idBeam
<<
" initE "
75
<<
eBeam
<<
" eta "
<<
etaBeam
<<
" phi "
<<
phiBeam
;
76
}
77
78
void
PHcalTB06Info::setEdep
(
double
simtot,
double
sime,
double
simh) {
79
simEtot
= (
float
)simtot;
80
simEEc
= (
float
)sime;
81
simEHc
= (
float
)simh;
82
83
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setEdep: simEtot "
<<
simEtot
<<
" simEEc "
<<
simEEc
<<
" simEHc "
84
<<
simEHc
;
85
}
86
87
void
PHcalTB06Info::saveHit
(
unsigned
int
id
,
double
eta
,
double
phi
,
double
e
,
double
t
) {
88
int
nh
=
hit
;
89
hit
++;
90
PHcalTB06Info::Hit
newHit;
91
newHit.
id
=
id
;
92
newHit.
eta
= (
float
)(
eta
);
93
newHit.
phi
= (
float
)(
phi
);
94
newHit.
e
= (
float
)(
e
);
95
newHit.
t
= (
float
)(
t
);
96
hits
.push_back(newHit);
97
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::saveHit "
<<
hit
<<
" ID 0x"
<< std::hex <<
hits
[
nh
].id <<
std::dec
98
<<
" Eta "
<<
hits
[
nh
].eta <<
" Phi "
<<
hits
[
nh
].phi <<
" E "
<<
hits
[
nh
].e <<
" t "
99
<<
hits
[
nh
].t;
100
}
101
102
void
PHcalTB06Info::setVtxPrim
(
103
int
evNum,
int
type
,
double
x
,
double
y
,
double
z
,
double
u,
double
v
,
double
w
,
double
px
,
double
py
,
double
pz) {
104
v1EvNum
=
evNum
;
105
v1Type
=
type
;
106
double
r
=
sqrt
(
x
*
x
+
y
*
y
+
z
*
z
);
107
v1X
= (
float
)(
x
);
108
v1Y
= (
float
)(
y
);
109
v1Z
= (
float
)(
z
);
110
v1R
= (
float
)(
r
);
111
v1Px
= (
float
)(
px
);
112
v1Py
= (
float
)(
py
);
113
v1Pz
= (
float
)(pz);
114
v1U
= (
float
)(u);
115
v1V
= (
float
)(
v
);
116
v1W
= (
float
)(
w
);
117
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setVtxPrim: EvNum "
<<
v1EvNum
<<
" Type "
<<
v1Type
<<
" X/Y/Z/R "
<<
v1X
118
<<
"/"
<<
v1Y
<<
"/"
<<
v1Z
<<
"/"
<<
v1R
<<
" Px/Py/Pz "
<<
v1Px
<<
"/"
<<
v1Py
<<
"/"
119
<<
v1Pz
<<
" U/V/W "
<<
v1U
<<
"/"
<<
v1V
<<
"/"
<<
v1W
;
120
}
121
122
void
PHcalTB06Info::setVtxSec
(
int
id
,
int
pdg
,
double
px
,
double
py
,
double
pz,
double
ek) {
123
int
ns =
v1Nsec
;
124
v1Nsec
++;
125
PHcalTB06Info::Vtx
newVtx
;
126
newVtx
.trackID =
id
;
127
newVtx
.partID =
pdg
;
128
newVtx
.px = (
float
)(
px
);
129
newVtx
.py = (
float
)(
py
);
130
newVtx
.pz = (
float
)(pz);
131
newVtx
.eKin = (
float
)(ek);
132
v1Sec
.push_back(
newVtx
);
133
LogDebug
(
"SimHCalData"
) <<
"PHcalTB06Info::setVtxSec "
<<
v1Nsec
<<
" ID "
<<
v1Sec
[ns].trackID <<
" PDG Code "
134
<<
v1Sec
[ns].partID <<
" Px/Py/Pz/Ek "
<<
v1Sec
[ns].px <<
"/"
<<
v1Sec
[ns].py <<
"/"
135
<<
v1Sec
[ns].pz <<
"/"
<<
v1Sec
[ns].eKin;
136
}
PHcalTB06Info::idBeam
int idBeam
Definition:
PHcalTB06Info.h:119
ALCARECOEcalPhiSym_cff.float
float
Definition:
ALCARECOEcalPhiSym_cff.py:32
PHcalTB06Info::v1W
float v1W
Definition:
PHcalTB06Info.h:132
PHcalTB06Info::v1Px
float v1Px
Definition:
PHcalTB06Info.h:133
PHcalTB06Info::Hit::e
float e
Definition:
PHcalTB06Info.h:50
PHcalTB06Info::Vtx
Definition:
PHcalTB06Info.h:35
PHcalTB06Info::v1R
float v1R
Definition:
PHcalTB06Info.h:132
PHcalTB06Info::v1Y
float v1Y
Definition:
PHcalTB06Info.h:132
MessageLogger.h
PHcalTB06Info::Hit
Definition:
PHcalTB06Info.h:45
PVValHelper::phi
Definition:
PVValidationHelpers.h:69
PHcalTB06Info::v1Z
float v1Z
Definition:
PHcalTB06Info.h:132
dileptonTrigSettings_cff.pdg
pdg
Definition:
dileptonTrigSettings_cff.py:6
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:649
w
T w() const
Definition:
extBasic3DVector.h:229
PHcalTB06Info::setEdep
void setEdep(double simtot, double sime, double simh)
Definition:
PHcalTB06Info.cc:78
PHcalTB06Info::Hit::id
unsigned int id
Definition:
PHcalTB06Info.h:47
pdg
Definition:
pdg_functions.h:28
PHcalTB06Info::hit
int hit
Definition:
PHcalTB06Info.h:127
PHcalTB06Info::v1Type
int v1Type
Definition:
PHcalTB06Info.h:131
PHcalTB06Info::PHcalTB06Info
PHcalTB06Info()
Definition:
PHcalTB06Info.cc:30
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
PHcalTB06Info::eBeam
float eBeam
Definition:
PHcalTB06Info.h:120
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
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::Hit::eta
float eta
Definition:
PHcalTB06Info.h:48
PHcalTB06Info::phiBeam
float phiBeam
Definition:
PHcalTB06Info.h:120
HBHEDarkening_cff.energy
energy
Definition:
HBHEDarkening_cff.py:10
PHcalTB06Info::~PHcalTB06Info
virtual ~PHcalTB06Info()
Definition:
PHcalTB06Info.cc:36
PHcalTB06Info::primary
int primary() const
Definition:
PHcalTB06Info.h:60
ctppsOpticalFunctions_non_DB_cff.z
z
Definition:
ctppsOpticalFunctions_non_DB_cff.py:15
PHcalTB06Info::v1V
float v1V
Definition:
PHcalTB06Info.h:132
gainCalibHelper::gainCalibPI::type
type
Definition:
SiPixelGainCalibHelper.h:40
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:23
BeamSpotFilterParameters_cfi.newVtx
newVtx
Definition:
BeamSpotFilterParameters_cfi.py:6
PHcalTB06Info::simEtot
float simEtot
Definition:
PHcalTB06Info.h:123
PHcalTB06Info::simEHc
float simEHc
Definition:
PHcalTB06Info.h:123
PHcalTB06Info.h
PHcalTB06Info::v1Sec
VtxVector v1Sec
Definition:
PHcalTB06Info.h:134
PHcalTB06Info::setVtxSec
void setVtxSec(int id, int pdg, double px, double py, double pz, double ek)
Definition:
PHcalTB06Info.cc:122
cms::cuda::nh
uint32_t nh
Definition:
HistoContainer.h:11
PHcalTB06Info::saveHit
void saveHit(unsigned int det, double eta, double phi, double e, double t)
Definition:
PHcalTB06Info.cc:87
PHcalTB06Info::v1EvNum
int v1EvNum
Definition:
PHcalTB06Info.h:131
PHcalTB06Info::Hit::phi
float phi
Definition:
PHcalTB06Info.h:49
PHcalTB06Info::eta
float eta() const
Definition:
PHcalTB06Info.h:63
PHcalTB06Info::hits
HitVector hits
Definition:
PHcalTB06Info.h:128
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
PHcalTB06Info::v1Py
float v1Py
Definition:
PHcalTB06Info.h:133
PHcalTB06Info::etaBeam
float etaBeam
Definition:
PHcalTB06Info.h:120
PHcalTB06Info::v1Pz
float v1Pz
Definition:
PHcalTB06Info.h:133
detailsBasic3DVector::y
float float y
Definition:
extBasic3DVector.h:15
EcalPhiSymFlatTableProducers_cfi.id
id
Definition:
EcalPhiSymFlatTableProducers_cfi.py:11
PHcalTB06Info::simEEc
float simEEc
Definition:
PHcalTB06Info.h:123
PHcalTB06Info::setPrimary
void setPrimary(int primary, int id, double energy, double eta, double phi)
Definition:
PHcalTB06Info.cc:68
PHcalTB06Info::phi
float phi() const
Definition:
PHcalTB06Info.h:64
multPhiCorr_741_25nsDY_cfi.py
py
Definition:
multPhiCorr_741_25nsDY_cfi.py:12
PHcalTB06Info::v1Nsec
int v1Nsec
Definition:
PHcalTB06Info.h:131
PHcalTB06Info::clear
void clear()
Definition:
PHcalTB06Info.cc:53
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
multPhiCorr_741_25nsDY_cfi.px
px
Definition:
multPhiCorr_741_25nsDY_cfi.py:10
PHcalTB06Info::Hit::t
float t
Definition:
PHcalTB06Info.h:51
DDAxes::y
PHcalTB06Info::nPrimary
int nPrimary
Definition:
PHcalTB06Info.h:119
x
float x
Definition:
beamSpotDipStandalone.cc:55
DDAxes::z
PHcalTB06Info::v1X
float v1X
Definition:
PHcalTB06Info.h:132
PHcalTB06Info::evNum
int evNum() const
Definition:
PHcalTB06Info.h:77
PHcalTB06Info::v1U
float v1U
Definition:
PHcalTB06Info.h:132
DDAxes::x
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:241
Generated for CMSSW Reference Manual by
1.8.14