Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:44

0001 #ifndef RecoParticleFlow_Benchmark_PFCandidateBenchmark_h
0002 #define RecoParticleFlow_Benchmark_PFCandidateBenchmark_h
0003 
0004 #include "DQMOffline/PFTau/interface/Benchmark.h"
0005 
0006 #include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
0007 
0008 /// To plot specific PFCandidate quantities
0009 /// the name of the histograms corresponds to the name of the
0010 /// PFCandidate accessors.
0011 class PFCandidateBenchmark : public Benchmark {
0012 public:
0013   PFCandidateBenchmark(Mode mode) : Benchmark(mode) {}
0014   ~PFCandidateBenchmark() override;
0015 
0016   /// book histograms
0017   void setup(DQMStore::IBooker &b);
0018 
0019   void fill(const reco::PFCandidateCollection &pfCands);
0020 
0021   /// fill histograms with a given particle
0022   void fillOne(const reco::PFCandidate &pfCand);
0023 
0024 protected:
0025   TH1F *particleId_;
0026   TH1F *ecalEnergy_;
0027   TH1F *hcalEnergy_;
0028   TH1F *mva_e_pi_;
0029   TH1F *elementsInBlocksSize_;
0030 };
0031 
0032 #endif