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.
double eta() const final
momentum pseudorapidity
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
double pt() const final
transverse momentum
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
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
bool isInRange(float pt, float eta, float phi) const
double phi() const final
momentum azimuthal angle
PFCandidateBenchmark pfCandBench_