CMS 3D CMS Logo

HGVHistoProducerAlgo.h
Go to the documentation of this file.
1 #ifndef Validation_HGCalValidation_HGVHistoProducerAlgo_h
2 #define Validation_HGCalValidation_HGVHistoProducerAlgo_h
3 
4 /* \author HGCal
5  */
6 
7 #include <iostream>
8 #include <fstream>
9 #include <vector>
10 #include <unordered_map>
11 
15 
23 
30 
32 
34  //Info
35  //To be able to spot any issues both in -z and +z a layer id was introduced
36  //that spans from 0 to 103 for hgcal_v9 geometry. The mapping for hgcal_v9 is:
37  //-z: 0->51
38  //+z: 52->103
39  //We will pick the numbers below from RecHitTools just to avoid future problems
40  dqm::reco::MonitorElement* lastLayerEEzm; // last layer of EE -z
41  dqm::reco::MonitorElement* lastLayerFHzm; // last layer of FH -z
42  dqm::reco::MonitorElement* maxlayerzm; // last layer of BH -z
43  dqm::reco::MonitorElement* lastLayerEEzp; // last layer of EE +z
44  dqm::reco::MonitorElement* lastLayerFHzp; // last layer of FH +z
45  dqm::reco::MonitorElement* maxlayerzp; // last layer of BH +z
46 
47  //1D
48  std::vector<dqm::reco::MonitorElement*> h_cluster_eta;
49  std::vector<dqm::reco::MonitorElement*> h_mixedhitscluster_zminus;
50  std::vector<dqm::reco::MonitorElement*> h_mixedhitscluster_zplus;
51  std::vector<dqm::reco::MonitorElement*> h_energyclustered_zminus;
52  std::vector<dqm::reco::MonitorElement*> h_energyclustered_zplus;
53  std::vector<dqm::reco::MonitorElement*> h_longdepthbarycentre_zminus;
54  std::vector<dqm::reco::MonitorElement*> h_longdepthbarycentre_zplus;
55 
56  std::unordered_map<int, dqm::reco::MonitorElement*> h_clusternum_perlayer;
57  std::unordered_map<int, dqm::reco::MonitorElement*> h_energyclustered_perlayer;
58  std::unordered_map<int, dqm::reco::MonitorElement*> h_score_layercl2caloparticle_perlayer;
59  std::unordered_map<int, dqm::reco::MonitorElement*> h_score_caloparticle2layercl_perlayer;
60  std::unordered_map<int, dqm::reco::MonitorElement*> h_energy_vs_score_caloparticle2layercl_perlayer;
61  std::unordered_map<int, dqm::reco::MonitorElement*> h_energy_vs_score_layercl2caloparticle_perlayer;
62  std::unordered_map<int, dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2layercl_perlayer;
63  std::unordered_map<int, dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2layercl_vs_eta_perlayer;
64  std::unordered_map<int, dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2layercl_vs_phi_perlayer;
65  std::unordered_map<int, dqm::reco::MonitorElement*> h_sharedenergy_layercl2caloparticle_perlayer;
66  std::unordered_map<int, dqm::reco::MonitorElement*> h_sharedenergy_layercl2caloparticle_vs_eta_perlayer;
67  std::unordered_map<int, dqm::reco::MonitorElement*> h_sharedenergy_layercl2caloparticle_vs_phi_perlayer;
68  std::unordered_map<int, dqm::reco::MonitorElement*> h_num_caloparticle_eta_perlayer;
69  std::unordered_map<int, dqm::reco::MonitorElement*> h_numDup_caloparticle_eta_perlayer;
70  std::unordered_map<int, dqm::reco::MonitorElement*> h_denom_caloparticle_eta_perlayer;
71  std::unordered_map<int, dqm::reco::MonitorElement*> h_num_caloparticle_phi_perlayer;
72  std::unordered_map<int, dqm::reco::MonitorElement*> h_numDup_caloparticle_phi_perlayer;
73  std::unordered_map<int, dqm::reco::MonitorElement*> h_denom_caloparticle_phi_perlayer;
74  std::unordered_map<int, dqm::reco::MonitorElement*> h_num_layercl_eta_perlayer;
75  std::unordered_map<int, dqm::reco::MonitorElement*> h_numMerge_layercl_eta_perlayer;
76  std::unordered_map<int, dqm::reco::MonitorElement*> h_denom_layercl_eta_perlayer;
77  std::unordered_map<int, dqm::reco::MonitorElement*> h_num_layercl_phi_perlayer;
78  std::unordered_map<int, dqm::reco::MonitorElement*> h_numMerge_layercl_phi_perlayer;
79  std::unordered_map<int, dqm::reco::MonitorElement*> h_denom_layercl_phi_perlayer;
80  std::unordered_map<int, dqm::reco::MonitorElement*> h_cellAssociation_perlayer;
81  std::unordered_map<int, dqm::reco::MonitorElement*> h_clusternum_perthick;
82  std::unordered_map<int, dqm::reco::MonitorElement*> h_cellsenedens_perthick;
83 
84  std::unordered_map<std::string, dqm::reco::MonitorElement*> h_cellsnum_perthickperlayer;
85  std::unordered_map<std::string, dqm::reco::MonitorElement*> h_distancetoseedcell_perthickperlayer;
86  std::unordered_map<std::string, dqm::reco::MonitorElement*> h_distancetoseedcell_perthickperlayer_eneweighted;
87  std::unordered_map<std::string, dqm::reco::MonitorElement*> h_distancetomaxcell_perthickperlayer;
88  std::unordered_map<std::string, dqm::reco::MonitorElement*> h_distancetomaxcell_perthickperlayer_eneweighted;
89  std::unordered_map<std::string, dqm::reco::MonitorElement*> h_distancebetseedandmaxcell_perthickperlayer;
90  std::unordered_map<std::string, dqm::reco::MonitorElement*>
92 
93  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_eta;
94  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_eta_Zorigin;
95  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_energy;
96  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_selfenergy;
97  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_energyDifference;
98  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_pt;
99  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_phi;
100  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_nSimClusters;
101  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_nHitsInSimClusters;
102  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_firstlayer;
103  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_lastlayer;
104  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_layersnum;
105  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_nHitsInSimClusters_matchedtoRecHit;
106  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_nHits_matched_energy;
107  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_nHits_matched_energy_layer;
108  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_nHits_matched_energy_layer_1SimCl;
109  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_sum_energy_layer;
110  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_firstlayer_matchedtoRecHit;
111  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_lastlayer_matchedtoRecHit;
112  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_layersnum_matchedtoRecHit;
113  std::unordered_map<int, dqm::reco::MonitorElement*> h_caloparticle_fractions, h_caloparticle_fractions_weight;
114 
115  //For SimClusters
116  std::unordered_map<int, dqm::reco::MonitorElement*> h_simclusternum_perlayer;
117  std::unordered_map<int, dqm::reco::MonitorElement*> h_simclusternum_perthick;
120 
121  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_denom_layercl_in_simcl_eta_perlayer;
122  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_denom_layercl_in_simcl_phi_perlayer;
123  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_score_layercl2simcluster_perlayer;
124  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_sharedenergy_layercl2simcluster_perlayer;
125  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_energy_vs_score_layercl2simcluster_perlayer;
126  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_num_layercl_in_simcl_eta_perlayer;
127  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_num_layercl_in_simcl_phi_perlayer;
128  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_numMerge_layercl_in_simcl_eta_perlayer;
129  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_numMerge_layercl_in_simcl_phi_perlayer;
130  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_sharedenergy_layercl2simcluster_vs_eta_perlayer;
131  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_sharedenergy_layercl2simcluster_vs_phi_perlayer;
132  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_denom_simcluster_eta_perlayer;
133  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_denom_simcluster_phi_perlayer;
134  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_score_simcluster2layercl_perlayer;
135  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_sharedenergy_simcluster2layercl_perlayer;
136  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_energy_vs_score_simcluster2layercl_perlayer;
137  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_num_simcluster_eta_perlayer;
138  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_num_simcluster_phi_perlayer;
139  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_numDup_simcluster_eta_perlayer;
140  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_numDup_simcluster_phi_perlayer;
141  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_sharedenergy_simcluster2layercl_vs_eta_perlayer;
142  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_sharedenergy_simcluster2layercl_vs_phi_perlayer;
143 
144  // For Tracksters
145  // Linking and Pattern Recognition
146  std::vector<dqm::reco::MonitorElement*> h_score_trackster2caloparticle[2];
147  std::vector<dqm::reco::MonitorElement*> h_score_trackster2bestCaloparticle[2];
148  std::vector<dqm::reco::MonitorElement*> h_score_trackster2bestCaloparticle2[2];
149  std::vector<dqm::reco::MonitorElement*> h_score_caloparticle2trackster[2];
150  std::vector<dqm::reco::MonitorElement*> h_scorePur_caloparticle2trackster[2];
151  std::vector<dqm::reco::MonitorElement*> h_scoreDupl_caloparticle2trackster[2];
152  std::vector<dqm::reco::MonitorElement*> h_energy_vs_score_trackster2caloparticle[2];
153  std::vector<dqm::reco::MonitorElement*> h_energy_vs_score_trackster2bestCaloparticle[2];
154  std::vector<dqm::reco::MonitorElement*> h_energy_vs_score_trackster2bestCaloparticle2[2];
155  std::vector<dqm::reco::MonitorElement*> h_energy_vs_score_caloparticle2trackster[2];
156  std::vector<dqm::reco::MonitorElement*> h_energy_vs_score_caloparticle2bestTrackster[2];
157  std::vector<dqm::reco::MonitorElement*> h_energy_vs_score_caloparticle2bestTrackster2[2];
158  std::vector<dqm::reco::MonitorElement*> h_num_trackster_eta[2];
159  std::vector<dqm::reco::MonitorElement*> h_num_trackster_phi[2];
160  std::vector<dqm::reco::MonitorElement*> h_num_trackster_en[2];
161  std::vector<dqm::reco::MonitorElement*> h_num_trackster_pt[2];
162  std::vector<dqm::reco::MonitorElement*> h_numMerge_trackster_eta[2];
163  std::vector<dqm::reco::MonitorElement*> h_numMerge_trackster_phi[2];
164  std::vector<dqm::reco::MonitorElement*> h_numMerge_trackster_en[2];
165  std::vector<dqm::reco::MonitorElement*> h_numMerge_trackster_pt[2];
166  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_trackster2caloparticle[2];
167  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_trackster2bestCaloparticle[2];
168  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_trackster2bestCaloparticle2[2];
169  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2trackster[2];
170  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2trackster_assoc[2];
171  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2trackster_assoc2[2];
172  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_trackster2bestCaloparticle_vs_eta[2];
173  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_trackster2bestCaloparticle_vs_phi[2];
174  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2trackster_assoc_vs_eta[2];
175  std::vector<dqm::reco::MonitorElement*> h_sharedenergy_caloparticle2trackster_assoc_vs_phi[2];
176  std::vector<dqm::reco::MonitorElement*> h_denom_trackster_eta[2];
177  std::vector<dqm::reco::MonitorElement*> h_denom_trackster_phi[2];
178  std::vector<dqm::reco::MonitorElement*> h_denom_trackster_en[2];
179  std::vector<dqm::reco::MonitorElement*> h_denom_trackster_pt[2];
180  std::vector<dqm::reco::MonitorElement*> h_numEff_caloparticle_eta[2];
181  std::vector<dqm::reco::MonitorElement*> h_numEff_caloparticle_phi[2];
182  std::vector<dqm::reco::MonitorElement*> h_numEff_caloparticle_en[2];
183  std::vector<dqm::reco::MonitorElement*> h_numEff_caloparticle_pt[2];
184  std::vector<dqm::reco::MonitorElement*> h_num_caloparticle_eta[2];
185  std::vector<dqm::reco::MonitorElement*> h_num_caloparticle_phi[2];
186  std::vector<dqm::reco::MonitorElement*> h_num_caloparticle_en[2];
187  std::vector<dqm::reco::MonitorElement*> h_num_caloparticle_pt[2];
188  std::vector<dqm::reco::MonitorElement*> h_numDup_trackster_eta[2];
189  std::vector<dqm::reco::MonitorElement*> h_numDup_trackster_phi[2];
190  std::vector<dqm::reco::MonitorElement*> h_numDup_trackster_en[2];
191  std::vector<dqm::reco::MonitorElement*> h_numDup_trackster_pt[2];
192  std::vector<dqm::reco::MonitorElement*> h_denom_caloparticle_eta[2];
193  std::vector<dqm::reco::MonitorElement*> h_denom_caloparticle_phi[2];
194  std::vector<dqm::reco::MonitorElement*> h_denom_caloparticle_en[2];
195  std::vector<dqm::reco::MonitorElement*> h_denom_caloparticle_pt[2];
196  // Generic histograms
197  std::vector<dqm::reco::MonitorElement*> h_tracksternum;
198  std::vector<dqm::reco::MonitorElement*> h_conttracksternum;
199  std::vector<dqm::reco::MonitorElement*> h_nonconttracksternum;
200  std::vector<dqm::reco::MonitorElement*> h_clusternum_in_trackster;
201  std::vector<std::unordered_map<int, dqm::reco::MonitorElement*>> h_clusternum_in_trackster_perlayer;
202  std::vector<dqm::reco::MonitorElement*> h_multiplicityOfLCinTST;
203  std::vector<dqm::reco::MonitorElement*> h_multiplicity_numberOfEventsHistogram;
204  std::vector<dqm::reco::MonitorElement*> h_multiplicity_zminus_numberOfEventsHistogram;
205  std::vector<dqm::reco::MonitorElement*> h_multiplicity_zplus_numberOfEventsHistogram;
206  std::vector<dqm::reco::MonitorElement*> h_multiplicityOfLCinTST_vs_layercluster;
207  std::vector<dqm::reco::MonitorElement*> h_multiplicityOfLCinTST_vs_layercluster_zminus;
208  std::vector<dqm::reco::MonitorElement*> h_multiplicityOfLCinTST_vs_layercluster_zplus;
209  std::vector<dqm::reco::MonitorElement*> h_multiplicityOfLCinTST_vs_layerclusterenergy;
210  std::vector<dqm::reco::MonitorElement*> h_clusternum_in_trackster_vs_layer;
211  std::vector<dqm::reco::MonitorElement*> h_trackster_pt;
212  std::vector<dqm::reco::MonitorElement*> h_trackster_eta;
213  std::vector<dqm::reco::MonitorElement*> h_trackster_phi;
214  std::vector<dqm::reco::MonitorElement*> h_trackster_energy;
215  std::vector<dqm::reco::MonitorElement*> h_trackster_x;
216  std::vector<dqm::reco::MonitorElement*> h_trackster_y;
217  std::vector<dqm::reco::MonitorElement*> h_trackster_z;
218  std::vector<dqm::reco::MonitorElement*> h_trackster_firstlayer;
219  std::vector<dqm::reco::MonitorElement*> h_trackster_lastlayer;
220  std::vector<dqm::reco::MonitorElement*> h_trackster_layersnum;
221 };
222 
224 
226 public:
229 
232 
234 
236  void bookCaloParticleHistos(DQMStore::IBooker& ibook, Histograms& histograms, int pdgid, unsigned int layers);
237 
240  unsigned int layers,
241  std::vector<int> thicknesses);
242 
245  unsigned int layers,
246  std::vector<int> thicknesses);
247 
250  unsigned int layers,
251  std::vector<int> thicknesses,
252  std::string pathtomatbudfile);
253 
255 
258  unsigned int layers,
259  std::vector<int> thicknesses);
260 
264 
268  edm::Handle<std::vector<CaloParticle>> caloParticleHandle,
269  std::vector<CaloParticle> const& cP,
270  std::vector<size_t> const& cPIndices,
271  std::vector<size_t> const& cPSelectedIndices,
272  std::unordered_map<DetId, const unsigned int> const&,
273  unsigned int layers,
274  const ticl::RecoToSimCollection& recSimColl,
275  const ticl::SimToRecoCollection& simRecColl,
276  std::vector<HGCRecHit> const& hits) const;
278  const int count,
281  edm::Handle<std::vector<SimCluster>> simClusterHandle,
282  std::vector<SimCluster> const& simClusters,
283  std::vector<size_t> const& sCIndices,
284  const std::vector<float>& mask,
285  std::unordered_map<DetId, const unsigned int> const&,
286  unsigned int layers,
289  std::vector<HGCRecHit> const& hits) const;
291  const int count,
292  const ticl::TracksterCollection& Tracksters,
294  const ticl::TracksterCollection& simTS,
295  const validationType valType,
296  const ticl::TracksterCollection& simTS_fromCP,
297  std::map<uint, std::vector<uint>> const& simTrackstersMap,
298  std::vector<SimCluster> const& sC,
299  const edm::ProductID& cPHandle_id,
300  std::vector<CaloParticle> const& cP,
301  std::vector<size_t> const& cPIndices,
302  std::vector<size_t> const& cPSelectedIndices,
303  std::unordered_map<DetId, const unsigned int> const&,
304  unsigned int layers,
305  std::vector<HGCRecHit> const& hits) const;
306  void fill_info_histos(const Histograms& histograms, unsigned int layers) const;
308  int pdgid,
309  const CaloParticle& caloparticle,
310  std::vector<SimVertex> const& simVertices,
311  unsigned int layers,
312  std::unordered_map<DetId, const unsigned int> const&,
313  std::vector<HGCRecHit> const& hits) const;
315  const int count,
318  edm::Handle<std::vector<CaloParticle>> caloParticleHandle,
319  std::vector<CaloParticle> const& cP,
320  std::vector<size_t> const& cPIndices,
321  std::vector<size_t> const& cPSelectedIndices,
322  std::unordered_map<DetId, const unsigned int> const&,
323  std::map<double, double> cummatbudg,
324  unsigned int layers,
325  std::vector<int> thicknesses,
326  const ticl::RecoToSimCollection& recSimColl,
327  const ticl::SimToRecoCollection& simRecColl,
328  std::vector<HGCRecHit> const& hits) const;
330  std::vector<SimCluster> const& simClusters,
331  unsigned int layers,
332  std::vector<int> thicknesses) const;
334  const int count,
337  edm::Handle<std::vector<SimCluster>> simClusterHandle,
338  std::vector<SimCluster> const& simClusters,
339  std::vector<size_t> const& sCIndices,
340  const std::vector<float>& mask,
341  std::unordered_map<DetId, const unsigned int> const& hitMap,
342  unsigned int layers,
345  std::vector<HGCRecHit> const& hits) const;
346  void fill_cluster_histos(const Histograms& histograms, const int count, const reco::CaloCluster& cluster) const;
348  const int count,
349  const ticl::TracksterCollection& Tracksters,
351  const ticl::TracksterCollection& simTS,
352  const ticl::TracksterCollection& simTS_fromCP,
353  std::map<uint, std::vector<uint>> const& simTrackstersMap,
354  std::vector<SimCluster> const& sC,
355  const edm::ProductID& cPHandle_id,
356  std::vector<CaloParticle> const& cP,
357  std::vector<size_t> const& cPIndices,
358  std::vector<size_t> const& cPSelectedIndices,
359  std::unordered_map<DetId, const unsigned int> const&,
360  unsigned int layers,
361  std::vector<HGCRecHit> const& hits) const;
362  double distance2(const double x1, const double y1, const double x2, const double y2) const;
363  double distance(const double x1, const double y1, const double x2, const double y2) const;
364 
365  void setRecHitTools(std::shared_ptr<hgcal::RecHitTools> recHitTools);
366 
367  DetId findmaxhit(const reco::CaloCluster& cluster,
368  std::unordered_map<DetId, const unsigned int> const&,
369  std::vector<HGCRecHit> const& hits) const;
370 
372  bool operator==(const detIdInfoInCluster& o) const { return clusterId == o.clusterId; };
373  long unsigned int clusterId;
374  float fraction;
375  };
376 
378  bool operator==(const detIdInfoInTrackster& o) const { return tracksterId == o.tracksterId; };
379  unsigned int tracksterId;
380  long unsigned int clusterId;
381  float fraction;
382  };
383 
385  unsigned int caloParticleId;
386  float energy = 0;
387  std::vector<std::pair<DetId, float>> hits_and_fractions;
388  std::unordered_map<unsigned int, std::pair<float, float>> layerClusterIdToEnergyAndScore;
389  };
390 
391 private:
392  double getEta(double eta) const;
393 
394  std::shared_ptr<hgcal::RecHitTools> recHitTools_;
395 
396  //private data members
397  double minEta_, maxEta_;
398  int nintEta_;
400  double minEne_, maxEne_;
401  int nintEne_;
402  double minPt_, maxPt_;
403  int nintPt_;
404  double minPhi_, maxPhi_;
405  int nintPhi_;
461  double minX_, maxX_;
462  int nintX_;
463  double minY_, maxY_;
464  int nintY_;
465  double minZ_, maxZ_;
466  int nintZ_;
467 };
468 
469 #endif
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numDup_simcluster_eta_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numMerge_layercl_in_simcl_eta_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_layercl2simcluster_vs_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_longdepthbarycentre_zplus
std::vector< dqm::reco::MonitorElement * > h_num_trackster_pt[2]
dqm::legacy::MonitorElement MonitorElement
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_firstlayer
void fill_caloparticle_histos(const Histograms &histograms, int pdgid, const CaloParticle &caloparticle, std::vector< SimVertex > const &simVertices, unsigned int layers, std::unordered_map< DetId, const unsigned int > const &, std::vector< HGCRecHit > const &hits) const
std::vector< dqm::reco::MonitorElement * > h_score_trackster2bestCaloparticle2[2]
dqm::legacy::DQMStore DQMStore
std::vector< dqm::reco::MonitorElement * > h_energyclustered_zminus
dqm::reco::MonitorElement * lastLayerEEzm
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numDup_simcluster_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_num_trackster_en[2]
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layerclusterenergy
std::unordered_map< int, dqm::reco::MonitorElement * > h_clusternum_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_simcluster2layercl_vs_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_numEff_caloparticle_phi[2]
std::vector< dqm::reco::MonitorElement * > h_tracksternum
std::vector< dqm::reco::MonitorElement * > h_numMerge_trackster_pt[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_caloparticle_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layercluster
std::vector< dqm::reco::MonitorElement * > h_trackster_x
std::vector< dqm::reco::MonitorElement * > h_trackster_eta
std::vector< dqm::reco::MonitorElement * > h_numDup_trackster_en[2]
std::vector< dqm::reco::MonitorElement * > h_trackster_phi
void layerClusters_to_CaloParticles(const Histograms &histograms, edm::Handle< reco::CaloClusterCollection > clusterHandle, const reco::CaloClusterCollection &clusters, edm::Handle< std::vector< CaloParticle >> caloParticleHandle, std::vector< CaloParticle > const &cP, std::vector< size_t > const &cPIndices, std::vector< size_t > const &cPSelectedIndices, std::unordered_map< DetId, const unsigned int > const &, unsigned int layers, const ticl::RecoToSimCollection &recSimColl, const ticl::SimToRecoCollection &simRecColl, std::vector< HGCRecHit > const &hits) const
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_phi[2]
void tracksters_to_SimTracksters(const Histograms &histograms, const int count, const ticl::TracksterCollection &Tracksters, const reco::CaloClusterCollection &layerClusters, const ticl::TracksterCollection &simTS, const validationType valType, const ticl::TracksterCollection &simTS_fromCP, std::map< uint, std::vector< uint >> const &simTrackstersMap, std::vector< SimCluster > const &sC, const edm::ProductID &cPHandle_id, std::vector< CaloParticle > const &cP, std::vector< size_t > const &cPIndices, std::vector< size_t > const &cPSelectedIndices, std::unordered_map< DetId, const unsigned int > const &, unsigned int layers, std::vector< HGCRecHit > const &hits) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_energy_vs_score_layercl2caloparticle_perlayer
std::vector< dqm::reco::MonitorElement * > h_scorePur_caloparticle2trackster[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_simclusternum_perlayer
void bookTracksterHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers)
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetomaxcell_perthickperlayer_eneweighted
std::vector< dqm::reco::MonitorElement * > h_denom_trackster_en[2]
std::vector< dqm::reco::MonitorElement * > h_multiplicity_zplus_numberOfEventsHistogram
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_energy
dqm::reco::MonitorElement * maxlayerzp
void setRecHitTools(std::shared_ptr< hgcal::RecHitTools > recHitTools)
std::vector< dqm::reco::MonitorElement * > h_multiplicity_numberOfEventsHistogram
std::vector< dqm::reco::MonitorElement * > h_clusternum_in_trackster
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_layercl_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_mixedhitscluster_zplus
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_caloparticle_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2bestCaloparticle[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_perlayer
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_en[2]
std::vector< dqm::reco::MonitorElement * > h_multiplicity_zminus_numberOfEventsHistogram
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_vs_eta_perlayer
void fill_info_histos(const Histograms &histograms, unsigned int layers) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_energy_vs_score_caloparticle2layercl_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_layercl_in_simcl_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST
bool operator==(const detIdInfoInTrackster &o) const
dqm::reco::MonitorElement * h_mixedhitssimcluster_zminus
void bookClusterHistos_LCtoCP_association(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers)
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_trackster2bestCaloparticle2[2]
HGVHistoProducerAlgoHistograms Histograms
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_vs_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_simclusternum_perthick
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_pt
std::unordered_map< int, dqm::reco::MonitorElement * > h_numDup_caloparticle_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_cellsenedens_perthick
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHits_matched_energy_layer_1SimCl
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_vs_phi_perlayer
dqm::reco::MonitorElement * h_mixedhitssimcluster_zplus
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_pt[2]
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_score_simcluster2layercl_perlayer
std::vector< dqm::reco::MonitorElement * > h_cluster_eta
void bookInfo(DQMStore::IBooker &ibook, Histograms &histograms)
std::vector< dqm::reco::MonitorElement * > h_num_trackster_eta[2]
std::vector< dqm::reco::MonitorElement * > h_energyclustered_zplus
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_simcluster_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_score_caloparticle2trackster[2]
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_cellsnum_perthickperlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHits_matched_energy_layer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_fractions_weight
std::map< DetId, float > Density
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_layercl2simcluster_vs_phi_perlayer
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancebetseedandmaxcell_perthickperlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_lastlayer_matchedtoRecHit
std::vector< dqm::reco::MonitorElement * > h_nonconttracksternum
void bookSimClusterAssociationHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses)
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_en[2]
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_eta[2]
std::vector< dqm::reco::MonitorElement * > h_longdepthbarycentre_zminus
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancebetseedandmaxcellvsclusterenergy_perthickperlayer
void bookSimClusterHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses)
std::unordered_map< int, dqm::reco::MonitorElement * > h_energyclustered_perlayer
void fill_cluster_histos(const Histograms &histograms, const int count, const reco::CaloCluster &cluster) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_layersnum
std::vector< dqm::reco::MonitorElement * > h_mixedhitscluster_zminus
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_energy_vs_score_simcluster2layercl_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_energy_vs_score_layercl2simcluster_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_clusternum_perthick
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_layercl_in_simcl_phi_perlayer
void fill_trackster_histos(const Histograms &histograms, const int count, const ticl::TracksterCollection &Tracksters, const reco::CaloClusterCollection &layerClusters, const ticl::TracksterCollection &simTS, const ticl::TracksterCollection &simTS_fromCP, std::map< uint, std::vector< uint >> const &simTrackstersMap, std::vector< SimCluster > const &sC, const edm::ProductID &cPHandle_id, std::vector< CaloParticle > const &cP, std::vector< size_t > const &cPIndices, std::vector< size_t > const &cPSelectedIndices, std::unordered_map< DetId, const unsigned int > const &, unsigned int layers, std::vector< HGCRecHit > const &hits) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_phi
std::vector< dqm::reco::MonitorElement * > h_numEff_caloparticle_eta[2]
std::vector< dqm::reco::MonitorElement * > h_clusternum_in_trackster_vs_layer
double distance2(const double x1, const double y1, const double x2, const double y2) const
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_layercl_in_simcl_eta_perlayer
std::vector< std::pair< DetId, float > > hits_and_fractions
dqm::reco::MonitorElement * maxlayerzm
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_layercl_in_simcl_phi_perlayer
std::vector< CaloCluster > CaloClusterCollection
collection of CaloCluster objects
void bookCaloParticleHistos(DQMStore::IBooker &ibook, Histograms &histograms, int pdgid, unsigned int layers)
std::vector< dqm::reco::MonitorElement * > h_denom_trackster_phi[2]
std::vector< dqm::reco::MonitorElement * > h_numDup_trackster_eta[2]
bool operator==(const detIdInfoInCluster &o) const
void bookTracksterSTSHistos(DQMStore::IBooker &ibook, Histograms &histograms, const validationType valType)
dqm::reco::MonitorElement * lastLayerEEzp
std::vector< dqm::reco::MonitorElement * > h_trackster_lastlayer
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetomaxcell_perthickperlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_layercl_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layercluster_zplus
std::vector< dqm::reco::MonitorElement * > h_denom_trackster_pt[2]
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster_assoc[2]
double getEta(double eta) const
std::vector< dqm::reco::MonitorElement * > h_numMerge_trackster_phi[2]
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layercluster_zminus
std::vector< dqm::reco::MonitorElement * > h_numMerge_trackster_en[2]
std::vector< dqm::reco::MonitorElement * > h_score_trackster2caloparticle[2]
std::vector< dqm::reco::MonitorElement * > h_numDup_trackster_pt[2]
Definition: DetId.h:17
std::vector< dqm::reco::MonitorElement * > h_trackster_z
void layerClusters_to_SimClusters(const Histograms &histograms, const int count, edm::Handle< reco::CaloClusterCollection > clusterHandle, const reco::CaloClusterCollection &clusters, edm::Handle< std::vector< SimCluster >> simClusterHandle, std::vector< SimCluster > const &simClusters, std::vector< size_t > const &sCIndices, const std::vector< float > &mask, std::unordered_map< DetId, const unsigned int > const &, unsigned int layers, const ticl::RecoToSimCollectionWithSimClusters &recSimColl, const ticl::SimToRecoCollectionWithSimClusters &simRecColl, std::vector< HGCRecHit > const &hits) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_energyDifference
std::unordered_map< int, dqm::reco::MonitorElement * > h_numDup_caloparticle_phi_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_simcluster_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_layercl_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_caloparticle2bestTrackster[2]
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_phi[2]
std::shared_ptr< hgcal::RecHitTools > recHitTools_
std::vector< dqm::reco::MonitorElement * > h_denom_trackster_eta[2]
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_caloparticle2trackster[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_caloparticle_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster_assoc_vs_phi[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHitsInSimClusters_matchedtoRecHit
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_eta_Zorigin
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2bestCaloparticle2[2]
std::vector< dqm::reco::MonitorElement * > h_num_trackster_phi[2]
std::vector< dqm::reco::MonitorElement * > h_conttracksternum
void bookClusterHistos_ClusterLevel(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses, std::string pathtomatbudfile)
dqm::reco::MonitorElement * lastLayerFHzm
dqm::reco::MonitorElement * lastLayerFHzp
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_firstlayer_matchedtoRecHit
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster_assoc_vs_eta[2]
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetoseedcell_perthickperlayer_eneweighted
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_selfenergy
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster_assoc2[2]
std::vector< dqm::reco::MonitorElement * > h_trackster_energy
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numMerge_layercl_in_simcl_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_trackster2bestCaloparticle[2]
std::vector< dqm::reco::MonitorElement * > h_numDup_trackster_phi[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_caloparticle_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_numMerge_trackster_eta[2]
std::vector< dqm::reco::MonitorElement * > h_numEff_caloparticle_en[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_vs_eta_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_simcluster2layercl_vs_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_eta[2]
std::vector< dqm::reco::MonitorElement * > h_trackster_firstlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nSimClusters
std::vector< dqm::reco::MonitorElement * > h_trackster_layersnum
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_trackster2caloparticle[2]
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2bestCaloparticle_vs_eta[2]
std::vector< Trackster > TracksterCollection
Definition: Trackster.h:254
std::vector< dqm::reco::MonitorElement * > h_numEff_caloparticle_pt[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_lastlayer
void fill_simClusterAssociation_histos(const Histograms &histograms, const int count, edm::Handle< reco::CaloClusterCollection > clusterHandle, const reco::CaloClusterCollection &clusters, edm::Handle< std::vector< SimCluster >> simClusterHandle, std::vector< SimCluster > const &simClusters, std::vector< size_t > const &sCIndices, const std::vector< float > &mask, std::unordered_map< DetId, const unsigned int > const &hitMap, unsigned int layers, const ticl::RecoToSimCollectionWithSimClusters &recSimColl, const ticl::SimToRecoCollectionWithSimClusters &simRecColl, std::vector< HGCRecHit > const &hits) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_cellAssociation_perlayer
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_caloparticle2bestTrackster2[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHitsInSimClusters
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetoseedcell_perthickperlayer
std::vector< dqm::reco::MonitorElement * > h_score_trackster2bestCaloparticle[2]
void bookClusterHistos_CellLevel(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses)
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_layersnum_matchedtoRecHit
double distance(const double x1, const double y1, const double x2, const double y2) const
std::vector< dqm::reco::MonitorElement * > h_trackster_y
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_layercl_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_eta
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2caloparticle[2]
void fill_generic_cluster_histos(const Histograms &histograms, const int count, edm::Handle< reco::CaloClusterCollection > clusterHandle, const reco::CaloClusterCollection &clusters, edm::Handle< std::vector< CaloParticle >> caloParticleHandle, std::vector< CaloParticle > const &cP, std::vector< size_t > const &cPIndices, std::vector< size_t > const &cPSelectedIndices, std::unordered_map< DetId, const unsigned int > const &, std::map< double, double > cummatbudg, unsigned int layers, std::vector< int > thicknesses, const ticl::RecoToSimCollection &recSimColl, const ticl::SimToRecoCollection &simRecColl, std::vector< HGCRecHit > const &hits) const
std::unordered_map< unsigned int, std::pair< float, float > > layerClusterIdToEnergyAndScore
DetId findmaxhit(const reco::CaloCluster &cluster, std::unordered_map< DetId, const unsigned int > const &, std::vector< HGCRecHit > const &hits) const
hgcal_clustering::Density Density
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_sum_energy_layer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_clusternum_in_trackster_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHits_matched_energy
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_simcluster2layercl_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_layercl2simcluster_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_score_layercl2caloparticle_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_score_caloparticle2layercl_perlayer
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_pt[2]
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_score_layercl2simcluster_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_simcluster_eta_perlayer
void fill_simCluster_histos(const Histograms &histograms, std::vector< SimCluster > const &simClusters, unsigned int layers, std::vector< int > thicknesses) const
HGVHistoProducerAlgo(const edm::ParameterSet &pset)
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_simcluster_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_numMerge_layercl_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_fractions
std::vector< dqm::reco::MonitorElement * > h_scoreDupl_caloparticle2trackster[2]
std::unordered_map< int, dqm::reco::MonitorElement * > h_numMerge_layercl_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_trackster_pt
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2bestCaloparticle_vs_phi[2]