CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
PHcalTB06Info Class Reference

#include <SimDataFormats/HcalTestBeam/interface/PHcalTB06Info.h>

Classes

struct  Hit
 
struct  Vtx
 

Public Types

typedef std::vector< float > FloatVector
 
typedef std::vector< HitHitVector
 
typedef std::vector< int > IntVector
 
typedef std::vector< VtxVtxVector
 

Public Member Functions

void clear ()
 
float eta () const
 
int evNum () const
 
float initE () const
 
int partID () const
 
 PHcalTB06Info ()
 
float phi () const
 
int primary () const
 
void saveHit (unsigned int det, double eta, double phi, double e, double t)
 
void setEdep (double simtot, double sime, double simh)
 
void setPrimary (int primary, int id, double energy, double eta, double phi)
 
void setVtxPrim (int evNum, int type, double x, double y, double z, double u, double v, double w, double px, double py, double pz)
 
void setVtxSec (int id, int pdg, double px, double py, double pz, double ek)
 
float simEcE () const
 
float simEtotal () const
 
float simHcE () const
 
Hit simHit (unsigned int i) const
 
float simHitE (unsigned int i) const
 
float simHitEta (unsigned int i) const
 
unsigned int simHitID (unsigned int i) const
 
float simHitPhi (unsigned int i) const
 
HitVector simHits () const
 
float simHitT (unsigned int i) const
 
int vtxPartID (unsigned int i) const
 
float vtxPrimPx () const
 
float vtxPrimPy () const
 
float vtxPrimPz () const
 
float vtxPrimR () const
 
float vtxPrimU () const
 
float vtxPrimV () const
 
float vtxPrimW () const
 
float vtxPrimX () const
 
float vtxPrimY () const
 
float vtxPrimZ () const
 
int vtxSec () const
 
float vtxSecEKin (unsigned int i) const
 
VtxVector vtxSecondaries () const
 
Vtx vtxSecondary (unsigned int i) const
 
float vtxSecPx (unsigned int i) const
 
float vtxSecPy (unsigned int i) const
 
float vtxSecPz (unsigned int i) const
 
int vtxTrackID (unsigned int i) const
 
int vtxType () const
 
virtual ~PHcalTB06Info ()
 

Private Attributes

float digEEc
 
float digEHc
 
float digEtot
 
float eBeam
 
float etaBeam
 
int hit
 
HitVector hits
 
int idBeam
 
int nPrimary
 
float phiBeam
 
float simEEc
 
float simEHc
 
float simEtot
 
int v1EvNum
 
int v1Nsec
 
float v1Px
 
float v1Py
 
float v1Pz
 
float v1R
 
VtxVector v1Sec
 
int v1Type
 
float v1U
 
float v1V
 
float v1W
 
float v1X
 
float v1Y
 
float v1Z
 

Detailed Description

Description: Histogram handling class for analysis

Usage: Simulation information for test beam studies of 2004 Test Beam Contains beam information, hits and digitised results

Definition at line 30 of file PHcalTB06Info.h.

Member Typedef Documentation

◆ FloatVector

typedef std::vector<float> PHcalTB06Info::FloatVector

Definition at line 54 of file PHcalTB06Info.h.

◆ HitVector

typedef std::vector<Hit> PHcalTB06Info::HitVector

Definition at line 57 of file PHcalTB06Info.h.

◆ IntVector

typedef std::vector<int> PHcalTB06Info::IntVector

Definition at line 55 of file PHcalTB06Info.h.

◆ VtxVector

typedef std::vector<Vtx> PHcalTB06Info::VtxVector

Definition at line 56 of file PHcalTB06Info.h.

Constructor & Destructor Documentation

◆ PHcalTB06Info()

PHcalTB06Info::PHcalTB06Info ( )

Definition at line 30 of file PHcalTB06Info.cc.

References clear().

30 { clear(); }

◆ ~PHcalTB06Info()

PHcalTB06Info::~PHcalTB06Info ( )
virtual

Definition at line 36 of file PHcalTB06Info.cc.

36 {}

Member Function Documentation

◆ clear()

void PHcalTB06Info::clear ( void  )

Definition at line 53 of file PHcalTB06Info.cc.

References eBeam, etaBeam, hits, idBeam, nPrimary, phiBeam, simEEc, simEHc, simEtot, v1EvNum, v1Nsec, v1Px, v1Py, v1Pz, v1Sec, v1Type, v1U, v1V, v1W, v1X, v1Y, and v1Z.

Referenced by PHcalTB06Info().

53  {
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 }
VtxVector v1Sec
HitVector hits

◆ eta()

float PHcalTB06Info::eta ( void  ) const
inline

◆ evNum()

int PHcalTB06Info::evNum ( ) const
inline

Definition at line 77 of file PHcalTB06Info.h.

References v1EvNum.

Referenced by setVtxPrim().

77 { return v1EvNum; }

◆ initE()

float PHcalTB06Info::initE ( ) const
inline

Definition at line 62 of file PHcalTB06Info.h.

References eBeam.

62 { return eBeam; }

◆ partID()

int PHcalTB06Info::partID ( ) const
inline

Definition at line 61 of file PHcalTB06Info.h.

References idBeam.

61 { return idBeam; }

◆ phi()

float PHcalTB06Info::phi ( void  ) const
inline

◆ primary()

int PHcalTB06Info::primary ( ) const
inline

Definition at line 60 of file PHcalTB06Info.h.

References nPrimary.

Referenced by setPrimary().

60 { return nPrimary; }

◆ saveHit()

void PHcalTB06Info::saveHit ( unsigned int  det,
double  eta,
double  phi,
double  e,
double  t 
)

Definition at line 87 of file PHcalTB06Info.cc.

References TauDecayModes::dec, MillePedeFileConverter_cfg::e, PHcalTB06Info::Hit::e, PHcalTB06Info::Hit::eta, eta(), nano_mu_digi_cff::float, hit, hits, PHcalTB06Info::Hit::id, l1ctLayer2EG_cff::id, LogDebug, cms::cuda::nh, PHcalTB06Info::Hit::phi, phi(), PHcalTB06Info::Hit::t, and submitPVValidationJobs::t.

87  {
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 }
unsigned int id
Definition: PHcalTB06Info.h:47
uint32_t nh
float eta() const
Definition: PHcalTB06Info.h:63
HitVector hits
float phi() const
Definition: PHcalTB06Info.h:64
#define LogDebug(id)

◆ setEdep()

void PHcalTB06Info::setEdep ( double  simtot,
double  sime,
double  simh 
)

Definition at line 78 of file PHcalTB06Info.cc.

References nano_mu_digi_cff::float, LogDebug, simEEc, simEHc, and simEtot.

78  {
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 }
#define LogDebug(id)

◆ setPrimary()

void PHcalTB06Info::setPrimary ( int  primary,
int  id,
double  energy,
double  eta,
double  phi 
)

Definition at line 68 of file PHcalTB06Info.cc.

References eBeam, hcalRecHitTable_cff::energy, etaBeam, nano_mu_digi_cff::float, l1ctLayer2EG_cff::id, idBeam, LogDebug, nPrimary, phiBeam, and primary().

68  {
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 }
int primary() const
Definition: PHcalTB06Info.h:60
#define LogDebug(id)

◆ setVtxPrim()

void PHcalTB06Info::setVtxPrim ( int  evNum,
int  type,
double  x,
double  y,
double  z,
double  u,
double  v,
double  w,
double  px,
double  py,
double  pz 
)

Definition at line 102 of file PHcalTB06Info.cc.

References evNum(), nano_mu_digi_cff::float, LogDebug, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, alignCSCRings::r, mathSSE::sqrt(), findQualityFiles::v, v1EvNum, v1Px, v1Py, v1Pz, v1R, v1Type, v1U, v1V, v1W, v1X, v1Y, v1Z, w(), x, y, and z.

103  {
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 }
T w() const
T sqrt(T t)
Definition: SSEVec.h:19
int evNum() const
Definition: PHcalTB06Info.h:77
#define LogDebug(id)

◆ setVtxSec()

void PHcalTB06Info::setVtxSec ( int  id,
int  pdg,
double  px,
double  py,
double  pz,
double  ek 
)

Definition at line 122 of file PHcalTB06Info.cc.

References nano_mu_digi_cff::float, l1ctLayer2EG_cff::id, LogDebug, BeamSpotFilterParameters_cfi::newVtx, dileptonTrigSettings_cff::pdg, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, v1Nsec, and v1Sec.

122  {
123  int ns = v1Nsec;
124  v1Nsec++;
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 }
VtxVector v1Sec
#define LogDebug(id)

◆ simEcE()

float PHcalTB06Info::simEcE ( ) const
inline

Definition at line 66 of file PHcalTB06Info.h.

References simEEc.

66 { return simEEc; }

◆ simEtotal()

float PHcalTB06Info::simEtotal ( ) const
inline

Definition at line 65 of file PHcalTB06Info.h.

References simEtot.

65 { return simEtot; }

◆ simHcE()

float PHcalTB06Info::simHcE ( ) const
inline

Definition at line 67 of file PHcalTB06Info.h.

References simEHc.

67 { return simEHc; }

◆ simHit()

Hit PHcalTB06Info::simHit ( unsigned int  i) const
inline

Definition at line 70 of file PHcalTB06Info.h.

References hits, and mps_fire::i.

70 { return hits[i]; }
HitVector hits

◆ simHitE()

float PHcalTB06Info::simHitE ( unsigned int  i) const
inline

Definition at line 74 of file PHcalTB06Info.h.

References hits, and mps_fire::i.

74 { return hits[i].e; }
HitVector hits

◆ simHitEta()

float PHcalTB06Info::simHitEta ( unsigned int  i) const
inline

Definition at line 72 of file PHcalTB06Info.h.

References hits, and mps_fire::i.

72 { return hits[i].eta; }
HitVector hits

◆ simHitID()

unsigned int PHcalTB06Info::simHitID ( unsigned int  i) const
inline

Definition at line 71 of file PHcalTB06Info.h.

References hits, and mps_fire::i.

71 { return hits[i].id; }
HitVector hits

◆ simHitPhi()

float PHcalTB06Info::simHitPhi ( unsigned int  i) const
inline

Definition at line 73 of file PHcalTB06Info.h.

References hits, and mps_fire::i.

73 { return hits[i].phi; }
HitVector hits

◆ simHits()

HitVector PHcalTB06Info::simHits ( ) const
inline

Definition at line 69 of file PHcalTB06Info.h.

References hits.

Referenced by ntupleDataFormat.TrackingParticle::bestMatchingTrack().

69 { return hits; }
HitVector hits

◆ simHitT()

float PHcalTB06Info::simHitT ( unsigned int  i) const
inline

Definition at line 75 of file PHcalTB06Info.h.

References hits, and mps_fire::i.

75 { return hits[i].t; }
HitVector hits

◆ vtxPartID()

int PHcalTB06Info::vtxPartID ( unsigned int  i) const
inline

Definition at line 93 of file PHcalTB06Info.h.

References mps_fire::i, and v1Sec.

93 { return v1Sec[i].partID; }
VtxVector v1Sec

◆ vtxPrimPx()

float PHcalTB06Info::vtxPrimPx ( ) const
inline

Definition at line 86 of file PHcalTB06Info.h.

References v1Px.

86 { return v1Px; }

◆ vtxPrimPy()

float PHcalTB06Info::vtxPrimPy ( ) const
inline

Definition at line 87 of file PHcalTB06Info.h.

References v1Py.

87 { return v1Py; }

◆ vtxPrimPz()

float PHcalTB06Info::vtxPrimPz ( ) const
inline

Definition at line 88 of file PHcalTB06Info.h.

References v1Pz.

88 { return v1Pz; }

◆ vtxPrimR()

float PHcalTB06Info::vtxPrimR ( ) const
inline

Definition at line 82 of file PHcalTB06Info.h.

References v1R.

82 { return v1R; }

◆ vtxPrimU()

float PHcalTB06Info::vtxPrimU ( ) const
inline

Definition at line 83 of file PHcalTB06Info.h.

References v1U.

83 { return v1U; }

◆ vtxPrimV()

float PHcalTB06Info::vtxPrimV ( ) const
inline

Definition at line 84 of file PHcalTB06Info.h.

References v1V.

84 { return v1V; }

◆ vtxPrimW()

float PHcalTB06Info::vtxPrimW ( ) const
inline

Definition at line 85 of file PHcalTB06Info.h.

References v1W.

85 { return v1W; }

◆ vtxPrimX()

float PHcalTB06Info::vtxPrimX ( ) const
inline

Definition at line 79 of file PHcalTB06Info.h.

References v1X.

79 { return v1X; }

◆ vtxPrimY()

float PHcalTB06Info::vtxPrimY ( ) const
inline

Definition at line 80 of file PHcalTB06Info.h.

References v1Y.

80 { return v1Y; }

◆ vtxPrimZ()

float PHcalTB06Info::vtxPrimZ ( ) const
inline

Definition at line 81 of file PHcalTB06Info.h.

References v1Z.

81 { return v1Z; }

◆ vtxSec()

int PHcalTB06Info::vtxSec ( ) const
inline

Definition at line 89 of file PHcalTB06Info.h.

References v1Nsec.

89 { return v1Nsec; }

◆ vtxSecEKin()

float PHcalTB06Info::vtxSecEKin ( unsigned int  i) const
inline

Definition at line 97 of file PHcalTB06Info.h.

References mps_fire::i, and v1Sec.

97 { return v1Sec[i].eKin; }
VtxVector v1Sec

◆ vtxSecondaries()

VtxVector PHcalTB06Info::vtxSecondaries ( ) const
inline

Definition at line 90 of file PHcalTB06Info.h.

References v1Sec.

90 { return v1Sec; }
VtxVector v1Sec

◆ vtxSecondary()

Vtx PHcalTB06Info::vtxSecondary ( unsigned int  i) const
inline

Definition at line 91 of file PHcalTB06Info.h.

References mps_fire::i, and v1Sec.

91 { return v1Sec[i]; }
VtxVector v1Sec

◆ vtxSecPx()

float PHcalTB06Info::vtxSecPx ( unsigned int  i) const
inline

Definition at line 94 of file PHcalTB06Info.h.

References mps_fire::i, and v1Sec.

94 { return v1Sec[i].px; }
VtxVector v1Sec

◆ vtxSecPy()

float PHcalTB06Info::vtxSecPy ( unsigned int  i) const
inline

Definition at line 95 of file PHcalTB06Info.h.

References mps_fire::i, and v1Sec.

95 { return v1Sec[i].py; }
VtxVector v1Sec

◆ vtxSecPz()

float PHcalTB06Info::vtxSecPz ( unsigned int  i) const
inline

Definition at line 96 of file PHcalTB06Info.h.

References mps_fire::i, and v1Sec.

96 { return v1Sec[i].pz; }
VtxVector v1Sec

◆ vtxTrackID()

int PHcalTB06Info::vtxTrackID ( unsigned int  i) const
inline

Definition at line 92 of file PHcalTB06Info.h.

References mps_fire::i, and v1Sec.

92 { return v1Sec[i].trackID; }
VtxVector v1Sec

◆ vtxType()

int PHcalTB06Info::vtxType ( ) const
inline

Definition at line 78 of file PHcalTB06Info.h.

References v1Type.

78 { return v1Type; }

Member Data Documentation

◆ digEEc

float PHcalTB06Info::digEEc
private

Definition at line 124 of file PHcalTB06Info.h.

◆ digEHc

float PHcalTB06Info::digEHc
private

Definition at line 124 of file PHcalTB06Info.h.

◆ digEtot

float PHcalTB06Info::digEtot
private

Definition at line 124 of file PHcalTB06Info.h.

◆ eBeam

float PHcalTB06Info::eBeam
private

Definition at line 120 of file PHcalTB06Info.h.

Referenced by clear(), initE(), and setPrimary().

◆ etaBeam

float PHcalTB06Info::etaBeam
private

Definition at line 120 of file PHcalTB06Info.h.

Referenced by clear(), eta(), and setPrimary().

◆ hit

int PHcalTB06Info::hit
private

Definition at line 127 of file PHcalTB06Info.h.

Referenced by saveHit().

◆ hits

HitVector PHcalTB06Info::hits
private

◆ idBeam

int PHcalTB06Info::idBeam
private

Definition at line 119 of file PHcalTB06Info.h.

Referenced by clear(), partID(), and setPrimary().

◆ nPrimary

int PHcalTB06Info::nPrimary
private

Definition at line 119 of file PHcalTB06Info.h.

Referenced by clear(), primary(), and setPrimary().

◆ phiBeam

float PHcalTB06Info::phiBeam
private

Definition at line 120 of file PHcalTB06Info.h.

Referenced by clear(), phi(), and setPrimary().

◆ simEEc

float PHcalTB06Info::simEEc
private

Definition at line 123 of file PHcalTB06Info.h.

Referenced by clear(), setEdep(), and simEcE().

◆ simEHc

float PHcalTB06Info::simEHc
private

Definition at line 123 of file PHcalTB06Info.h.

Referenced by clear(), setEdep(), and simHcE().

◆ simEtot

float PHcalTB06Info::simEtot
private

Definition at line 123 of file PHcalTB06Info.h.

Referenced by clear(), setEdep(), and simEtotal().

◆ v1EvNum

int PHcalTB06Info::v1EvNum
private

Definition at line 131 of file PHcalTB06Info.h.

Referenced by clear(), evNum(), and setVtxPrim().

◆ v1Nsec

int PHcalTB06Info::v1Nsec
private

Definition at line 131 of file PHcalTB06Info.h.

Referenced by clear(), setVtxSec(), and vtxSec().

◆ v1Px

float PHcalTB06Info::v1Px
private

Definition at line 133 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimPx().

◆ v1Py

float PHcalTB06Info::v1Py
private

Definition at line 133 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimPy().

◆ v1Pz

float PHcalTB06Info::v1Pz
private

Definition at line 133 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimPz().

◆ v1R

float PHcalTB06Info::v1R
private

Definition at line 132 of file PHcalTB06Info.h.

Referenced by setVtxPrim(), and vtxPrimR().

◆ v1Sec

VtxVector PHcalTB06Info::v1Sec
private

◆ v1Type

int PHcalTB06Info::v1Type
private

Definition at line 131 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxType().

◆ v1U

float PHcalTB06Info::v1U
private

Definition at line 132 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimU().

◆ v1V

float PHcalTB06Info::v1V
private

Definition at line 132 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimV().

◆ v1W

float PHcalTB06Info::v1W
private

Definition at line 132 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimW().

◆ v1X

float PHcalTB06Info::v1X
private

Definition at line 132 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimX().

◆ v1Y

float PHcalTB06Info::v1Y
private

Definition at line 132 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimY().

◆ v1Z

float PHcalTB06Info::v1Z
private

Definition at line 132 of file PHcalTB06Info.h.

Referenced by clear(), setVtxPrim(), and vtxPrimZ().