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.
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 double phi() const final
momentum azimuthal angle
CandidateBenchmark candBench_
PFCandidateManager(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)
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)
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
virtual double eta() const final
momentum pseudorapidity
bool isInRange(float pt, float eta, float phi) const
PFCandidateBenchmark pfCandBench_
virtual double pt() const final
transverse momentum