CMS 3D CMS Logo

HGCalValidator.h
Go to the documentation of this file.
1 #ifndef HGCalValidator_h
2 #define HGCalValidator_h
3 
14 
22 
24 
28 
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,
58  unsigned int layers,
59  std::unordered_map<DetId, const HGCRecHit*> const&) const;
60 
61 protected:
64  std::vector<edm::InputTag> label_tst;
67  const bool SaveGeneralInfo_;
70  const bool doSimClustersPlots_;
72  const bool doTrackstersPlots_;
73  std::vector<edm::InputTag> label_clustersmask;
75 
76  std::vector<edm::EDGetTokenT<reco::CaloClusterCollection>> labelToken;
79  std::vector<edm::EDGetTokenT<ticl::TracksterCollection>> label_tstTokens;
83  std::vector<edm::EDGetTokenT<std::vector<float>>> clustersMaskTokens_;
90  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
91 
92 private:
94  std::shared_ptr<hgcal::RecHitTools> tools_;
95  std::map<double, double> cummatbudg;
96  std::vector<int> particles_to_monitor_;
98  std::vector<int> thicknesses_to_monitor_;
100 };
101 
102 #endif
HGCalValidator::dqmAnalyze
void dqmAnalyze(const edm::Event &, const edm::EventSetup &, const Histograms &) const override
Method called once per event.
Definition: HGCalValidator.cc:225
HGCalValidator::label_cp_effic
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_effic
Definition: HGCalValidator.h:80
HGCalValidator::cummatbudinxo_
const edm::FileInPath cummatbudinxo_
Definition: HGCalValidator.h:74
HGCalValidator::doLayerClustersPlots_
const bool doLayerClustersPlots_
Definition: HGCalValidator.h:71
Trackster.h
HGCalClusteringAlgoBase.h
HGCalValidator::~HGCalValidator
~HGCalValidator() override
Destructor.
Definition: HGCalValidator.cc:94
HGCalValidator::associatorMapStR
edm::EDGetTokenT< hgcal::SimToRecoCollection > associatorMapStR
Definition: HGCalValidator.h:87
HGCalValidator::HGCalValidator
HGCalValidator(const edm::ParameterSet &pset)
Constructor.
Definition: HGCalValidator.cc:11
PFCandidate.h
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
RecHitTools.h
HGCalValidator::associatorMapSimtR
edm::EDGetTokenT< hgcal::SimToRecoCollectionWithSimClusters > associatorMapSimtR
Definition: HGCalValidator.h:88
HGCalValidatorHistograms::h_layerclusters_coll
std::vector< dqm::reco::MonitorElement * > h_layerclusters_coll
Definition: HGCalValidator.h:36
HGCalValidator::associator_
edm::InputTag associator_
Definition: HGCalValidator.h:65
HGCalValidator::label_clustersmask
std::vector< edm::InputTag > label_clustersmask
Definition: HGCalValidator.h:73
HGCalValidator::labelToken
std::vector< edm::EDGetTokenT< reco::CaloClusterCollection > > labelToken
Definition: HGCalValidator.h:76
edm::FileInPath
Definition: FileInPath.h:61
HGVHistoProducerAlgo.h
SimCluster.h
HGCalValidator::cpSelector
CaloParticleSelector cpSelector
Definition: HGCalValidator.h:93
CaloParticleSelector
Definition: CaloParticleSelector.h:10
HGCalValidator::tools_
std::shared_ptr< hgcal::RecHitTools > tools_
Definition: HGCalValidator.h:94
SimVertex.h
HGCalValidator::label_cp_fake
edm::EDGetTokenT< std::vector< CaloParticle > > label_cp_fake
Definition: HGCalValidator.h:81
PFCluster.h
EDGetToken.h
HGCalValidator::doTrackstersPlots_
const bool doTrackstersPlots_
Definition: HGCalValidator.h:72
FileInPath.h
HGCalValidator::totallayers_to_monitor_
unsigned totallayers_to_monitor_
Definition: HGCalValidator.h:97
edm::ParameterSet
Definition: ParameterSet.h:47
HGCalValidator::simVertices_
edm::EDGetTokenT< std::vector< SimVertex > > simVertices_
Definition: HGCalValidator.h:82
HGCalValidator::caloGeomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
Definition: HGCalValidator.h:62
Event.h
HGCalValidator
Definition: HGCalValidator.h:39
HGCalValidator::doSimClustersPlots_
const bool doSimClustersPlots_
Definition: HGCalValidator.h:70
HGCalValidator::thicknesses_to_monitor_
std::vector< int > thicknesses_to_monitor_
Definition: HGCalValidator.h:98
CaloParticle.h
HGCalValidator::histoProducerAlgo_
std::unique_ptr< HGVHistoProducerAlgo > histoProducerAlgo_
Definition: HGCalValidator.h:90
HGCalValidator::doCaloParticleSelection_
const bool doCaloParticleSelection_
Definition: HGCalValidator.h:69
HGCalValidator::label_lcl
edm::InputTag label_lcl
Definition: HGCalValidator.h:63
edm::EventSetup
Definition: EventSetup.h:58
histograms
Definition: histograms.py:1
HGCalValidator::particles_to_monitor_
std::vector< int > particles_to_monitor_
Definition: HGCalValidator.h:96
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
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:96
LayerClusterToSimClusterAssociator.h
HGCalValidator::simClusters_
edm::EDGetTokenT< std::vector< SimCluster > > simClusters_
Definition: HGCalValidator.h:77
Frameworkfwd.h
HGCalValidator::cummatbudg
std::map< double, double > cummatbudg
Definition: HGCalValidator.h:95
HGCalValidatorHistograms
Definition: HGCalValidator.h:34
HGCalValidator::SaveGeneralInfo_
const bool SaveGeneralInfo_
Definition: HGCalValidator.h:67
HGCalValidator::associatorMapRtSim
edm::EDGetTokenT< hgcal::RecoToSimCollectionWithSimClusters > associatorMapRtSim
Definition: HGCalValidator.h:89
HGCalValidator::density_
edm::EDGetTokenT< Density > density_
Definition: HGCalValidator.h:85
HGCalValidator::dirName_
std::string dirName_
Definition: HGCalValidator.h:99
HGCalValidator::associatorSim_
edm::InputTag associatorSim_
Definition: HGCalValidator.h:66
dqm::implementation::IBooker
Definition: DQMStore.h:43
DQMGlobalEDAnalyzer
Definition: DQMGlobalEDAnalyzer.h:76
HGCalValidator_cfi.simVertices
simVertices
Definition: HGCalValidator_cfi.py:57
LayerClusterToCaloParticleAssociator.h
ParameterSet.h
HGCalValidator::cpParametersAndSelection
void cpParametersAndSelection(const Histograms &histograms, std::vector< CaloParticle > const &cPeff, std::vector< SimVertex > const &simVertices, std::vector< size_t > &selected_cPeff, unsigned int layers, std::unordered_map< DetId, const HGCRecHit * > const &) const
Definition: HGCalValidator.cc:202
HGCalValidator::label_tst
std::vector< edm::InputTag > label_tst
Definition: HGCalValidator.h:64
edm::Event
Definition: Event.h:73
HGCalValidator::layerclusters_
edm::EDGetTokenT< reco::CaloClusterCollection > layerclusters_
Definition: HGCalValidator.h:78
CaloParticleSelector.h
HGCalValidator::hitMap_
edm::EDGetTokenT< std::unordered_map< DetId, const HGCRecHit * > > hitMap_
Definition: HGCalValidator.h:84
HGCalValidatorHistograms::histoProducerAlgo
HGVHistoProducerAlgoHistograms histoProducerAlgo
Definition: HGCalValidator.h:35
HGVHistoProducerAlgoHistograms
Definition: HGVHistoProducerAlgo.h:31
HGCalValidator::clustersMaskTokens_
std::vector< edm::EDGetTokenT< std::vector< float > > > clustersMaskTokens_
Definition: HGCalValidator.h:83
edm::InputTag
Definition: InputTag.h:15
HGCalValidator::label_tstTokens
std::vector< edm::EDGetTokenT< ticl::TracksterCollection > > label_tstTokens
Definition: HGCalValidator.h:79
hgcalTopologyTester_cfi.layers
layers
Definition: hgcalTopologyTester_cfi.py:8
PileupSummaryInfo
Definition: PileupSummaryInfo.h:22
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
HGCalValidator::associatorMapRtS
edm::EDGetTokenT< hgcal::RecoToSimCollection > associatorMapRtS
Definition: HGCalValidator.h:86
DQMGlobalEDAnalyzer.h
HGCalValidator::doCaloParticlePlots_
const bool doCaloParticlePlots_
Definition: HGCalValidator.h:68