CMS 3D CMS Logo

HGCalValidator.h
Go to the documentation of this file.
1 #ifndef HGCalValidator_h
2 #define HGCalValidator_h
3 
15 
23 
25 
29 
30 class PileupSummaryInfo;
31 
34  std::vector<dqm::reco::MonitorElement*> h_layerclusters_coll;
35 };
36 
37 class HGCalValidator : public DQMGlobalEDAnalyzer<HGCalValidatorHistograms> {
38 public:
40 
43 
45  ~HGCalValidator() override;
46 
48  void dqmAnalyze(const edm::Event&, const edm::EventSetup&, const Histograms&) const override;
50  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&, Histograms&) const override;
51 
52  void cpParametersAndSelection(const Histograms& histograms,
53  std::vector<CaloParticle> const& cPeff,
54  std::vector<SimVertex> const& simVertices,
55  std::vector<size_t>& selected_cPeff) const;
56 
57 protected:
59  std::vector<edm::InputTag> label_mcl;
60  const bool SaveGeneralInfo_;
65 
66  std::vector<edm::EDGetTokenT<reco::CaloClusterCollection>> labelToken;
68  std::vector<edm::EDGetTokenT<std::vector<reco::HGCalMultiCluster>>> label_mclTokens;
76  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
77 
78 private:
79  void fillHitMap(std::map<DetId, const HGCRecHit*>&,
80  const HGCRecHitCollection&,
81  const HGCRecHitCollection&,
82  const HGCRecHitCollection&) const;
84  std::shared_ptr<hgcal::RecHitTools> tools_;
85  std::map<double, double> cummatbudg;
86  std::vector<int> particles_to_monitor_;
88  std::vector<int> thicknesses_to_monitor_;
90 };
91 
92 #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_
const bool domulticlustersPlots_
const bool SaveGeneralInfo_
edm::EDGetTokenT< Density > density_
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_
edm::EDGetTokenT< reco::CaloClusterCollection > layerclusters_
const edm::FileInPath cummatbudinxo_
std::vector< edm::EDGetTokenT< std::vector< reco::HGCalMultiCluster > > > label_mclTokens
const bool dolayerclustersPlots_
std::vector< edm::InputTag > label_mcl
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_
std::vector< dqm::reco::MonitorElement * > h_layerclusters_coll
edm::InputTag label_lcl
Definition: Run.h:45