Utility class to create particles and detector elements from a Root file. More...
#include <TreeUtility.h>
Public Member Functions | |
unsigned | convertCalibratablesToParticleDeposits (const std::vector< Calibratable > &input, std::vector< ParticleDepositPtr > &toBeFilled, CalibrationTarget target, DetectorElementPtr offset, DetectorElementPtr ecal, DetectorElementPtr hcal, bool includeOffset=false) |
void | dumpCaloDataToCSV (TChain &chain, std::string csvFilename, double range, bool gaus=false) |
unsigned | getCalibratablesFromRootFile (TChain &tree, std::vector< Calibratable > &toBeFilled) |
unsigned | getParticleDepositsDirectly (TChain &sourceChain, std::vector< ParticleDepositPtr > &toBeFilled, CalibrationTarget target, DetectorElementPtr offset, DetectorElementPtr ecal, DetectorElementPtr hcal, bool includeOffset=false) |
TreeUtility () | |
virtual | ~TreeUtility () |
Private Attributes | |
std::map< std::string, unsigned > | vetos_ |
Utility class to create particles and detector elements from a Root file.
Definition at line 27 of file TreeUtility.h.
TreeUtility::TreeUtility | ( | ) |
Definition at line 11 of file TreeUtility.cc.
|
virtual |
Definition at line 14 of file TreeUtility.cc.
unsigned TreeUtility::convertCalibratablesToParticleDeposits | ( | const std::vector< Calibratable > & | input, |
std::vector< ParticleDepositPtr > & | toBeFilled, | ||
CalibrationTarget | target, | ||
DetectorElementPtr | offset, | ||
DetectorElementPtr | ecal, | ||
DetectorElementPtr | hcal, | ||
bool | includeOffset = false |
||
) |
Definition at line 238 of file TreeUtility.cc.
References EnergyCorrector::c, pftools::Calibratable::cand_energyEcal_, pftools::Calibratable::cand_energyHcal_, pftools::Calibratable::cand_eta_, pftools::Calibratable::cand_phi_, pftools::Calibratable::cands_num_, pftools::CLUSTER, pftools::Calibratable::cluster_ecal_, pftools::Calibratable::cluster_energyEcal_, pftools::Calibratable::cluster_energyHcal_, pftools::Calibratable::cluster_hcal_, pftools::Calibratable::cluster_meanEcal_, pftools::Calibratable::cluster_meanHcal_, KineDebug3::count(), gather_cfg::cout, pftools::CalibratableElement::energy_, pftools::CalibratableElement::eta_, pftools::PFCANDIDATE, pftools::PFELEMENT, pftools::CalibratableElement::phi_, pftools::RECHIT, pftools::Calibratable::rechits_ecal_, pftools::Calibratable::rechits_hcal_, pftools::Calibratable::rechits_meanEcal_, pftools::Calibratable::rechits_meanHcal_, pftools::Calibratable::sim_energyEvent_, pftools::Calibratable::sim_eta_, pftools::Calibratable::sim_isMC_, pftools::Calibratable::sim_phi_, pftools::Calibratable::tb_eta_, pftools::Calibratable::tb_isTB_, pftools::Calibratable::tb_phi_, pftools::UNDEFINED, and TriggerAnalyzer::veto.
Referenced by pftools::Exercises3::calibrateCalibratables().
void TreeUtility::dumpCaloDataToCSV | ( | TChain & | chain, |
std::string | csvFilename, | ||
double | range, | ||
bool | gaus = false |
||
) |
Definition at line 48 of file TreeUtility.cc.
References EnergyCorrector::c, pftools::Calibratable::cands_num_, pftools::Calibratable::cluster_ecal_, pftools::Calibratable::cluster_hcal_, gather_cfg::cout, g, pftools::Calibratable::recompute(), pftools::Calibratable::sim_energyEvent_, pftools::Calibratable::sim_eta_, and TriggerAnalyzer::veto.
unsigned TreeUtility::getCalibratablesFromRootFile | ( | TChain & | tree, |
std::vector< Calibratable > & | toBeFilled | ||
) |
Definition at line 21 of file TreeUtility.cc.
References EnergyCorrector::c, pftools::Calibratable::cands_num_, pftools::Calibratable::cluster_ecal_, pftools::Calibratable::cluster_hcal_, and gather_cfg::cout.
Referenced by pftools::Exercises3::calibrateCalibratables(), and pftools::CalibCompare::calibrateCalibratables().
unsigned TreeUtility::getParticleDepositsDirectly | ( | TChain & | sourceChain, |
std::vector< ParticleDepositPtr > & | toBeFilled, | ||
CalibrationTarget | target, | ||
DetectorElementPtr | offset, | ||
DetectorElementPtr | ecal, | ||
DetectorElementPtr | hcal, | ||
bool | includeOffset = false |
||
) |
Definition at line 116 of file TreeUtility.cc.
References EnergyCorrector::c, pftools::Calibratable::cand_energyEcal_, pftools::Calibratable::cand_energyHcal_, pftools::Calibratable::cand_eta_, pftools::Calibratable::cand_phi_, pftools::Calibratable::cands_num_, pftools::CLUSTER, pftools::Calibratable::cluster_ecal_, pftools::Calibratable::cluster_energyEcal_, pftools::Calibratable::cluster_energyHcal_, pftools::Calibratable::cluster_hcal_, pftools::Calibratable::cluster_meanEcal_, pftools::Calibratable::cluster_meanHcal_, KineDebug3::count(), gather_cfg::cout, pftools::CalibratableElement::energy_, pftools::CalibratableElement::eta_, pftools::PFCANDIDATE, pftools::PFELEMENT, pftools::CalibratableElement::phi_, pftools::RECHIT, pftools::Calibratable::rechits_ecal_, pftools::Calibratable::rechits_hcal_, pftools::Calibratable::rechits_meanEcal_, pftools::Calibratable::rechits_meanHcal_, pftools::Calibratable::sim_energyEvent_, pftools::Calibratable::sim_eta_, pftools::Calibratable::sim_isMC_, pftools::Calibratable::sim_phi_, pftools::Calibratable::tb_eta_, pftools::Calibratable::tb_isTB_, pftools::Calibratable::tb_phi_, pftools::UNDEFINED, and TriggerAnalyzer::veto.
|
private |
Definition at line 51 of file TreeUtility.h.