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 
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_;
66 
67  std::vector<edm::EDGetTokenT<reco::CaloClusterCollection>> labelToken;
69  std::vector<edm::EDGetTokenT<std::vector<reco::HGCalMultiCluster>>> label_mclTokens;
77  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
78 
79 private:
80  void fillHitMap(std::map<DetId, const HGCRecHit*>&,
81  const HGCRecHitCollection&,
82  const HGCRecHitCollection&,
83  const HGCRecHitCollection&) const;
85  std::shared_ptr<hgcal::RecHitTools> tools_;
86  std::map<double, double> cummatbudg;
87  std::vector<int> particles_to_monitor_;
89  std::vector<int> thicknesses_to_monitor_;
91 };
92 
93 #endif
HGCalValidator::dqmAnalyze
void dqmAnalyze(const edm::Event &, const edm::EventSetup &, const Histograms &) const override
Method called once per event.
Definition: HGCalValidator.cc:160
HGCalValidator::fillHitMap
void fillHitMap(std::map< DetId, const HGCRecHit * > &, const HGCRecHitCollection &, const HGCRecHitCollection &, const HGCRecHitCollection &) const
Definition: HGCalValidator.cc:286
HGCalValidator::label_cp_effic
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_effic
Definition: HGCalValidator.h:70
HGCalValidator::cummatbudinxo_
const edm::FileInPath cummatbudinxo_
Definition: HGCalValidator.h:65
HGCalValidator::recHitsFH_
edm::EDGetTokenT< HGCRecHitCollection > recHitsFH_
Definition: HGCalValidator.h:74
HGCalClusteringAlgoBase.h
HGCalValidator::~HGCalValidator
~HGCalValidator() override
Destructor.
Definition: HGCalValidator.cc:76
HGCalValidator::cpParametersAndSelection
void cpParametersAndSelection(const Histograms &histograms, std::vector< CaloParticle > const &cPeff, std::vector< SimVertex > const &simVertices, std::vector< size_t > &selected_cPeff) const
Definition: HGCalValidator.cc:140
ESHandle.h
HGCalValidator::HGCalValidator
HGCalValidator(const edm::ParameterSet &pset)
Constructor.
Definition: HGCalValidator.cc:9
PFCandidate.h
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< reco::CaloClusterCollection >
HGCalMultiCluster.h
edm::SortedCollection
Definition: SortedCollection.h:49
HGCalValidatorHistograms::h_layerclusters_coll
std::vector< dqm::reco::MonitorElement * > h_layerclusters_coll
Definition: HGCalValidator.h:34
HGCalValidator::dolayerclustersPlots_
const bool dolayerclustersPlots_
Definition: HGCalValidator.h:63
FileInPath.h
HGCalValidator::labelToken
std::vector< edm::EDGetTokenT< reco::CaloClusterCollection > > labelToken
Definition: HGCalValidator.h:67
edm::FileInPath
Definition: FileInPath.h:64
HGVHistoProducerAlgo.h
SimCluster.h
HGCalValidator::cpSelector
CaloParticleSelector cpSelector
Definition: HGCalValidator.h:84
CaloParticleSelector
Definition: CaloParticleSelector.h:10
HGCalValidator::tools_
std::shared_ptr< hgcal::RecHitTools > tools_
Definition: HGCalValidator.h:85
SimVertex.h
HGCalValidator::label_cp_fake
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_fake
Definition: HGCalValidator.h:71
PFCluster.h
EDGetToken.h
HGCalValidator::label_mclTokens
std::vector< edm::EDGetTokenT< std::vector< reco::HGCalMultiCluster > > > label_mclTokens
Definition: HGCalValidator.h:69
HGCalValidator::recHitsBH_
edm::EDGetTokenT< HGCRecHitCollection > recHitsBH_
Definition: HGCalValidator.h:75
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalValidator::recHitsEE_
edm::EDGetTokenT< HGCRecHitCollection > recHitsEE_
Definition: HGCalValidator.h:73
HGCalValidator::totallayers_to_monitor_
unsigned totallayers_to_monitor_
Definition: HGCalValidator.h:88
edm::ParameterSet
Definition: ParameterSet.h:36
HGCalValidator::simVertices_
edm::EDGetTokenT< std::vector< SimVertex > > simVertices_
Definition: HGCalValidator.h:72
Event.h
HGCalValidator
Definition: HGCalValidator.h:37
HGCalValidator::thicknesses_to_monitor_
std::vector< int > thicknesses_to_monitor_
Definition: HGCalValidator.h:89
CaloParticle.h
HGCalValidator::histoProducerAlgo_
std::unique_ptr< HGVHistoProducerAlgo > histoProducerAlgo_
Definition: HGCalValidator.h:77
HGCalValidator::doCaloParticleSelection_
const bool doCaloParticleSelection_
Definition: HGCalValidator.h:62
HGCalValidator::label_lcl
edm::InputTag label_lcl
Definition: HGCalValidator.h:58
edm::EventSetup
Definition: EventSetup.h:57
histograms
Definition: histograms.py:1
HGCalValidator::particles_to_monitor_
std::vector< int > particles_to_monitor_
Definition: HGCalValidator.h:87
HGCalValidator::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms &) const override
Method called to book the DQM histograms.
Definition: HGCalValidator.cc:78
HGCalValidator::label_mcl
std::vector< edm::InputTag > label_mcl
Definition: HGCalValidator.h:59
HGCalValidator::domulticlustersPlots_
const bool domulticlustersPlots_
Definition: HGCalValidator.h:64
Frameworkfwd.h
HGCalValidator::cummatbudg
std::map< double, double > cummatbudg
Definition: HGCalValidator.h:86
HGCalValidatorHistograms
Definition: HGCalValidator.h:32
HGCalValidator::SaveGeneralInfo_
const bool SaveGeneralInfo_
Definition: HGCalValidator.h:60
HGCalValidator::density_
edm::EDGetTokenT< Density > density_
Definition: HGCalValidator.h:76
HGCalValidator::dirName_
std::string dirName_
Definition: HGCalValidator.h:90
dqm::implementation::IBooker
Definition: DQMStore.h:43
DQMGlobalEDAnalyzer
Definition: DQMGlobalEDAnalyzer.h:13
HGCalValidator_cfi.simVertices
simVertices
Definition: HGCalValidator_cfi.py:43
ParameterSet.h
edm::Event
Definition: Event.h:73
HGCalValidator::layerclusters_
edm::EDGetTokenT< reco::CaloClusterCollection > layerclusters_
Definition: HGCalValidator.h:68
CaloParticleSelector.h
HGCalValidatorHistograms::histoProducerAlgo
HGVHistoProducerAlgoHistograms histoProducerAlgo
Definition: HGCalValidator.h:33
HGVHistoProducerAlgoHistograms
Definition: HGVHistoProducerAlgo.h:29
edm::InputTag
Definition: InputTag.h:15
RecHitTools.h
PileupSummaryInfo
Definition: PileupSummaryInfo.h:22
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
DQMGlobalEDAnalyzer.h
HGCalValidator::doCaloParticlePlots_
const bool doCaloParticlePlots_
Definition: HGCalValidator.h:61