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 ( )
inline
virtual PHcalValidInfoLayer::~PHcalValidInfoLayer ( )
inlinevirtual

Definition at line 1334 of file PValidationFormats.h.

1334 {}

Member Function Documentation

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

Definition at line 1348 of file PValidationFormats.h.

1348 { return eDepth; }
std::vector< float > eDepth
float PHcalValidInfoLayer::eebee ( ) const
inline

Definition at line 1341 of file PValidationFormats.h.

1341 { return eEBEE; }
float PHcalValidInfoLayer::eecalhf ( ) const
inline

Definition at line 1344 of file PValidationFormats.h.

1344 { return eEcalHF; }
float PHcalValidInfoLayer::ehbhe ( ) const
inline

Definition at line 1340 of file PValidationFormats.h.

1340 { return eHBHE; }
float PHcalValidInfoLayer::ehcalhf ( ) const
inline

Definition at line 1345 of file PValidationFormats.h.

1345 { return eHcalHF; }
std::vector<float> PHcalValidInfoLayer::eHit ( ) const
inline

Definition at line 1352 of file PValidationFormats.h.

1352 { return hitE; }
std::vector< float > hitE
float PHcalValidInfoLayer::eho ( ) const
inline

Definition at line 1339 of file PValidationFormats.h.

1339 { return eHO; }
std::vector<float> PHcalValidInfoLayer::elayer ( ) const
inline

Definition at line 1347 of file PValidationFormats.h.

1347 { return eLayer; }
std::vector< float > eLayer
float PHcalValidInfoLayer::elonghf ( ) const
inline

Definition at line 1342 of file PValidationFormats.h.

1342 { return elongHF; }
float PHcalValidInfoLayer::eshorthf ( ) const
inline

Definition at line 1343 of file PValidationFormats.h.

1343 { return eshortHF; }
std::vector<float> PHcalValidInfoLayer::etaHit ( ) const
inline

Definition at line 1350 of file PValidationFormats.h.

1350 { return hitEta; }
std::vector< float > hitEta
void PHcalValidInfoLayer::fillHF ( double  fibl,
double  fibs,
double  enec,
double  enhc 
)

Definition at line 1300 of file PValidationFormats.cc.

References objects.autophobj::float.

Referenced by SimG4HcalValidation::layerAnalysis().

1300  {
1301  elongHF = (float)fibl;
1302  eshortHF = (float)fibs;
1303  eEcalHF = (float)enec;
1304  eHcalHF = (float)enhc;
1305 }
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.

Referenced by SimG4HcalValidation::fetchHits().

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 }
std::vector< float > hitE
std::vector< float > hitId
std::vector< float > hitPhi
std::vector< float > hitEta
std::vector< float > hitTime
std::vector< float > hitLayer
void PHcalValidInfoLayer::fillLayers ( double  el[],
double  ed[],
double  ho,
double  hbhe,
double  ebee 
)

Definition at line 1286 of file PValidationFormats.cc.

References objects.autophobj::float, and mps_fire::i.

Referenced by SimG4HcalValidation::layerAnalysis().

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 }
std::vector< float > eDepth
std::vector< float > eLayer
std::vector<float> PHcalValidInfoLayer::idHit ( ) const
inline
std::vector<float> PHcalValidInfoLayer::layerHit ( ) const
inline

Definition at line 1354 of file PValidationFormats.h.

1354 { return hitLayer; }
std::vector< float > hitLayer
int PHcalValidInfoLayer::nHit ( ) const
inline

Definition at line 1337 of file PValidationFormats.h.

1337 { return hitN; }
std::vector<float> PHcalValidInfoLayer::phiHit ( ) const
inline

Definition at line 1351 of file PValidationFormats.h.

1351 { return hitPhi; }
std::vector< float > hitPhi
std::vector<float> PHcalValidInfoLayer::tHit ( ) const
inline

Definition at line 1353 of file PValidationFormats.h.

1353 { return hitTime; }
std::vector< float > hitTime

Friends And Related Function Documentation

friend class SimG4HcalValidation
friend

Definition at line 1329 of file PValidationFormats.h.

Member Data Documentation

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

Definition at line 1368 of file PValidationFormats.h.

float PHcalValidInfoLayer::eEBEE
private

Definition at line 1365 of file PValidationFormats.h.

float PHcalValidInfoLayer::eEcalHF
private

Definition at line 1366 of file PValidationFormats.h.

float PHcalValidInfoLayer::eHBHE
private

Definition at line 1365 of file PValidationFormats.h.

float PHcalValidInfoLayer::eHcalHF
private

Definition at line 1366 of file PValidationFormats.h.

float PHcalValidInfoLayer::eHO
private

Definition at line 1365 of file PValidationFormats.h.

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

Definition at line 1367 of file PValidationFormats.h.

float PHcalValidInfoLayer::elongHF
private

Definition at line 1366 of file PValidationFormats.h.

float PHcalValidInfoLayer::eshortHF
private

Definition at line 1366 of file PValidationFormats.h.

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

Definition at line 1374 of file PValidationFormats.h.

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

Definition at line 1372 of file PValidationFormats.h.

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

Definition at line 1371 of file PValidationFormats.h.

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

Definition at line 1370 of file PValidationFormats.h.

int PHcalValidInfoLayer::hitN
private

Definition at line 1364 of file PValidationFormats.h.

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

Definition at line 1373 of file PValidationFormats.h.

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

Definition at line 1375 of file PValidationFormats.h.