#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, std::vector< DetectorElementPtr > detEls) |
Exercises3 (IO *options) | |
void | getCalibrations (SpaceManagerPtr s) |
void | setTarget (CalibrationTarget t) |
virtual | ~Exercises3 () |
Private Member Functions | |
Exercises3 (const Exercises3 &) | |
void | operator= (const Exercises3 &) |
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(), i, h::names, options_, dumpDBToFile_GT_ttrig_cfg::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(), threshold_, and withOffset_.
|
virtual |
|
private |
void Exercises3::calibrateCalibratables | ( | TChain & | sourceTree, |
const std::string & | exercisefile | ||
) |
Definition at line 98 of file Exercises3.cc.
References trackerHits::c, pftools::TreeUtility::convertCalibratablesToParticleDeposits(), gather_cfg::cout, debug_, pftools::ECAL, patCandidatesForDimuonsSequences_cff::ecal, elements_, evaluateCalibrator(), evaluateSpaceManager(), pftools::TreeUtility::getCalibratablesFromRootFile(), getCalibrations(), pftools::IO::GetOpt(), pftools::HCAL, patCandidatesForDimuonsSequences_cff::hcal, pftools::LINEAR, pftools::LINEARCORR, pftools::OFFSET, evf::evtn::offset(), options_, resetElement3(), target_, diffTreeTool::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(), prof2calltree::count, gather_cfg::cout, CommonMethods::cp(), debug_, pftools::CalibrationResultWrapper::ecalEnergy_, pftools::CalibratableElement::energy_, pftools::PFClusterCalibration::getCalibratedEcalEnergy(), pftools::PFClusterCalibration::getCalibratedEnergy(), pftools::PFClusterCalibration::getCalibratedHcalEnergy(), pftools::IO::GetOpt(), pftools::CalibrationResultWrapper::hcalEnergy_, alignBH_cfg::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, |
std::vector< DetectorElementPtr > | detEls | ||
) |
Definition at line 264 of file Exercises3.cc.
References pftools::BARREL_POS, prof2calltree::count, gather_cfg::cout, debug_, pftools::DetElNames, pftools::ECAL, pftools::ENDCAP_POS, pftools::IO::GetOpt(), pftools::HCAL, i, alignBH_cfg::mode, mergeVDriftHistosByStation::name, options_, and pftools::RegionNames.
Referenced by calibrateCalibratables().
void Exercises3::getCalibrations | ( | SpaceManagerPtr | s | ) |
Definition at line 248 of file Exercises3.cc.
References trackerHits::c, elements_, resetElement3(), and threshold_.
Referenced by calibrateCalibratables().
|
private |
|
inline |
|
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(), and valtools.webpage::parseArgs().
|
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().