Go to the documentation of this file. 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()));
void setDirectory(TDirectory *dir) override
set directory (to use in ROOT)
bool isInRange(float pt, float eta, float phi) const
void match(const C &candCollection, const M &matchedCandCollection, std::vector< int > &matchIndices, bool matchCharge=false, float dRMax=-1)
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 fill(const reco::PFCandidateCollection &candCollection, const C &matchedCandCollection)
fill histograms with all particle
A benchmark managing several benchmarks.
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
CandidateBenchmark candBench_
PFCandidateBenchmark pfCandBench_
PFCandidateManager(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
MatchCandidateBenchmark matchCandBench_
void setParameters(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
set the benchmark parameters
~PFCandidateManager() override
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Particle reconstructed by the particle flow algorithm.
void fillOne(const reco::PFCandidate &pfCand)
fill histograms with a given particle
void setup(DQMStore::IBooker &b)
book histograms