CMS 3D CMS Logo

HGCalValidator.h
Go to the documentation of this file.
1 #ifndef HGCalValidator_h
2 #define HGCalValidator_h
3 
15 
22 
24 
28 
29 class PileupSummaryInfo;
30 
33  std::vector<ConcurrentMonitorElement> h_layerclusters_coll;
34 };
35 
36 class HGCalValidator : public DQMGlobalEDAnalyzer<HGCalValidatorHistograms> {
37  public:
39 
42 
44  ~HGCalValidator() override;
45 
46 
48  void dqmAnalyze(const edm::Event&, const edm::EventSetup&, const Histograms& ) const override;
50  void bookHistograms(DQMStore::ConcurrentBooker&, edm::Run const&, edm::EventSetup const&, Histograms&) const override;
51 
52  void cpParametersAndSelection(const Histograms& histograms, std::vector<CaloParticle> const & cPeff, std::vector<SimVertex> const & simVertices, std::vector<size_t>& selected_cPeff) const;
53 
54 
55  protected:
56 
57  std::vector<edm::InputTag> label;
58  const bool SaveGeneralInfo_;
62 
63  std::vector<edm::EDGetTokenT<reco::CaloClusterCollection> > labelToken;
71  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
72 
73 
74 
75  private:
76 
77  void fillHitMap(std::map<DetId, const HGCRecHit * > &,
78  const HGCRecHitCollection &,
79  const HGCRecHitCollection &,
80  const HGCRecHitCollection &) const;
82  std::shared_ptr<hgcal::RecHitTools> tools_;
83  std::map<double, double> cummatbudg;
84  std::vector<int> particles_to_monitor_;
86  std::vector<int> thicknesses_to_monitor_;
88 };
89 
90 
91 #endif
std::map< double, double > cummatbudg
edm::EDGetTokenT< HGCRecHitCollection > recHitsBH_
std::unique_ptr< HGVHistoProducerAlgo > histoProducerAlgo_
CaloParticleSelector cpSelector
const bool doCaloParticlePlots_
unsigned totallayers_to_monitor_
std::vector< int > thicknesses_to_monitor_
std::vector< edm::InputTag > label
const bool SaveGeneralInfo_
edm::EDGetTokenT< Density > density_
std::vector< ConcurrentMonitorElement > h_layerclusters_coll
std::string dirName_
HGVHistoProducerAlgoHistograms histoProducerAlgo
edm::EDGetTokenT< std::vector< SimVertex > > simVertices_
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_fake
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_effic
example_global void dqmAnalyze(edm::Event const &,@example_global edm::EventSetup const &,@example_global Histograms___class__ const &) const override
std::shared_ptr< hgcal::RecHitTools > tools_
const edm::FileInPath cummatbudinxo_
const bool dolayerclustersPlots_
std::vector< edm::EDGetTokenT< reco::CaloClusterCollection > > labelToken
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
std::vector< int > particles_to_monitor_
edm::EDGetTokenT< HGCRecHitCollection > recHitsEE_
edm::EDGetTokenT< HGCRecHitCollection > recHitsFH_
Definition: Run.h:45