#include <Exercises3.h>
Public Member Functions | |
void | calibrateCalibratables (TChain &sourceTree, const std::string &exercisefile) |
void | evaluateCalibrator (SpaceManagerPtr s, CalibratorPtr c, TTree &tree, Calibratable *calibrated, DetectorElementPtr ecal, DetectorElementPtr hcal, DetectorElementPtr offset, CalibrationProvenance cp, CalibrationProvenance cpCorr=NONE) |
void | evaluateSpaceManager (SpaceManagerPtr s, const std::vector< DetectorElementPtr > &detEls) |
Exercises3 (IO *options) | |
void | getCalibrations (SpaceManagerPtr s) |
void | setTarget (CalibrationTarget t) |
virtual | ~Exercises3 () |
Private Member Functions | |
Exercises3 (const Exercises3 &)=delete | |
void | operator= (const Exercises3 &)=delete |
Private Attributes | |
std::ofstream | calibResultsFile_ |
PFClusterCalibration | clusterCalibration_ |
unsigned | debug_ |
std::vector< DetectorElementPtr > | elements_ |
IO * | options_ |
CalibrationTarget | target_ |
unsigned | threshold_ |
bool | withOffset_ |
Definition at line 22 of file Exercises3.h.
Exercises3::Exercises3 | ( | IO * | options | ) |
Definition at line 33 of file Exercises3.cc.
References calibResultsFile_, clusterCalibration_, gather_cfg::cout, debug_, corrVsCorr::g0, diffTwoXMLs::g1, pftools::PFClusterCalibration::getKnownSectorNames(), pftools::IO::GetOpt(), mps_fire::i, cscdqm::h::names, options_, postProcessorL1Gen_cff::outputFileName, pftools::PFClusterCalibration::setAllowNegativeEnergy(), pftools::PFClusterCalibration::setBarrelBoundary(), pftools::PFClusterCalibration::setCorrections(), pftools::PFClusterCalibration::setDoCorrection(), pftools::PFClusterCalibration::setDoEtaCorrection(), pftools::PFClusterCalibration::setEcalHcalEnergyCuts(), pftools::PFClusterCalibration::setEtaCorrectionParameters(), pftools::PFClusterCalibration::setEvolutionParameters(), pftools::PFClusterCalibration::setMaxEToCorrect(), AlCaHLTBitMon_QueryRunRegistry::string, threshold_, and withOffset_.
Referenced by setTarget().
|
virtual |
|
privatedelete |
void Exercises3::calibrateCalibratables | ( | TChain & | sourceTree, |
const std::string & | exercisefile | ||
) |
Definition at line 98 of file Exercises3.cc.
References EnergyCorrector::c, pftools::TreeUtility::convertCalibratablesToParticleDeposits(), gather_cfg::cout, debug_, pftools::ECAL, digitizers_cfi::ecal, elements_, evaluateCalibrator(), evaluateSpaceManager(), pftools::TreeUtility::getCalibratablesFromRootFile(), getCalibrations(), pftools::IO::GetOpt(), digitizers_cfi::hcal, pftools::LINEAR, pftools::LINEARCORR, pftools::OFFSET, PFRecoTauDiscriminationByIsolation_cfi::offset, options_, resetElement3(), pfDeepBoostedJetPreprocessParams_cfi::sv, target_, compare::tree, and withOffset_.
void Exercises3::evaluateCalibrator | ( | SpaceManagerPtr | s, |
CalibratorPtr | c, | ||
TTree & | tree, | ||
Calibratable * | calibrated, | ||
DetectorElementPtr | ecal, | ||
DetectorElementPtr | hcal, | ||
DetectorElementPtr | offset, | ||
CalibrationProvenance | cp, | ||
CalibrationProvenance | cpCorr = NONE |
||
) |
Definition at line 393 of file Exercises3.cc.
References pftools::CalibrationResultWrapper::b_, pftools::CalibrationResultWrapper::c_, pftools::Calibratable::calibrations_, clusterCalibration_, pftools::CalibrationResultWrapper::compute(), KineDebug3::count(), gather_cfg::cout, SimDataFormats::CaloAnalysis::cp, debug_, pftools::CalibrationResultWrapper::ecalEnergy_, pftools::CalibratableElement::energy_, pftools::PFClusterCalibration::getCalibratedEcalEnergy(), pftools::PFClusterCalibration::getCalibratedEnergy(), pftools::PFClusterCalibration::getCalibratedHcalEnergy(), pftools::IO::GetOpt(), pftools::CalibrationResultWrapper::hcalEnergy_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, pftools::NONE, options_, pftools::CalibrationResultWrapper::particleEnergy_, pftools::CalibrationResultWrapper::provenance_, pftools::Calibratable::rechits_meanEcal_, pftools::Calibratable::rechits_meanHcal_, pftools::Calibratable::reset(), pftools::Calibratable::sim_energyEvent_, pftools::Calibratable::sim_etaEcal_, target_, pftools::CalibrationResultWrapper::target_, pftools::CalibrationResultWrapper::targetFuncContrib_, threshold_, pftools::CalibrationResultWrapper::truthEnergy_, and pftools::UNCALIBRATED.
Referenced by calibrateCalibratables().
void Exercises3::evaluateSpaceManager | ( | SpaceManagerPtr | s, |
const std::vector< DetectorElementPtr > & | detEls | ||
) |
Definition at line 264 of file Exercises3.cc.
References pftools::BARREL_POS, KineDebug3::count(), gather_cfg::cout, edmIntegrityCheck::d, debug_, pftools::DetElNames, pftools::ECAL, pftools::ENDCAP_POS, pftools::IO::GetOpt(), pftools::HCAL, mps_fire::i, particleFlow_cfi::maxE, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, dataset::name, options_, pftools::RegionNames, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by calibrateCalibratables().
void Exercises3::getCalibrations | ( | SpaceManagerPtr | s | ) |
Definition at line 248 of file Exercises3.cc.
References EnergyCorrector::c, elements_, resetElement3(), and threshold_.
Referenced by calibrateCalibratables(), and setTarget().
|
privatedelete |
Referenced by setTarget().
|
inline |
Definition at line 42 of file Exercises3.h.
References Exercises3(), getCalibrations(), operator=(), lumiQTWidget::t, and target_.
|
private |
Definition at line 60 of file Exercises3.h.
Referenced by Exercises3(), and ~Exercises3().
|
private |
Definition at line 62 of file Exercises3.h.
Referenced by evaluateCalibrator(), and Exercises3().
|
private |
Definition at line 61 of file Exercises3.h.
Referenced by calibrateCalibratables(), evaluateCalibrator(), evaluateSpaceManager(), and Exercises3().
|
private |
Definition at line 58 of file Exercises3.h.
Referenced by calibrateCalibratables(), and getCalibrations().
|
private |
Definition at line 59 of file Exercises3.h.
Referenced by calibrateCalibratables(), evaluateCalibrator(), evaluateSpaceManager(), Exercises3(), valtools.webpage::parseArgs(), and batchmanager.BatchManager::ParseOptions().
|
private |
Definition at line 56 of file Exercises3.h.
Referenced by calibrateCalibratables(), evaluateCalibrator(), and setTarget().
|
private |
Definition at line 57 of file Exercises3.h.
Referenced by evaluateCalibrator(), Exercises3(), and getCalibrations().
|
private |
Definition at line 55 of file Exercises3.h.
Referenced by calibrateCalibratables(), and Exercises3().