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 1233 of file PValidationFormats.h.

Constructor & Destructor Documentation

PHcalValidInfoLayer::PHcalValidInfoLayer ( )
inline
virtual PHcalValidInfoLayer::~PHcalValidInfoLayer ( )
inlinevirtual

Definition at line 1241 of file PValidationFormats.h.

1241 {}

Member Function Documentation

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

Definition at line 1255 of file PValidationFormats.h.

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

Definition at line 1248 of file PValidationFormats.h.

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

Definition at line 1251 of file PValidationFormats.h.

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

Definition at line 1247 of file PValidationFormats.h.

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

Definition at line 1252 of file PValidationFormats.h.

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

Definition at line 1259 of file PValidationFormats.h.

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

Definition at line 1246 of file PValidationFormats.h.

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

Definition at line 1254 of file PValidationFormats.h.

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

Definition at line 1249 of file PValidationFormats.h.

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

Definition at line 1250 of file PValidationFormats.h.

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

Definition at line 1257 of file PValidationFormats.h.

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

Definition at line 1423 of file PValidationFormats.cc.

References objects.autophobj::float.

Referenced by SimG4HcalValidation::layerAnalysis().

1424  {
1425  elongHF = (float)fibl;
1426  eshortHF = (float)fibs;
1427  eEcalHF = (float)enec;
1428  eHcalHF = (float)enhc;
1429 }
void PHcalValidInfoLayer::fillHits ( int  Nhits,
int  lay,
int  unitID,
double  eta,
double  phi,
double  ehit,
double  t 
)

Definition at line 1431 of file PValidationFormats.cc.

Referenced by SimG4HcalValidation::fetchHits().

1432  {
1433 
1434  hitLayer.push_back((float)lay);
1435  hitId.push_back((float)unitID);
1436  hitEta.push_back((float)eta);
1437  hitPhi.push_back((float)phi);
1438  hitE.push_back((float)ehit);
1439  hitTime.push_back((float)t);
1440  hitN++;
1441 
1442  // std::cout << " fillHits: nHits,hitN = " << nHits << "," << hitN << std::endl;
1443 
1444 }
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 1407 of file PValidationFormats.cc.

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

Referenced by SimG4HcalValidation::layerAnalysis().

1408  {
1409 
1410  for (int i = 0; i < 20; i++) {
1411  double en = 0.001*el[i]; // GeV
1412  eLayer.push_back((float)en);
1413  }
1414  for (int i = 0; i < 4; i++) {
1415  double en = 0.001*ed[i]; // GeV
1416  eDepth.push_back((float)en);
1417  }
1418  eHO = (float)ho;
1419  eHBHE = (float)hbhe; // MeV
1420  eEBEE = (float)ebee;
1421 }
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 1261 of file PValidationFormats.h.

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

Definition at line 1244 of file PValidationFormats.h.

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

Definition at line 1258 of file PValidationFormats.h.

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

Definition at line 1260 of file PValidationFormats.h.

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

Friends And Related Function Documentation

friend class SimG4HcalValidation
friend

Definition at line 1235 of file PValidationFormats.h.

Member Data Documentation

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

Definition at line 1279 of file PValidationFormats.h.

float PHcalValidInfoLayer::eEBEE
private

Definition at line 1276 of file PValidationFormats.h.

float PHcalValidInfoLayer::eEcalHF
private

Definition at line 1277 of file PValidationFormats.h.

float PHcalValidInfoLayer::eHBHE
private

Definition at line 1276 of file PValidationFormats.h.

float PHcalValidInfoLayer::eHcalHF
private

Definition at line 1277 of file PValidationFormats.h.

float PHcalValidInfoLayer::eHO
private

Definition at line 1276 of file PValidationFormats.h.

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

Definition at line 1278 of file PValidationFormats.h.

float PHcalValidInfoLayer::elongHF
private

Definition at line 1277 of file PValidationFormats.h.

float PHcalValidInfoLayer::eshortHF
private

Definition at line 1277 of file PValidationFormats.h.

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

Definition at line 1285 of file PValidationFormats.h.

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

Definition at line 1283 of file PValidationFormats.h.

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

Definition at line 1282 of file PValidationFormats.h.

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

Definition at line 1281 of file PValidationFormats.h.

int PHcalValidInfoLayer::hitN
private

Definition at line 1275 of file PValidationFormats.h.

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

Definition at line 1284 of file PValidationFormats.h.

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

Definition at line 1286 of file PValidationFormats.h.