A tool to associate SpaceVoxels with Calibrator objects. More...
#include <SpaceManager.h>
Public Member Functions | |
void | addEvolution (const DetectorElementPtr &det, Region region, const TF1 &f) |
void | assignCalibration (const CalibratorPtr &c, const std::map< DetectorElementPtr, double > &result) |
void | clear () |
CalibratorPtr | createCalibrator (const Calibrator &toClone, SpaceVoxelPtr s) |
void | createCalibrators (const Calibrator &toClone, const double etaSeg, const double phiSeg, const double energySeg) |
void | createCalibrators (const Calibrator &toClone, const unsigned nEta, const double etaMin, const double etaMax, const unsigned nPhi, const double phiMin, const double phiMax, const unsigned nEnergy, const double energyMin, const double energyMax) throw (PFToolsException&) |
void | createCalibrators (const Calibrator &toClone) |
double | evolveCoefficient (DetectorElementPtr det, double energy, double eta, double phi) |
TH1 * | extractEvolution (DetectorElementPtr det, Region region, TF1 &f1, bool useTruth=true) |
CalibratorPtr | findCalibrator (const double eta, const double phi, const double energy=0) const |
std::map< DetectorElementPtr, double > | getCalibration (CalibratorPtr c) |
std::map< SpaceVoxelPtr, CalibratorPtr > * | getCalibrators () |
std::string | getName () |
int | getNCalibrations () |
double | interpolateCoefficient (DetectorElementPtr det, double energy, double eta, double phi) |
void | makeInverseAddressBook () |
std::ostream & | printCalibrations (std::ostream &stream) |
void | setBarrelLimit (double limit) |
SpaceManager (std::string name) | |
virtual | ~SpaceManager () |
Private Attributes | |
double | barrelLimit_ |
std::map< DetectorElementPtr, TF1 > | barrelPosEvolutions_ |
std::vector< SpaceVoxelPtr > | barrelPosRegion_ |
std::map< CalibratorPtr, std::map< DetectorElementPtr, double > > | calibrationCoeffs_ |
double | endcapLimit_ |
std::map< DetectorElementPtr, TF1 > | endcapPosEvolutions_ |
std::vector< SpaceVoxelPtr > | endcapPosRegion_ |
std::map< CalibratorPtr, SpaceVoxelPtr > | inverseAddressBook_ |
std::map< SpaceVoxelPtr, CalibratorPtr > | myAddressBook |
std::vector< SpaceVoxelPtr > | myKnownSpaceVoxels |
std::string | name_ |
std::map< Region, std::vector < SpaceVoxelPtr > > | regionsToSVs_ |
double | transitionLimit_ |
std::vector< SpaceVoxelPtr > | transitionPosRegion_ |
A tool to associate SpaceVoxels with Calibrator objects.
Definition at line 23 of file SpaceManager.h.
SpaceManager::SpaceManager | ( | std::string | name | ) |
Definition at line 12 of file SpaceManager.cc.
References pftools::BARREL_POS, barrelPosRegion_, pftools::ENDCAP_POS, endcapPosRegion_, and regionsToSVs_.
|
virtual |
Definition at line 18 of file SpaceManager.cc.
|
inline |
Definition at line 79 of file SpaceManager.h.
References pftools::BARREL_POS, barrelPosEvolutions_, pftools::ENDCAP_POS, endcapPosEvolutions_, and f.
void SpaceManager::assignCalibration | ( | const CalibratorPtr & | c, |
const std::map< DetectorElementPtr, double > & | result | ||
) |
Definition at line 246 of file SpaceManager.cc.
References EnergyCorrector::c, calibrationCoeffs_, makeInverseAddressBook(), and query::result.
void SpaceManager::clear | ( | void | ) |
Definition at line 22 of file SpaceManager.cc.
References EnergyCorrector::c, myAddressBook, and alignCSCRings::s.
Referenced by createCalibrators().
CalibratorPtr SpaceManager::createCalibrator | ( | const Calibrator & | toClone, |
SpaceVoxelPtr | s | ||
) |
Definition at line 213 of file SpaceManager.cc.
References assert(), EnergyCorrector::c, pftools::Calibrator::clone(), prof2calltree::count, myAddressBook, myKnownSpaceVoxels, and alignCSCRings::s.
void SpaceManager::createCalibrators | ( | const Calibrator & | toClone, |
const double | etaSeg, | ||
const double | phiSeg, | ||
const double | energySeg | ||
) |
Definition at line 30 of file SpaceManager.cc.
References gather_cfg::cout.
void SpaceManager::createCalibrators | ( | const Calibrator & | toClone, |
const unsigned | nEta, | ||
const double | etaMin, | ||
const double | etaMax, | ||
const unsigned | nPhi, | ||
const double | phiMin, | ||
const double | phiMax, | ||
const unsigned | nEnergy, | ||
const double | energyMin, | ||
const double | energyMax | ||
) | |||
throw | ( | PFToolsException & | |
) |
Definition at line 168 of file SpaceManager.cc.
References assert(), EnergyCorrector::c, hitfit::clear(), gather_cfg::cout, HLT_25ns14e33_v1_cff::etaMax, HLT_25ns14e33_v1_cff::etaMin, relval_steps::k, prof2calltree::l, visualization-live-secondInstance_cfg::m, HLT_25ns14e33_v1_cff::nEta, and HLT_25ns14e33_v1_cff::nPhi.
void SpaceManager::createCalibrators | ( | const Calibrator & | toClone | ) |
Definition at line 39 of file SpaceManager.cc.
References assert(), barrelLimit_, barrelPosRegion_, EnergyCorrector::c, clear(), pftools::Calibrator::clone(), gather_cfg::cout, endcapLimit_, endcapPosRegion_, myAddressBook, and myKnownSpaceVoxels.
double SpaceManager::evolveCoefficient | ( | DetectorElementPtr | det, |
double | energy, | ||
double | eta, | ||
double | phi | ||
) |
Definition at line 320 of file SpaceManager.cc.
References barrelLimit_, barrelPosEvolutions_, and endcapPosEvolutions_.
TH1 * SpaceManager::extractEvolution | ( | DetectorElementPtr | det, |
Region | region, | ||
TF1 & | f1, | ||
bool | useTruth = true |
||
) |
Definition at line 256 of file SpaceManager.cc.
References pftools::BARREL_POS, barrelPosRegion_, EnergyCorrector::c, calibrationCoeffs_, pftools::DetElNames, pftools::ENDCAP_POS, endcapPosRegion_, i, myAddressBook, mergeVDriftHistosByStation::name, HLT_25ns14e33_v3_cff::region, pftools::RegionNames, alignCSCRings::s, python.multivaluedict::sort(), and AlCaHLTBitMon_QueryRunRegistry::string.
CalibratorPtr SpaceManager::findCalibrator | ( | const double | eta, |
const double | phi, | ||
const double | energy = 0 |
||
) | const |
Definition at line 229 of file SpaceManager.cc.
References submit::answer, assert(), prof2calltree::count, myAddressBook, myKnownSpaceVoxels, alignCSCRings::s, and edm::second().
Referenced by interpolateCoefficient().
std::map< DetectorElementPtr, double > SpaceManager::getCalibration | ( | CalibratorPtr | c | ) |
Definition at line 252 of file SpaceManager.cc.
References EnergyCorrector::c, and calibrationCoeffs_.
|
inline |
Definition at line 52 of file SpaceManager.h.
References myAddressBook.
|
inline |
|
inline |
Definition at line 90 of file SpaceManager.h.
References calibrationCoeffs_.
double SpaceManager::interpolateCoefficient | ( | DetectorElementPtr | det, |
double | energy, | ||
double | eta, | ||
double | phi | ||
) |
Definition at line 330 of file SpaceManager.cc.
References EnergyCorrector::c, calibrationCoeffs_, findCalibrator(), inverseAddressBook_, and alignCSCRings::s.
void SpaceManager::makeInverseAddressBook | ( | ) |
Definition at line 393 of file SpaceManager.cc.
References EnergyCorrector::c, inverseAddressBook_, myAddressBook, and alignCSCRings::s.
Referenced by assignCalibration().
std::ostream & SpaceManager::printCalibrations | ( | std::ostream & | stream | ) |
Definition at line 368 of file SpaceManager.cc.
References b, EnergyCorrector::c, calibrationCoeffs_, ztail::d, myAddressBook, myKnownSpaceVoxels, query::result, and alignCSCRings::s.
|
inline |
Definition at line 97 of file SpaceManager.h.
References barrelLimit_, and MessageLogger_cff::limit.
|
private |
Definition at line 105 of file SpaceManager.h.
Referenced by createCalibrators(), evolveCoefficient(), and setBarrelLimit().
|
private |
Definition at line 118 of file SpaceManager.h.
Referenced by addEvolution(), and evolveCoefficient().
|
private |
Definition at line 114 of file SpaceManager.h.
Referenced by createCalibrators(), extractEvolution(), and SpaceManager().
|
private |
Definition at line 111 of file SpaceManager.h.
Referenced by assignCalibration(), extractEvolution(), getCalibration(), getNCalibrations(), interpolateCoefficient(), and printCalibrations().
|
private |
Definition at line 107 of file SpaceManager.h.
Referenced by createCalibrators().
|
private |
Definition at line 119 of file SpaceManager.h.
Referenced by addEvolution(), and evolveCoefficient().
|
private |
Definition at line 116 of file SpaceManager.h.
Referenced by createCalibrators(), extractEvolution(), and SpaceManager().
|
private |
Definition at line 110 of file SpaceManager.h.
Referenced by interpolateCoefficient(), and makeInverseAddressBook().
|
private |
Definition at line 109 of file SpaceManager.h.
Referenced by clear(), createCalibrator(), createCalibrators(), extractEvolution(), findCalibrator(), getCalibrators(), makeInverseAddressBook(), and printCalibrations().
|
private |
Definition at line 112 of file SpaceManager.h.
Referenced by createCalibrator(), createCalibrators(), findCalibrator(), and printCalibrations().
|
private |
Definition at line 103 of file SpaceManager.h.
Referenced by getName().
|
private |
Definition at line 121 of file SpaceManager.h.
Referenced by SpaceManager().
|
private |
Definition at line 106 of file SpaceManager.h.
|
private |
Definition at line 115 of file SpaceManager.h.