1 #ifndef RecoParticleFlow_Benchmark_BenchmarkManager_h 2 #define RecoParticleFlow_Benchmark_BenchmarkManager_h 64 std::vector<int> matchIndices;
67 for (
unsigned int i = 0;
i < candCollection.size();
i++) {
73 int iMatch = matchIndices[
i];
75 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.
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
CandidateBenchmark candBench_
PFCandidateManager(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
~PFCandidateManager() override
void setParameters(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
set the benchmark parameters
bool isInRange(float pt, float eta, float phi) const
void setup(DQMStore::IBooker &b)
book histograms
void setDirectory(TDirectory *dir) override
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
Particle reconstructed by the particle flow algorithm.
void fill(const reco::PFCandidateCollection &candCollection, const C &matchedCandCollection)
fill histograms with all particle
PFCandidateBenchmark pfCandBench_