1 #ifndef RecoParticleFlow_Benchmark_BenchmarkManager_h
2 #define RecoParticleFlow_Benchmark_BenchmarkManager_h
29 bool matchCharge =
true,
40 bool matchCharge =
true,
52 const C& matchedCandCollection );
69 const C& matchCandCollection) {
72 std::vector<int> matchIndices;
73 PFB::match( candCollection, matchCandCollection, matchIndices,
76 for (
unsigned int i = 0;
i < candCollection.size();
i++) {
81 int iMatch = matchIndices[
i];
83 assert(iMatch< static_cast<int>(matchCandCollection.size()));
A benchmark managing several benchmarks.
To plot Candidate quantities.
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
To plot Candidate quantities.
virtual float pt() const
transverse momentum
void match(const C &candCollection, const M &matchedCandCollection, std::vector< int > &matchIndices, bool matchCharge=false, float dRMax=-1)
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
virtual float phi() const
momentum azimuthal angle
CandidateBenchmark candBench_
PFCandidateManager(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
virtual float eta() const
momentum pseudorapidity
void setParameters(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
set the benchmark parameters
void setDirectory(TDirectory *dir)
set directory (to use in ROOT)
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
MatchCandidateBenchmark matchCandBench_
void fillOne(const reco::PFCandidate &pfCand)
fill histograms with a given particle
virtual ~PFCandidateManager()
Particle reconstructed by the particle flow algorithm.
void fill(const reco::PFCandidateCollection &candCollection, const C &matchedCandCollection)
fill histograms with all particle
bool isInRange(float pt, float eta, float phi) const
void setup()
book histograms
PFCandidateBenchmark pfCandBench_