PandoraAnalysis
01.02.01
|
CalibrationHelper class. More...
#include <CalibrationHelper.h>
Classes | |
class | Settings |
Settings class. More... | |
Public Types | |
typedef std::vector< const EVENT::ReconstructedParticle * > | ParticleVector |
Public Member Functions | |
CalibrationHelper (const Settings &settings) | |
Constructor. More... | |
~CalibrationHelper () | |
Destructor. | |
void | Calibrate (const EVENT::LCEvent *pLCEvent, const ParticleVector &particleVector, const int nPfoTargetsTotal, const int nPfoTargetsTracks, const int nPfoTargetsNeutralHadrons, const float pfoTargetsEnergyTotal) |
Produces the calibration data. More... | |
void | SetBranchAddresses (TTree *pTTree) |
Set branch addresses for calibration variables. More... | |
void | CreateHistograms () |
Create calibration histograms. | |
void | SetHistogramDirectories (TFile *pTFile) |
Set directory for calibration histograms. More... | |
void | WriteHistograms () |
Write calibration histograms to tree. | |
void | Clear () |
Clear calibration member variables. | |
CalibrationHelper class.
pandora_analysis::CalibrationHelper::CalibrationHelper | ( | const Settings & | settings | ) |
Constructor.
settings | the settings |
void pandora_analysis::CalibrationHelper::Calibrate | ( | const EVENT::LCEvent * | pLCEvent, |
const ParticleVector & | particleVector, | ||
const int | nPfoTargetsTotal, | ||
const int | nPfoTargetsTracks, | ||
const int | nPfoTargetsNeutralHadrons, | ||
const float | pfoTargetsEnergyTotal | ||
) |
Produces the calibration data.
pLCEvent | the lc event |
particleVector | reconstructed particle vector for the lc event |
nPfoTargetsTotal | number of total targets |
nPfoTargetsTracks | number of target tracks |
nPfoTargetsNeutralHadrons | of target neutral hadrons |
pfoTargetsEnergyTotal | total targets energy |
References pandora_analysis::CalibrationHelper::Settings::m_bCalCollections, pandora_analysis::CalibrationHelper::Settings::m_eCalCollections, pandora_analysis::CalibrationHelper::Settings::m_eCalCollectionsSimCaloHit, pandora_analysis::CalibrationHelper::Settings::m_hCalBarrelCollectionsSimCaloHit, pandora_analysis::CalibrationHelper::Settings::m_hCalCollections, pandora_analysis::CalibrationHelper::Settings::m_hCalEndCapCollectionsSimCaloHit, pandora_analysis::CalibrationHelper::Settings::m_hCalOtherCollectionsSimCaloHit, pandora_analysis::CalibrationHelper::Settings::m_hCalRingOuterPhi0, pandora_analysis::CalibrationHelper::Settings::m_hCalRingOuterSymmetryOrder, pandora_analysis::CalibrationHelper::Settings::m_lCalCollections, pandora_analysis::CalibrationHelper::Settings::m_lHCalCollections, and pandora_analysis::CalibrationHelper::Settings::m_muonCollections.
Referenced by PfoAnalysis::processEvent().
void pandora_analysis::CalibrationHelper::SetBranchAddresses | ( | TTree * | pTTree | ) |
Set branch addresses for calibration variables.
pTTree | tree to set branch addresses to |
Referenced by PfoAnalysis::init().
void pandora_analysis::CalibrationHelper::SetHistogramDirectories | ( | TFile * | pTFile | ) |
Set directory for calibration histograms.
pTFile | directory to set histograms to |
Referenced by PfoAnalysis::init().