CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
PHcalValidInfoLayer Class Reference

#include <PValidationFormats.h>

Public Member Functions

std::vector< float > edepth () const
 
float eebee () const
 
float eecalhf () const
 
float ehbhe () const
 
float ehcalhf () const
 
std::vector< float > eHit () const
 
float eho () const
 
std::vector< float > elayer () const
 
float elonghf () const
 
float eshorthf () const
 
std::vector< float > etaHit () const
 
void fillHF (double fibl, double fibs, double enec, double enhc)
 
void fillHits (int Nhits, int lay, int unitID, double eta, double phi, double ehit, double t)
 
void fillLayers (double el[], double ed[], double ho, double hbhe, double ebee)
 
std::vector< float > idHit () const
 
std::vector< float > layerHit () const
 
int nHit () const
 
 PHcalValidInfoLayer ()
 
std::vector< float > phiHit () const
 
std::vector< float > tHit () const
 
virtual ~PHcalValidInfoLayer ()
 

Private Attributes

std::vector< float > eDepth
 
float eEBEE
 
float eEcalHF
 
float eHBHE
 
float eHcalHF
 
float eHO
 
std::vector< float > eLayer
 
float elongHF
 
float eshortHF
 
std::vector< float > hitE
 
std::vector< float > hitEta
 
std::vector< float > hitId
 
std::vector< float > hitLayer
 
int hitN
 
std::vector< float > hitPhi
 
std::vector< float > hitTime
 

Friends

class SimG4HcalValidation
 

Detailed Description

Definition at line 1328 of file PValidationFormats.h.

Constructor & Destructor Documentation

◆ PHcalValidInfoLayer()

PHcalValidInfoLayer::PHcalValidInfoLayer ( )
inline

Definition at line 1332 of file PValidationFormats.h.

1333  : hitN(0), eHO(0.0), eHBHE(0.0), eEBEE(0.0), elongHF(0.0), eshortHF(0.0), eEcalHF(0.0), eHcalHF(0.0) {}

◆ ~PHcalValidInfoLayer()

virtual PHcalValidInfoLayer::~PHcalValidInfoLayer ( )
inlinevirtual

Definition at line 1334 of file PValidationFormats.h.

1334 {}

Member Function Documentation

◆ edepth()

std::vector<float> PHcalValidInfoLayer::edepth ( ) const
inline

Definition at line 1348 of file PValidationFormats.h.

1348 { return eDepth; }

References eDepth.

◆ eebee()

float PHcalValidInfoLayer::eebee ( ) const
inline

Definition at line 1341 of file PValidationFormats.h.

1341 { return eEBEE; }

References eEBEE.

◆ eecalhf()

float PHcalValidInfoLayer::eecalhf ( ) const
inline

Definition at line 1344 of file PValidationFormats.h.

1344 { return eEcalHF; }

References eEcalHF.

◆ ehbhe()

float PHcalValidInfoLayer::ehbhe ( ) const
inline

Definition at line 1340 of file PValidationFormats.h.

1340 { return eHBHE; }

References eHBHE.

◆ ehcalhf()

float PHcalValidInfoLayer::ehcalhf ( ) const
inline

Definition at line 1345 of file PValidationFormats.h.

1345 { return eHcalHF; }

References eHcalHF.

◆ eHit()

std::vector<float> PHcalValidInfoLayer::eHit ( ) const
inline

Definition at line 1352 of file PValidationFormats.h.

1352 { return hitE; }

References hitE.

◆ eho()

float PHcalValidInfoLayer::eho ( ) const
inline

Definition at line 1339 of file PValidationFormats.h.

1339 { return eHO; }

References eHO.

◆ elayer()

std::vector<float> PHcalValidInfoLayer::elayer ( ) const
inline

Definition at line 1347 of file PValidationFormats.h.

1347 { return eLayer; }

References eLayer.

◆ elonghf()

float PHcalValidInfoLayer::elonghf ( ) const
inline

Definition at line 1342 of file PValidationFormats.h.

1342 { return elongHF; }

References elongHF.

◆ eshorthf()

float PHcalValidInfoLayer::eshorthf ( ) const
inline

Definition at line 1343 of file PValidationFormats.h.

1343 { return eshortHF; }

References eshortHF.

◆ etaHit()

std::vector<float> PHcalValidInfoLayer::etaHit ( ) const
inline

Definition at line 1350 of file PValidationFormats.h.

1350 { return hitEta; }

References hitEta.

◆ fillHF()

void PHcalValidInfoLayer::fillHF ( double  fibl,
double  fibs,
double  enec,
double  enhc 
)

Definition at line 1300 of file PValidationFormats.cc.

1300  {
1301  elongHF = (float)fibl;
1302  eshortHF = (float)fibs;
1303  eEcalHF = (float)enec;
1304  eHcalHF = (float)enhc;
1305 }

References eEcalHF, eHcalHF, elongHF, eshortHF, and dqmMemoryStats::float.

Referenced by SimG4HcalValidation::layerAnalysis().

◆ fillHits()

void PHcalValidInfoLayer::fillHits ( int  Nhits,
int  lay,
int  unitID,
double  eta,
double  phi,
double  ehit,
double  t 
)

Definition at line 1307 of file PValidationFormats.cc.

1307  {
1308  hitLayer.push_back((float)lay);
1309  hitId.push_back((float)unitID);
1310  hitEta.push_back((float)eta);
1311  hitPhi.push_back((float)phi);
1312  hitE.push_back((float)ehit);
1313  hitTime.push_back((float)t);
1314  hitN++;
1315 
1316  // std::cout << " fillHits: nHits,hitN = " << nHits << "," << hitN << std::endl;
1317 }

References PVValHelper::eta, hitE, hitEta, hitId, hitLayer, hitN, hitPhi, hitTime, phi, and OrderedSet::t.

Referenced by SimG4HcalValidation::fetchHits().

◆ fillLayers()

void PHcalValidInfoLayer::fillLayers ( double  el[],
double  ed[],
double  ho,
double  hbhe,
double  ebee 
)

Definition at line 1286 of file PValidationFormats.cc.

1286  {
1287  for (int i = 0; i < 20; i++) {
1288  double en = 0.001 * el[i]; // GeV
1289  eLayer.push_back((float)en);
1290  }
1291  for (int i = 0; i < 4; i++) {
1292  double en = 0.001 * ed[i]; // GeV
1293  eDepth.push_back((float)en);
1294  }
1295  eHO = (float)ho;
1296  eHBHE = (float)hbhe; // MeV
1297  eEBEE = (float)ebee;
1298 }

References eDepth, eEBEE, eHBHE, eHO, dqmMemoryStats::float, photonIsolationHIProducer_cfi::hbhe, es_hardcode_cfi::ho, and mps_fire::i.

Referenced by SimG4HcalValidation::layerAnalysis().

◆ idHit()

std::vector<float> PHcalValidInfoLayer::idHit ( ) const
inline

Definition at line 1355 of file PValidationFormats.h.

1355 { return hitId; }

References hitId.

◆ layerHit()

std::vector<float> PHcalValidInfoLayer::layerHit ( ) const
inline

Definition at line 1354 of file PValidationFormats.h.

1354 { return hitLayer; }

References hitLayer.

◆ nHit()

int PHcalValidInfoLayer::nHit ( ) const
inline

Definition at line 1337 of file PValidationFormats.h.

1337 { return hitN; }

References hitN.

◆ phiHit()

std::vector<float> PHcalValidInfoLayer::phiHit ( ) const
inline

Definition at line 1351 of file PValidationFormats.h.

1351 { return hitPhi; }

References hitPhi.

◆ tHit()

std::vector<float> PHcalValidInfoLayer::tHit ( ) const
inline

Definition at line 1353 of file PValidationFormats.h.

1353 { return hitTime; }

References hitTime.

Friends And Related Function Documentation

◆ SimG4HcalValidation

friend class SimG4HcalValidation
friend

Definition at line 1329 of file PValidationFormats.h.

Member Data Documentation

◆ eDepth

std::vector<float> PHcalValidInfoLayer::eDepth
private

Definition at line 1368 of file PValidationFormats.h.

Referenced by edepth(), and fillLayers().

◆ eEBEE

float PHcalValidInfoLayer::eEBEE
private

Definition at line 1365 of file PValidationFormats.h.

Referenced by eebee(), and fillLayers().

◆ eEcalHF

float PHcalValidInfoLayer::eEcalHF
private

Definition at line 1366 of file PValidationFormats.h.

Referenced by eecalhf(), and fillHF().

◆ eHBHE

float PHcalValidInfoLayer::eHBHE
private

Definition at line 1365 of file PValidationFormats.h.

Referenced by ehbhe(), and fillLayers().

◆ eHcalHF

float PHcalValidInfoLayer::eHcalHF
private

Definition at line 1366 of file PValidationFormats.h.

Referenced by ehcalhf(), and fillHF().

◆ eHO

float PHcalValidInfoLayer::eHO
private

Definition at line 1365 of file PValidationFormats.h.

Referenced by eho(), and fillLayers().

◆ eLayer

std::vector<float> PHcalValidInfoLayer::eLayer
private

Definition at line 1367 of file PValidationFormats.h.

Referenced by elayer().

◆ elongHF

float PHcalValidInfoLayer::elongHF
private

Definition at line 1366 of file PValidationFormats.h.

Referenced by elonghf(), and fillHF().

◆ eshortHF

float PHcalValidInfoLayer::eshortHF
private

Definition at line 1366 of file PValidationFormats.h.

Referenced by eshorthf(), and fillHF().

◆ hitE

std::vector<float> PHcalValidInfoLayer::hitE
private

Definition at line 1374 of file PValidationFormats.h.

Referenced by eHit(), and fillHits().

◆ hitEta

std::vector<float> PHcalValidInfoLayer::hitEta
private

Definition at line 1372 of file PValidationFormats.h.

Referenced by etaHit(), and fillHits().

◆ hitId

std::vector<float> PHcalValidInfoLayer::hitId
private

Definition at line 1371 of file PValidationFormats.h.

Referenced by fillHits(), and idHit().

◆ hitLayer

std::vector<float> PHcalValidInfoLayer::hitLayer
private

Definition at line 1370 of file PValidationFormats.h.

Referenced by fillHits(), and layerHit().

◆ hitN

int PHcalValidInfoLayer::hitN
private

Definition at line 1364 of file PValidationFormats.h.

Referenced by fillHits(), and nHit().

◆ hitPhi

std::vector<float> PHcalValidInfoLayer::hitPhi
private

Definition at line 1373 of file PValidationFormats.h.

Referenced by fillHits(), and phiHit().

◆ hitTime

std::vector<float> PHcalValidInfoLayer::hitTime
private

Definition at line 1375 of file PValidationFormats.h.

Referenced by fillHits(), and tHit().

PHcalValidInfoLayer::hitEta
std::vector< float > hitEta
Definition: PValidationFormats.h:1372
PHcalValidInfoLayer::eEBEE
float eEBEE
Definition: PValidationFormats.h:1365
mps_fire.i
i
Definition: mps_fire.py:355
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
PHcalValidInfoLayer::hitE
std::vector< float > hitE
Definition: PValidationFormats.h:1374
PHcalValidInfoLayer::eLayer
std::vector< float > eLayer
Definition: PValidationFormats.h:1367
PHcalValidInfoLayer::eEcalHF
float eEcalHF
Definition: PValidationFormats.h:1366
PHcalValidInfoLayer::eshortHF
float eshortHF
Definition: PValidationFormats.h:1366
PVValHelper::eta
Definition: PVValidationHelpers.h:69
PHcalValidInfoLayer::elongHF
float elongHF
Definition: PValidationFormats.h:1366
PHcalValidInfoLayer::eHcalHF
float eHcalHF
Definition: PValidationFormats.h:1366
OrderedSet.t
t
Definition: OrderedSet.py:90
PHcalValidInfoLayer::hitId
std::vector< float > hitId
Definition: PValidationFormats.h:1371
PHcalValidInfoLayer::hitLayer
std::vector< float > hitLayer
Definition: PValidationFormats.h:1370
PHcalValidInfoLayer::hitTime
std::vector< float > hitTime
Definition: PValidationFormats.h:1375
photonIsolationHIProducer_cfi.hbhe
hbhe
Definition: photonIsolationHIProducer_cfi.py:8
PHcalValidInfoLayer::hitN
int hitN
Definition: PValidationFormats.h:1364
DDAxes::phi
PHcalValidInfoLayer::eHO
float eHO
Definition: PValidationFormats.h:1365
PHcalValidInfoLayer::hitPhi
std::vector< float > hitPhi
Definition: PValidationFormats.h:1373
PHcalValidInfoLayer::eDepth
std::vector< float > eDepth
Definition: PValidationFormats.h:1368
eLayer
es_hardcode_cfi.ho
ho
Definition: es_hardcode_cfi.py:191
PHcalValidInfoLayer::eHBHE
float eHBHE
Definition: PValidationFormats.h:1365