CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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;
88  std::vector<edm::EDGetTokenT<std::vector<float>>> clustersMaskTokens_;
95  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
96 
97 private:
99  std::shared_ptr<hgcal::RecHitTools> tools_;
100  std::map<double, double> cummatbudg;
101  std::vector<int> particles_to_monitor_;
103  std::vector<int> thicknesses_to_monitor_;
105 };
106 
107 #endif
std::map< double, double > cummatbudg
edm::EDGetTokenT< std::unordered_map< DetId, const HGCRecHit * > > hitMap_
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
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
edm::InputTag label_TSToCPLinking_
const bool doCaloParticlePlots_
edm::EDGetTokenT< ticl::TracksterCollection > simTrackstersFromCPs_
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.
const bool SaveGeneralInfo_
const bool doLayerClustersPlots_
edm::EDGetTokenT< Density > density_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
edm::EDGetTokenT< hgcal::RecoToSimCollection > associatorMapRtS
std::string dirName_
HGVHistoProducerAlgoHistograms histoProducerAlgo
edm::EDGetTokenT< std::vector< SimVertex > > simVertices_
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
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_
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_
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::InputTag associatorSim_
Definition: Run.h:45
edm::InputTag label_layerClustersPlots_