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 
29 
32 
33 class PileupSummaryInfo;
34 
38  std::vector<dqm::reco::MonitorElement*> h_layerclusters_coll;
39 };
40 
41 class HGCalValidator : public DQMGlobalEDAnalyzer<HGCalValidatorHistograms> {
42 public:
44 
47 
49  ~HGCalValidator() override;
50 
52  void dqmAnalyze(const edm::Event&, const edm::EventSetup&, const Histograms&) const override;
54  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&, Histograms&) const override;
55 
57  std::vector<CaloParticle> const& cPeff,
58  std::vector<SimVertex> const& simVertices,
59  std::vector<size_t>& selected_cPeff,
60  unsigned int layers,
61  std::unordered_map<DetId, const unsigned int> const&,
62  std::vector<HGCRecHit> const& hits) const;
63 
64 protected:
67  std::vector<edm::InputTag> label_tst;
71  const bool SaveGeneralInfo_;
74  const bool doSimClustersPlots_;
78  const bool doTrackstersPlots_;
80  std::vector<edm::InputTag> label_clustersmask;
81  const bool doCandidatesPlots_;
84  const bool isTICLv5_;
85 
86  std::vector<edm::EDGetTokenT<reco::CaloClusterCollection>> labelToken;
89  std::vector<edm::EDGetTokenT<ticl::TracksterCollection>> label_tstTokens;
96  std::vector<edm::EDGetTokenT<std::vector<float>>> clustersMaskTokens_;
102  std::unique_ptr<HGVHistoProducerAlgo> histoProducerAlgo_;
103  std::vector<edm::InputTag> hits_label_;
104  std::vector<edm::EDGetTokenT<HGCRecHitCollection>> hits_token_;
105  std::unique_ptr<TICLCandidateValidator> candidateVal_;
106 
107 private:
109  std::shared_ptr<hgcal::RecHitTools> tools_;
110  std::map<double, double> cumulative_material_budget;
111  std::vector<int> particles_to_monitor_;
113  std::vector<int> thicknesses_to_monitor_;
115 };
116 
117 #endif
void dqmAnalyze(const edm::Event &, const edm::EventSetup &, const Histograms &) const override
Method called once per event.
edm::InputTag associator_
edm::EDGetTokenT< std::unordered_map< DetId, const unsigned int > > hitMap_
std::vector< edm::InputTag > label_tst
std::unique_ptr< HGVHistoProducerAlgo > histoProducerAlgo_
~HGCalValidator() override
Destructor.
CaloParticleSelector cpSelector
const bool doCaloParticlePlots_
const bool doCandidatesPlots_
unsigned totallayers_to_monitor_
std::vector< int > thicknesses_to_monitor_
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 unsigned int > const &, std::vector< HGCRecHit > const &hits) const
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< ticl::RecoToSimCollectionWithSimClusters > associatorMapRtSim
std::string label_TSToSTSPR_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
std::string dirName_
HGVHistoProducerAlgoHistograms histoProducerAlgo
edm::EDGetTokenT< ticl::SimToRecoCollectionWithSimClusters > associatorMapSimtR
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_
std::vector< edm::EDGetTokenT< HGCRecHitCollection > > hits_token_
std::map< double, double > cumulative_material_budget
edm::EDGetTokenT< ticl::SimToRecoCollection > associatorMapStR
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_
std::unique_ptr< TICLCandidateValidator > candidateVal_
edm::EDGetTokenT< std::vector< SimCluster > > simClusters_
std::vector< edm::EDGetTokenT< reco::CaloClusterCollection > > labelToken
std::string label_candidates_
edm::InputTag label_SimClustersPlots_
edm::InputTag label_SimClustersLevel_
std::vector< int > particles_to_monitor_
std::vector< dqm::reco::MonitorElement * > h_layerclusters_coll
const bool doSimClustersPlots_
edm::InputTag label_lcl
TICLCandidateValidatorHistograms histoTICLCandidates
edm::EDGetTokenT< ticl::RecoToSimCollection > associatorMapRtS
edm::EDGetTokenT< std::map< uint, std::vector< uint > > > simTrackstersMap_
edm::EDGetTokenT< ticl::TracksterCollection > simTracksters_fromCPs_
std::string label_TS_
std::vector< edm::InputTag > hits_label_
edm::InputTag associatorSim_
const bool isTICLv5_
Definition: Run.h:45
edm::InputTag label_layerClustersPlots_