#include <RootTreeHandler.h>
Public Member Functions | |
void | readTree (const int maxEvents, const TString &fileName, MuonPairVector *savedPair, const int muonType, std::vector< std::pair< unsigned int, unsigned long long > > *evtRun, MuonPairVector *genPair=0) |
void | readTree (const int maxEvents, const TString &fileName, MuonPairExtendedVector *savedPair, const int muonType, std::vector< std::pair< unsigned int, unsigned long long > > *evtRun, MuonPairExtendedVector *genPair=0) |
void | readTree (const int maxEvents, const TString &fileName, std::vector< MuonPair > *savedPair, const int muonType, std::vector< GenMuonPair > *genPair=0) |
Used to read the external trees. More... | |
void | writeTree (const TString &fileName, const std::vector< MuonPair > *savedPair, const int muonType=0, const std::vector< GenMuonPair > *genPair=0, const bool saveAll=false) |
This class can be used to save all the muon pairs (and gen muon pairs if any) to a root tree.
The writeTree method gets the name of the file to store the tree and the savedPair (and possibly genPair) vector of muon pairs.
Likewise, the readTree method takes the same arguments. It reads back from the file with the given name the pairs and stores them in the given savedPair (and genPair) vector.
Definition at line 24 of file RootTreeHandler.h.
|
inline |
Definition at line 88 of file RootTreeHandler.h.
References gather_cfg::cout, MuScleFitEvent::event(), MuonPair::event, cmsRelvalreport::exit, FrontierConditions_GlobalTag_cff::file, mps_fire::i, Data_TkAlMuonIsolated_Run2015B_PromptReco_v1_cff::maxEvents, MuonPair::mu1, GenMuonPair::mu1, MuonPair::mu2, GenMuonPair::mu2, MuScleFitMuon::p4(), and MuScleFitEvent::run().
Referenced by ResolutionAnalyzer::analyze(), TreeSplitter::endJob(), ErrorsAnalyzer::fillHistograms(), ErrorsPropagationAnalyzer::fillHistograms(), main(), and MuScleFit::selectMuons().
|
inline |
Definition at line 124 of file RootTreeHandler.h.
References gather_cfg::cout, MuScleFitEvent::event(), MuonPair::event, cmsRelvalreport::exit, FrontierConditions_GlobalTag_cff::file, mps_fire::i, Data_TkAlMuonIsolated_Run2015B_PromptReco_v1_cff::maxEvents, MuonPair::mu1, GenMuonPair::mu1, MuonPair::mu2, GenMuonPair::mu2, and MuScleFitEvent::run().
|
inline |
Used to read the external trees.
Definition at line 160 of file RootTreeHandler.h.
References gather_cfg::cout, cmsRelvalreport::exit, FrontierConditions_GlobalTag_cff::file, mps_fire::i, and Data_TkAlMuonIsolated_Run2015B_PromptReco_v1_cff::maxEvents.
|
inline |
Definition at line 29 of file RootTreeHandler.h.
References MuonPair::copy(), GenMuonPair::copy(), gather_cfg::cout, cmsRelvalreport::exit, and connectstrParser::f1.
Referenced by TreeSplitter::endJob(), main(), and MuScleFit::~MuScleFit().