#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 |
Definition at line 1235 of file PValidationFormats.h.
PHcalValidInfoLayer::PHcalValidInfoLayer | ( | ) | [inline] |
virtual PHcalValidInfoLayer::~PHcalValidInfoLayer | ( | ) | [inline, virtual] |
Definition at line 1243 of file PValidationFormats.h.
{}
std::vector<float> PHcalValidInfoLayer::edepth | ( | ) | const [inline] |
float PHcalValidInfoLayer::eebee | ( | ) | const [inline] |
float PHcalValidInfoLayer::eecalhf | ( | ) | const [inline] |
float PHcalValidInfoLayer::ehbhe | ( | ) | const [inline] |
float PHcalValidInfoLayer::ehcalhf | ( | ) | const [inline] |
std::vector<float> PHcalValidInfoLayer::eHit | ( | ) | const [inline] |
float PHcalValidInfoLayer::eho | ( | ) | const [inline] |
std::vector<float> PHcalValidInfoLayer::elayer | ( | ) | const [inline] |
float PHcalValidInfoLayer::elonghf | ( | ) | const [inline] |
float PHcalValidInfoLayer::eshorthf | ( | ) | const [inline] |
std::vector<float> PHcalValidInfoLayer::etaHit | ( | ) | const [inline] |
void PHcalValidInfoLayer::fillHF | ( | double | fibl, |
double | fibs, | ||
double | enec, | ||
double | enhc | ||
) |
Definition at line 433 of file HcalFlexiHardcodeGeometryLoader.cc.
References funct::cos(), gather_cfg::cout, HcalFlexiHardcodeGeometryLoader::DEGREE2RAD, HcalFlexiHardcodeGeometryLoader::HFCellParameters::depth, HcalFlexiHardcodeGeometryLoader::HFCellParameters::dphi, HcalFlexiHardcodeGeometryLoader::HFCellParameters::eta, PV3DBase< T, PVType, FrameType >::eta(), CaloCellGeometry::getParmPtr(), HcalForward, SurfaceOrientation::inner, HcalFlexiHardcodeGeometryLoader::MAX_HCAL_PHI, CaloSubdetectorGeometry::newCell(), SurfaceOrientation::outer, CaloSubdetectorGeometry::parMgr(), CaloSubdetectorGeometry::parVecVec(), perp(), HcalFlexiHardcodeGeometryLoader::HFCellParameters::phiFirst, HcalFlexiHardcodeGeometryLoader::HFCellParameters::phiStep, HcalFlexiHardcodeGeometryLoader::HFCellParameters::rMax, HcalFlexiHardcodeGeometryLoader::HFCellParameters::rMin, funct::sin(), x, detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::z(), z, HcalFlexiHardcodeGeometryLoader::HFCellParameters::zMax, and HcalFlexiHardcodeGeometryLoader::HFCellParameters::zMin.
Referenced by SimG4HcalValidation::layerAnalysis().
{ for (size_t iCell = 0; iCell < fCells.size(); ++iCell) { const HcalFlexiHardcodeGeometryLoader::HFCellParameters& param = fCells[iCell]; for (int iPhi = param.phiFirst; iPhi <= MAX_HCAL_PHI; iPhi += param.phiStep) { for (int iside = -1; iside <= 1; iside += 2) { // both detector sides are identical HcalDetId hid (HcalForward, param.eta*iside, iPhi, param.depth); float phiCenter = ((iPhi-1)*360./MAX_HCAL_PHI + 0.5*param.dphi) * DEGREE2RAD; // middle of the cell GlobalPoint inner (param.rMin, 0, param.zMin); GlobalPoint outer (param.rMax, 0, param.zMin); float iEta = inner.eta(); float oEta = outer.eta(); float etaCenter = 0.5 * ( iEta + oEta ); float perp = param.zMin / sinh (etaCenter); float x = perp * cos (phiCenter); float y = perp * sin (phiCenter); float z = iside * param.zMin; // make cell geometry GlobalPoint refPoint (x,y,z); // center of the cell's face std::vector<CCGFloat> cellParams; cellParams.reserve (5); cellParams.push_back (0.5 * ( iEta - oEta )); // deta_half cellParams.push_back (0.5 * param.dphi * DEGREE2RAD); // dphi_half cellParams.push_back (0.5 * (param.zMax - param.zMin)); // dz_half cellParams.push_back ( fabs( refPoint.eta())); cellParams.push_back ( fabs( refPoint.z() ) ) ; #ifdef DebugLog std::cout << "HcalFlexiHardcodeGeometryLoader::fillHF-> " << hid << refPoint << '/' << cellParams [0] << '/' << cellParams [1] << '/' << cellParams [2] << std::endl; #endif fGeometry->newCell(refPoint, refPoint, refPoint, CaloCellGeometry::getParmPtr(cellParams, fGeometry->parMgr(), fGeometry->parVecVec()), hid ) ; } } } }
void PHcalValidInfoLayer::fillHits | ( | int | Nhits, |
int | lay, | ||
int | unitID, | ||
double | eta, | ||
double | phi, | ||
double | ehit, | ||
double | t | ||
) |
Definition at line 1433 of file PValidationFormats.cc.
References hitE, hitEta, hitId, hitLayer, hitN, hitPhi, and hitTime.
Referenced by SimG4HcalValidation::fetchHits().
void PHcalValidInfoLayer::fillLayers | ( | double | el[], |
double | ed[], | ||
double | ho, | ||
double | hbhe, | ||
double | ebee | ||
) |
Definition at line 21 of file HcalTestHistoClass.cc.
References HcalTestHistoClass::eHBHE, HcalTestHistoClass::eHO, i, HcalTestHistoClass::layers, LogDebug, HcalTestHistoClass::nLayers, and HcalTestHistoClass::nLayersMAX.
Referenced by SimG4HcalValidation::layerAnalysis().
{ nLayers = 0; layers.resize(nLayersMAX); for (int i = 0; i < 20; i++) { double ed = 0.001*edepl[i]; LogDebug("HcalSim") << "HcalTestHistoClass:: fillLayer: nLayers, ed " << i << " " << ed; if (nLayers < nLayersMAX) { layers[i].e = ed; layers[i].muDist = muxy[i]; nLayers++; } } eHO = edepHO; eHBHE = edepHBHE; }
std::vector<float> PHcalValidInfoLayer::idHit | ( | ) | const [inline] |
std::vector<float> PHcalValidInfoLayer::layerHit | ( | ) | const [inline] |
int PHcalValidInfoLayer::nHit | ( | ) | const [inline] |
std::vector<float> PHcalValidInfoLayer::phiHit | ( | ) | const [inline] |
std::vector<float> PHcalValidInfoLayer::tHit | ( | ) | const [inline] |
friend class SimG4HcalValidation [friend] |
Definition at line 1237 of file PValidationFormats.h.
std::vector<float> PHcalValidInfoLayer::eDepth [private] |
Definition at line 1281 of file PValidationFormats.h.
Referenced by edepth().
float PHcalValidInfoLayer::eEBEE [private] |
Definition at line 1278 of file PValidationFormats.h.
Referenced by eebee().
float PHcalValidInfoLayer::eEcalHF [private] |
Definition at line 1279 of file PValidationFormats.h.
Referenced by eecalhf().
float PHcalValidInfoLayer::eHBHE [private] |
Definition at line 1278 of file PValidationFormats.h.
Referenced by ehbhe().
float PHcalValidInfoLayer::eHcalHF [private] |
Definition at line 1279 of file PValidationFormats.h.
Referenced by ehcalhf().
float PHcalValidInfoLayer::eHO [private] |
Definition at line 1278 of file PValidationFormats.h.
Referenced by eho().
std::vector<float> PHcalValidInfoLayer::eLayer [private] |
Definition at line 1280 of file PValidationFormats.h.
Referenced by elayer().
float PHcalValidInfoLayer::elongHF [private] |
Definition at line 1279 of file PValidationFormats.h.
Referenced by elonghf().
float PHcalValidInfoLayer::eshortHF [private] |
Definition at line 1279 of file PValidationFormats.h.
Referenced by eshorthf().
std::vector<float> PHcalValidInfoLayer::hitE [private] |
Definition at line 1287 of file PValidationFormats.h.
Referenced by eHit(), and fillHits().
std::vector<float> PHcalValidInfoLayer::hitEta [private] |
Definition at line 1285 of file PValidationFormats.h.
Referenced by etaHit(), and fillHits().
std::vector<float> PHcalValidInfoLayer::hitId [private] |
Definition at line 1284 of file PValidationFormats.h.
Referenced by fillHits(), and idHit().
std::vector<float> PHcalValidInfoLayer::hitLayer [private] |
Definition at line 1283 of file PValidationFormats.h.
Referenced by fillHits(), and layerHit().
int PHcalValidInfoLayer::hitN [private] |
Definition at line 1277 of file PValidationFormats.h.
Referenced by fillHits(), and nHit().
std::vector<float> PHcalValidInfoLayer::hitPhi [private] |
Definition at line 1286 of file PValidationFormats.h.
Referenced by fillHits(), and phiHit().
std::vector<float> PHcalValidInfoLayer::hitTime [private] |
Definition at line 1288 of file PValidationFormats.h.
Referenced by fillHits(), and tHit().