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;
68  const bool SaveGeneralInfo_;
71  const bool doSimClustersPlots_;
75  const bool doTrackstersPlots_;
77  std::vector<edm::InputTag> label_clustersmask;
79 
80  std::vector<edm::EDGetTokenT<reco::CaloClusterCollection>> labelToken;
83  std::vector<edm::EDGetTokenT<ticl::TracksterCollection>> label_tstTokens;
90  std::vector<edm::EDGetTokenT<std::vector<float>>> clustersMaskTokens_;
97  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
98 
99 private:
101  std::shared_ptr<hgcal::RecHitTools> tools_;
102  std::map<double, double> cummatbudg;
103  std::vector<int> particles_to_monitor_;
105  std::vector<int> thicknesses_to_monitor_;
107 };
108 
109 #endif
std::map< double, double > cummatbudg
edm::EDGetTokenT< std::unordered_map< DetId, const HGCRecHit * > > hitMap_
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
void dqmAnalyze(const edm::Event &, const edm::EventSetup &, const Histograms &) const override
Method called once per event.
edm::InputTag associator_
std::vector< edm::InputTag > label_tst
edm::EDGetTokenT< hgcal::SimToRecoCollectionWithSimClusters > associatorMapSimtR
std::unique_ptr< HGVHistoProducerAlgo > histoProducerAlgo_
~HGCalValidator() override
Destructor.
edm::EDGetTokenT< hgcal::RecoToSimCollectionWithSimClusters > associatorMapRtSim
CaloParticleSelector cpSelector
const bool doCaloParticlePlots_
unsigned totallayers_to_monitor_
std::vector< int > thicknesses_to_monitor_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms &) const override
Method called to book the DQM histograms.
edm::InputTag label_simTS
const bool SaveGeneralInfo_
const bool doLayerClustersPlots_
edm::EDGetTokenT< Density > density_
std::string label_TSToSTSPR_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
edm::EDGetTokenT< hgcal::RecoToSimCollection > associatorMapRtS
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
const bool doCaloParticleSelection_
std::vector< edm::EDGetTokenT< ticl::TracksterCollection > > label_tstTokens
std::shared_ptr< hgcal::RecHitTools > tools_
std::string label_TSToCPLinking_
edm::InputTag label_LCToCPLinking_
edm::InputTag label_simTSFromCP
edm::EDGetTokenT< reco::CaloClusterCollection > layerclusters_
HGCalValidator(const edm::ParameterSet &pset)
Constructor.
const bool doTrackstersPlots_
const edm::FileInPath cummatbudinxo_
edm::EDGetTokenT< ticl::TracksterCollection > simTracksters_
std::vector< edm::InputTag > label_clustersmask
std::vector< edm::EDGetTokenT< std::vector< float > > > clustersMaskTokens_
edm::EDGetTokenT< std::vector< SimCluster > > simClusters_
std::vector< edm::EDGetTokenT< reco::CaloClusterCollection > > labelToken
edm::InputTag label_SimClustersPlots_
edm::InputTag label_SimClustersLevel_
std::vector< int > particles_to_monitor_
edm::EDGetTokenT< hgcal::SimToRecoCollection > associatorMapStR
std::vector< dqm::reco::MonitorElement * > h_layerclusters_coll
const bool doSimClustersPlots_
edm::InputTag label_lcl
edm::EDGetTokenT< std::map< uint, std::vector< uint > > > simTrackstersMap_
edm::EDGetTokenT< ticl::TracksterCollection > simTracksters_fromCPs_
std::string label_TS_
edm::InputTag associatorSim_
Definition: Run.h:45
edm::InputTag label_layerClustersPlots_