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 
31 
32 class PileupSummaryInfo;
33 
36  std::vector<dqm::reco::MonitorElement*> h_layerclusters_coll;
37 };
38 
39 class HGCalValidator : public DQMGlobalEDAnalyzer<HGCalValidatorHistograms> {
40 public:
42 
45 
47  ~HGCalValidator() override;
48 
50  void dqmAnalyze(const edm::Event&, const edm::EventSetup&, const Histograms&) const override;
52  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&, Histograms&) const override;
53 
55  std::vector<CaloParticle> const& cPeff,
56  std::vector<SimVertex> const& simVertices,
57  std::vector<size_t>& selected_cPeff) const;
58 
59 protected:
61  std::vector<edm::InputTag> label_mcl;
62  const bool SaveGeneralInfo_;
68 
69  std::vector<edm::EDGetTokenT<reco::CaloClusterCollection>> labelToken;
71  std::vector<edm::EDGetTokenT<std::vector<reco::HGCalMultiCluster>>> label_mclTokens;
78  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
79 
80 private:
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 #endif
HGCalValidator::dqmAnalyze
void dqmAnalyze(const edm::Event &, const edm::EventSetup &, const Histograms &) const override
Method called once per event.
Definition: HGCalValidator.cc:161
HGCalValidator::label_cp_effic
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_effic
Definition: HGCalValidator.h:72
HGCalValidator::cummatbudinxo_
const edm::FileInPath cummatbudinxo_
Definition: HGCalValidator.h:67
HGCalClusteringAlgoBase.h
HGCalValidator::~HGCalValidator
~HGCalValidator() override
Destructor.
Definition: HGCalValidator.cc:77
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:141
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
HGCalValidatorHistograms::h_layerclusters_coll
std::vector< dqm::reco::MonitorElement * > h_layerclusters_coll
Definition: HGCalValidator.h:36
HGCalValidator::dolayerclustersPlots_
const bool dolayerclustersPlots_
Definition: HGCalValidator.h:65
FileInPath.h
HGCalValidator::labelToken
std::vector< edm::EDGetTokenT< reco::CaloClusterCollection > > labelToken
Definition: HGCalValidator.h:69
edm::FileInPath
Definition: FileInPath.h:64
HGVHistoProducerAlgo.h
SimCluster.h
HGCalValidator::cpSelector
CaloParticleSelector cpSelector
Definition: HGCalValidator.h:81
CaloParticleSelector
Definition: CaloParticleSelector.h:10
HGCalValidator::tools_
std::shared_ptr< hgcal::RecHitTools > tools_
Definition: HGCalValidator.h:82
SimVertex.h
HGCalValidator::label_cp_fake
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_fake
Definition: HGCalValidator.h:73
PFCluster.h
EDGetToken.h
HGCalValidator::label_mclTokens
std::vector< edm::EDGetTokenT< std::vector< reco::HGCalMultiCluster > > > label_mclTokens
Definition: HGCalValidator.h:71
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HGCalValidator::totallayers_to_monitor_
unsigned totallayers_to_monitor_
Definition: HGCalValidator.h:85
edm::ParameterSet
Definition: ParameterSet.h:47
HGCalValidator::simVertices_
edm::EDGetTokenT< std::vector< SimVertex > > simVertices_
Definition: HGCalValidator.h:74
Event.h
HGCalValidator
Definition: HGCalValidator.h:39
HGCalValidator::thicknesses_to_monitor_
std::vector< int > thicknesses_to_monitor_
Definition: HGCalValidator.h:86
CaloParticle.h
HGCalValidator::histoProducerAlgo_
std::unique_ptr< HGVHistoProducerAlgo > histoProducerAlgo_
Definition: HGCalValidator.h:78
HGCalValidator::doCaloParticleSelection_
const bool doCaloParticleSelection_
Definition: HGCalValidator.h:64
HGCalValidator::label_lcl
edm::InputTag label_lcl
Definition: HGCalValidator.h:60
HGCalValidator::LCAssocByEnergyScoreProducer_
edm::EDGetTokenT< hgcal::LayerClusterToCaloParticleAssociator > LCAssocByEnergyScoreProducer_
Definition: HGCalValidator.h:77
edm::EventSetup
Definition: EventSetup.h:57
histograms
Definition: histograms.py:1
HGCalValidator::particles_to_monitor_
std::vector< int > particles_to_monitor_
Definition: HGCalValidator.h:84
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:79
HGCalValidator::label_mcl
std::vector< edm::InputTag > label_mcl
Definition: HGCalValidator.h:61
HGCalValidator::domulticlustersPlots_
const bool domulticlustersPlots_
Definition: HGCalValidator.h:66
Frameworkfwd.h
HGCalValidator::cummatbudg
std::map< double, double > cummatbudg
Definition: HGCalValidator.h:83
HGCalValidatorHistograms
Definition: HGCalValidator.h:34
HGCalValidator::SaveGeneralInfo_
const bool SaveGeneralInfo_
Definition: HGCalValidator.h:62
HGCalValidator::density_
edm::EDGetTokenT< Density > density_
Definition: HGCalValidator.h:76
HGCalValidator::dirName_
std::string dirName_
Definition: HGCalValidator.h:87
dqm::implementation::IBooker
Definition: DQMStore.h:43
DQMGlobalEDAnalyzer
Definition: DQMGlobalEDAnalyzer.h:76
HGCalValidator_cfi.simVertices
simVertices
Definition: HGCalValidator_cfi.py:43
LayerClusterToCaloParticleAssociator.h
ParameterSet.h
edm::Event
Definition: Event.h:73
HGCalValidator::layerclusters_
edm::EDGetTokenT< reco::CaloClusterCollection > layerclusters_
Definition: HGCalValidator.h:70
CaloParticleSelector.h
HGCalValidator::hitMap_
edm::EDGetTokenT< std::unordered_map< DetId, const HGCRecHit * > > hitMap_
Definition: HGCalValidator.h:75
HGCalValidatorHistograms::histoProducerAlgo
HGVHistoProducerAlgoHistograms histoProducerAlgo
Definition: HGCalValidator.h:35
HGVHistoProducerAlgoHistograms
Definition: HGVHistoProducerAlgo.h:30
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:63