Wraps essential single particle calibration data ready for export to a Root file. More...
#include <Calibratable.h>
Public Member Functions | |
Calibratable () | |
virtual CalibratableElement | computeMean (const std::vector< CalibratableElement > &diets) |
virtual CandidateWrapper | computeMean (const std::vector< CandidateWrapper > &wrappers) |
virtual void | fillCaloWindow (const std::vector< CalibratableElement > &source, CaloWindow &destination) const |
virtual void | recompute () |
virtual void | reset () |
virtual | ~Calibratable () |
Wraps essential single particle calibration data ready for export to a Root file.
Note that a Reflex dictionary must be produced for this class, for the Root branching mechanisms to work.
Definition at line 122 of file Calibratable.h.
|
inline |
|
inlinevirtual |
Definition at line 129 of file Calibratable.h.
|
virtual |
Compute the mean of a vector of CalibratableElements
diets |
Definition at line 138 of file Calibratable.cc.
References pftools::CalibratableElement::energy_, pftools::CalibratableElement::eta_, pftools::CalibratableElement::extent_, pftools::CalibratableElement::phi_, and pftools::CalibratableElement::time_.
Referenced by recompute().
|
virtual |
Compute the mean of a vector of CandidateWrappers
wrappers |
Definition at line 111 of file Calibratable.cc.
References trackerHits::c, pftools::CandidateWrapper::energy_, pftools::CandidateWrapper::energyEcal_, pftools::CandidateWrapper::energyHcal_, pftools::CandidateWrapper::eta_, pftools::CandidateWrapper::phi_, and pftools::CandidateWrapper::type_.
|
virtual |
Helper method to fill a CaloWindow with CalibratableElement objects You should initialise the CaloWindow first!
source | |
destination |
Definition at line 160 of file Calibratable.cc.
References pftools::CaloWindow::addHit(), gather_cfg::cout, pftools::CalibratableElement::energy_, pftools::CalibratableElement::eta_, convertSQLiteXML::ok, and pftools::CalibratableElement::phi_.
|
virtual |
Definition at line 45 of file Calibratable.cc.
References trackerHits::c, cand_energyEcal_, cand_energyEvent_, cand_energyHcal_, cand_energyNeutralEM_, cand_energyNeutralHad_, cand_eta_, cand_phi_, cand_type_, cands_, cands_mean_, cands_num_, cluster_ecal_, cluster_energyEcal_, cluster_energyEvent_, cluster_energyHcal_, cluster_hcal_, cluster_meanEcal_, cluster_meanHcal_, cluster_numEcal_, cluster_numHcal_, computeMean(), pftools::CalibratableElement::energy_, pftools::CandidateWrapper::energy_, pftools::CandidateWrapper::energyEcal_, pftools::CandidateWrapper::energyHcal_, pftools::CandidateWrapper::eta_, pftools::CandidateWrapper::phi_, rechits_ecal_, rechits_energyEcal_, rechits_energyEvent_, rechits_energyHcal_, rechits_hcal_, rechits_meanEcal_, rechits_meanHcal_, rechits_numEcal_, rechits_numHcal_, pftools::CandidateWrapper::recompute(), python.multivaluedict::sort(), tb_ecal_, tb_energyEcal_, tb_energyEvent_, tb_energyHcal_, tb_hcal_, tb_meanEcal_, tb_meanHcal_, tb_numEcal_, tb_numHcal_, and pftools::CandidateWrapper::type_.
Referenced by pftools::TreeUtility::dumpCaloDataToCSV(), pftools::CalibCompare::evaluateCalibrations(), and CalibratableTest::fillTreeAndReset().
|
virtual |
Call to reset() (useful for TTree users)
Definition at line 172 of file Calibratable.cc.
References calibrations_, calowindow_ecal_, calowindow_hcal_, cand_energyEcal_, cand_energyEvent_, cand_energyHcal_, cand_energyNeutralEM_, cand_energyNeutralHad_, cand_eta_, cand_phi_, cand_type_, cands_, cands_mean_, cands_num_, cluster_ecal_, cluster_energyEcal_, cluster_energyEvent_, cluster_energyHcal_, cluster_hcal_, cluster_meanEcal_, cluster_meanHcal_, cluster_numEcal_, cluster_numHcal_, rechits_ecal_, rechits_energyEcal_, rechits_energyEvent_, rechits_energyHcal_, rechits_hcal_, rechits_meanEcal_, rechits_meanHcal_, rechits_numEcal_, rechits_numHcal_, recotrk_charge_, recotrk_deltaRWithSim_, recotrk_etaEcal_, recotrk_momentum_, recotrk_numHits_, recotrk_phiEcal_, recotrk_quality_, pftools::CalibratableElement::reset(), pftools::CandidateWrapper::reset(), pftools::CaloWindow::reset(), sim_energyEcal_, sim_energyEvent_, sim_energyHcal_, sim_eta_, sim_etaEcal_, sim_etaHcal_, sim_isMC_, sim_numEvent_, sim_phi_, sim_phiEcal_, sim_phiHcal_, tb_ck2_, tb_ck3_, tb_ecal_, tb_energyEcal_, tb_energyEvent_, tb_energyHcal_, tb_eta_, tb_hcal_, tb_isTB_, tb_meanEcal_, tb_meanHcal_, tb_numEcal_, tb_numHcal_, tb_pdg_, tb_phi_, tb_run_, tb_tof_, and tb_vetosPassed_.
Referenced by CalibratableTest::analyze(), Calibratable(), pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), and CalibratableTest::fillTreeAndReset().
std::vector<CalibrationResultWrapper> pftools::Calibratable::calibrations_ |
Definition at line 206 of file Calibratable.h.
Referenced by pftools::PFClusterCalibration::calibrate(), pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), and reset().
CaloWindow pftools::Calibratable::calowindow_ecal_ |
Definition at line 178 of file Calibratable.h.
Referenced by reset().
CaloWindow pftools::Calibratable::calowindow_hcal_ |
Definition at line 179 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::cand_energyEcal_ |
Definition at line 201 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cand_energyEvent_ |
Definition at line 201 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cand_energyHcal_ |
Definition at line 201 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cand_energyNeutralEM_ |
Definition at line 203 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cand_energyNeutralHad_ |
Definition at line 203 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cand_eta_ |
Definition at line 201 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cand_phi_ |
Definition at line 201 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), recompute(), and reset().
int pftools::Calibratable::cand_type_ |
Definition at line 204 of file Calibratable.h.
Referenced by recompute(), and reset().
std::vector<CandidateWrapper> pftools::Calibratable::cands_ |
Definition at line 196 of file Calibratable.h.
Referenced by CalibratableTest::extractCandidate(), pftools::operator<<(), recompute(), and reset().
CandidateWrapper pftools::Calibratable::cands_mean_ |
Definition at line 197 of file Calibratable.h.
Referenced by recompute(), and reset().
int pftools::Calibratable::cands_num_ |
Definition at line 198 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::dumpCaloDataToCSV(), pftools::TreeUtility::getCalibratablesFromRootFile(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), recompute(), and reset().
std::vector<CalibratableElement> pftools::Calibratable::cluster_ecal_ |
Definition at line 184 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::dumpCaloDataToCSV(), CalibratableTest::extractCandidate(), pftools::TreeUtility::getCalibratablesFromRootFile(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
double pftools::Calibratable::cluster_energyEcal_ |
Definition at line 183 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::CalibCompare::evaluateCalibrations(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cluster_energyEvent_ |
Definition at line 183 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::cluster_energyHcal_ |
Definition at line 183 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::CalibCompare::evaluateCalibrations(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), recompute(), and reset().
std::vector<CalibratableElement> pftools::Calibratable::cluster_hcal_ |
Definition at line 184 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::dumpCaloDataToCSV(), CalibratableTest::extractCandidate(), pftools::TreeUtility::getCalibratablesFromRootFile(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
CalibratableElement pftools::Calibratable::cluster_meanEcal_ |
Definition at line 186 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::CalibCompare::evaluateCalibrations(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
CalibratableElement pftools::Calibratable::cluster_meanHcal_ |
Definition at line 186 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::CalibCompare::evaluateCalibrations(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
int pftools::Calibratable::cluster_numEcal_ |
Definition at line 185 of file Calibratable.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), recompute(), and reset().
int pftools::Calibratable::cluster_numHcal_ |
Definition at line 185 of file Calibratable.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), recompute(), and reset().
std::vector<CalibratableElement> pftools::Calibratable::rechits_ecal_ |
Definition at line 191 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
double pftools::Calibratable::rechits_energyEcal_ |
Definition at line 190 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::rechits_energyEvent_ |
Definition at line 190 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::rechits_energyHcal_ |
Definition at line 190 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
std::vector<CalibratableElement> pftools::Calibratable::rechits_hcal_ |
Definition at line 191 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
CalibratableElement pftools::Calibratable::rechits_meanEcal_ |
Definition at line 193 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::Exercises3::evaluateCalibrator(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
CalibratableElement pftools::Calibratable::rechits_meanHcal_ |
Definition at line 193 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::Exercises3::evaluateCalibrator(), pftools::TreeUtility::getParticleDepositsDirectly(), recompute(), and reset().
int pftools::Calibratable::rechits_numEcal_ |
Definition at line 192 of file Calibratable.h.
Referenced by recompute(), and reset().
int pftools::Calibratable::rechits_numHcal_ |
Definition at line 192 of file Calibratable.h.
Referenced by recompute(), and reset().
double pftools::Calibratable::recotrk_charge_ |
Definition at line 171 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::recotrk_deltaRWithSim_ |
Definition at line 174 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::recotrk_etaEcal_ |
Definition at line 172 of file Calibratable.h.
Referenced by reset().
math::XYZTLorentzVector pftools::Calibratable::recotrk_momentum_ |
Definition at line 175 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::recotrk_numHits_ |
Definition at line 171 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::recotrk_phiEcal_ |
Definition at line 172 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::recotrk_quality_ |
Definition at line 171 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::sim_energyEcal_ |
Definition at line 147 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::sim_energyEvent_ |
For each collection: candidates, clusters, rechits and truth overall energy, ecal, hcal, n of each, eta and phi naming scheme: collection_variable_ All energyEcal, energyHcal, eta and phi are mean values (i.e. value = sum of elements/number of elements) BUT energyEvent fields are sums of all elements.
Definition at line 146 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::dumpCaloDataToCSV(), pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), and reset().
double pftools::Calibratable::sim_energyHcal_ |
Definition at line 147 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::sim_eta_ |
Definition at line 146 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::dumpCaloDataToCSV(), pftools::TreeUtility::getParticleDepositsDirectly(), and reset().
double pftools::Calibratable::sim_etaEcal_ |
Definition at line 148 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::operator<<(), and reset().
double pftools::Calibratable::sim_etaHcal_ |
Definition at line 148 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), and reset().
bool pftools::Calibratable::sim_isMC_ |
Definition at line 151 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), and reset().
int pftools::Calibratable::sim_numEvent_ |
Definition at line 149 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), and reset().
double pftools::Calibratable::sim_phi_ |
Definition at line 146 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), and reset().
double pftools::Calibratable::sim_phiEcal_ |
Definition at line 148 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), pftools::CalibCompare::evaluateCalibrations(), pftools::operator<<(), and reset().
double pftools::Calibratable::sim_phiHcal_ |
Definition at line 148 of file Calibratable.h.
Referenced by CalibratableTest::analyze(), and reset().
double pftools::Calibratable::tb_ck2_ |
Definition at line 159 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::tb_ck3_ |
Definition at line 159 of file Calibratable.h.
Referenced by reset().
std::vector<CalibratableElement> pftools::Calibratable::tb_ecal_ |
Definition at line 165 of file Calibratable.h.
Referenced by recompute(), and reset().
double pftools::Calibratable::tb_energyEcal_ |
Definition at line 164 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::tb_energyEvent_ |
Definition at line 164 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::tb_energyHcal_ |
Definition at line 164 of file Calibratable.h.
Referenced by pftools::operator<<(), recompute(), and reset().
double pftools::Calibratable::tb_eta_ |
Definition at line 155 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), and reset().
std::vector<CalibratableElement> pftools::Calibratable::tb_hcal_ |
Definition at line 165 of file Calibratable.h.
Referenced by recompute(), and reset().
bool pftools::Calibratable::tb_isTB_ |
Definition at line 153 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), and reset().
CalibratableElement pftools::Calibratable::tb_meanEcal_ |
Definition at line 168 of file Calibratable.h.
Referenced by recompute(), and reset().
CalibratableElement pftools::Calibratable::tb_meanHcal_ |
Definition at line 168 of file Calibratable.h.
Referenced by recompute(), and reset().
int pftools::Calibratable::tb_numEcal_ |
Definition at line 166 of file Calibratable.h.
Referenced by recompute(), and reset().
int pftools::Calibratable::tb_numHcal_ |
Definition at line 166 of file Calibratable.h.
Referenced by recompute(), and reset().
int pftools::Calibratable::tb_pdg_ |
Definition at line 157 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::tb_phi_ |
Definition at line 155 of file Calibratable.h.
Referenced by pftools::TreeUtility::convertCalibratablesToParticleDeposits(), pftools::TreeUtility::getParticleDepositsDirectly(), pftools::operator<<(), and reset().
int pftools::Calibratable::tb_run_ |
Definition at line 157 of file Calibratable.h.
Referenced by reset().
double pftools::Calibratable::tb_tof_ |
Definition at line 159 of file Calibratable.h.
Referenced by reset().
char pftools::Calibratable::tb_vetosPassed_ |
Definition at line 161 of file Calibratable.h.
Referenced by reset().