|
|
Go to the documentation of this file. 1 #ifndef Validation_HGCalValidation_HGVHistoProducerAlgo_h
2 #define Validation_HGCalValidation_HGVHistoProducerAlgo_h
10 #include <unordered_map>
88 std::unordered_map<std::string, dqm::reco::MonitorElement*>
211 std::vector<int> thicknesses);
216 std::vector<int> thicknesses);
221 std::vector<int> thicknesses,
229 std::vector<int> thicknesses);
236 edm::Handle<std::vector<CaloParticle>> caloParticleHandle,
237 std::vector<CaloParticle>
const& cP,
238 std::vector<size_t>
const& cPIndices,
239 std::vector<size_t>
const& cPSelectedIndices,
240 std::unordered_map<DetId, const HGCRecHit*>
const&,
248 edm::Handle<std::vector<SimCluster>> simClusterHandle,
249 std::vector<SimCluster>
const& simClusters,
250 std::vector<size_t>
const& sCIndices,
251 const std::vector<float>& mask,
252 std::unordered_map<DetId, const HGCRecHit*>
const&,
260 std::vector<CaloParticle>
const& cP,
261 std::vector<size_t>
const& cPIndices,
262 std::vector<size_t>
const& cPSelectedIndices,
263 std::unordered_map<DetId, const HGCRecHit*>
const&,
264 unsigned int layers)
const;
271 std::unordered_map<DetId, const HGCRecHit*>
const&)
const;
277 edm::Handle<std::vector<CaloParticle>> caloParticleHandle,
278 std::vector<CaloParticle>
const& cP,
279 std::vector<size_t>
const& cPIndices,
280 std::vector<size_t>
const& cPSelectedIndices,
281 std::unordered_map<DetId, const HGCRecHit*>
const&,
282 std::map<double, double> cummatbudg,
284 std::vector<int> thicknesses,
288 std::vector<SimCluster>
const& simClusters,
290 std::vector<int> thicknesses)
const;
295 edm::Handle<std::vector<SimCluster>> simClusterHandle,
296 std::vector<SimCluster>
const& simClusters,
297 std::vector<size_t>
const& sCIndices,
298 const std::vector<float>& mask,
299 std::unordered_map<DetId, const HGCRecHit*>
const& hitMap,
308 std::vector<CaloParticle>
const& cP,
309 std::vector<size_t>
const& cPIndices,
310 std::vector<size_t>
const& cPSelectedIndices,
311 std::unordered_map<DetId, const HGCRecHit*>
const&,
312 unsigned int layers)
const;
313 double distance2(
const double x1,
const double y1,
const double x2,
const double y2)
const;
314 double distance(
const double x1,
const double y1,
const double x2,
const double y2)
const;
316 void setRecHitTools(std::shared_ptr<hgcal::RecHitTools> recHitTools);
std::vector< dqm::reco::MonitorElement * > h_energyclustered_zplus
void bookSimClusterAssociationHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses)
std::vector< dqm::reco::MonitorElement * > h_mixedhitscluster_zplus
double minTotNsimClsperthick_
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_eta
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_energyDifference
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_score_layercl2simcluster_perlayer
void bookInfo(DQMStore::IBooker &ibook, Histograms &histograms)
std::vector< dqm::reco::MonitorElement * > h_clusternum_in_trackster_vs_layer
double maxTSTSharedEneFrac_
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetoseedcell_perthickperlayer
std::vector< dqm::reco::MonitorElement * > h_numDup_trackster_eta
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_caloparticle_eta_perlayer
int nintTotNcellsperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_firstlayer
unsigned int caloParticleId
double maxClEnepermultiplicity_
std::vector< dqm::reco::MonitorElement * > h_trackster_lastlayer
int nintDisSeedToMaxperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_perlayer
double minMixedHitsCluster_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHitsInSimClusters
void bookClusterHistos_ClusterLevel(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses, std::string pathtomatbudfile)
std::vector< dqm::reco::MonitorElement * > h_longdepthbarycentre_zplus
std::unordered_map< int, dqm::reco::MonitorElement * > h_energy_vs_score_caloparticle2layercl_perlayer
int nintTotNClsinTSTsperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHits_matched_energy_layer
double maxMixedHitsCluster_
std::vector< dqm::reco::MonitorElement * > h_mixedhitscluster_zminus
int nintClEnepermultiplicity_
double minTSTSharedEneFracEfficiency_
void fill_generic_cluster_histos(const Histograms &histograms, int count, edm::Handle< reco::CaloClusterCollection > clusterHandle, const reco::CaloClusterCollection &clusters, const Density &densities, 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 HGCRecHit * > const &, std::map< double, double > cummatbudg, unsigned int layers, std::vector< int > thicknesses, const hgcal::RecoToSimCollection &recSimColl, const hgcal::SimToRecoCollection &simRecColl) const
void bookCaloParticleHistos(DQMStore::IBooker &ibook, Histograms &histograms, int pdgid, unsigned int layers)
std::vector< std::pair< DetId, float > > hits_and_fractions
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2caloparticle
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_energy_vs_score_layercl2simcluster_perlayer
std::vector< dqm::reco::MonitorElement * > h_denom_trackster_phi
double minDisToMaxperthickperlayer_
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numMerge_layercl_in_simcl_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_numMerge_layercl_phi_perlayer
void tracksters_to_CaloParticles(const Histograms &histograms, int count, const ticl::TracksterCollection &Tracksters, const reco::CaloClusterCollection &layerClusters, std::vector< CaloParticle > const &cP, std::vector< size_t > const &cPIndices, std::vector< size_t > const &cPSelectedIndices, std::unordered_map< DetId, const HGCRecHit * > const &, unsigned int layers) const
double maxTotNsimClsperlay_
std::unordered_map< int, dqm::reco::MonitorElement * > h_numDup_caloparticle_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHitsInSimClusters_matchedtoRecHit
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_layersnum
void bookClusterHistos_LCtoCP_association(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers)
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_eta_Zorigin
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 HGCRecHit * > const &, unsigned int layers, const hgcal::RecoToSimCollection &recSimColl, const hgcal::SimToRecoCollection &simRecColl) const
std::vector< dqm::reco::MonitorElement * > h_trackster_layersnum
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancebetseedandmaxcellvsclusterenergy_perthickperlayer
dqm::reco::MonitorElement * maxlayerzm
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_phi
double maxTotNClsperthick_
std::vector< dqm::reco::MonitorElement * > h_score_trackster2caloparticle
std::unordered_map< int, dqm::reco::MonitorElement * > h_cellsenedens_perthick
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster_vs_phi
HGVHistoProducerAlgo(const edm::ParameterSet &pset)
std::vector< dqm::reco::MonitorElement * > h_numDup_trackster_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_caloparticle_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_selfenergy
double minTotNClsinTSTsperlayer_
dqm::reco::MonitorElement * lastLayerFHzm
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_pt
int nintTotNsimClsperthick_
dqm::reco::MonitorElement * lastLayerFHzp
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layercluster_zplus
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nSimClusters
std::vector< dqm::reco::MonitorElement * > h_num_trackster_eta
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numDup_simcluster_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_eta
std::unordered_map< int, dqm::reco::MonitorElement * > h_score_layercl2caloparticle_perlayer
std::vector< dqm::reco::MonitorElement * > h_trackster_pt
int nintTotNsimClsperlay_
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_layercl2simcluster_vs_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_trackster_phi
void fill_simCluster_histos(const Histograms &histograms, std::vector< SimCluster > const &simClusters, unsigned int layers, std::vector< int > thicknesses) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_lastlayer
int nintTSTSharedEneFrac_
int nintDisToMaxperthickperlayerenewei_
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 HGCRecHit * > const &) const
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_layercl2simcluster_perlayer
dqm::reco::MonitorElement * lastLayerEEzm
double maxTotNClsinTSTsperlayer_
double minTotNsimClsperlay_
double maxDisToMaxperthickperlayerenewei_
std::unordered_map< int, dqm::reco::MonitorElement * > h_clusternum_perlayer
void setRecHitTools(std::shared_ptr< hgcal::RecHitTools > recHitTools)
std::vector< dqm::reco::MonitorElement * > h_trackster_firstlayer
std::vector< dqm::reco::MonitorElement * > h_conttracksternum
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_layercl_in_simcl_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_layercl_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_numDup_caloparticle_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_vs_eta_perlayer
dqm::legacy::MonitorElement MonitorElement
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layerclusterenergy
long unsigned int clusterId
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster_vs_eta
int nintDisToSeedperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_perlayer
std::vector< dqm::reco::MonitorElement * > h_trackster_z
std::map< DetId, float > Density
double minMixedHitsSimCluster_
double maxTotNsimClsperthick_
std::unordered_map< int, dqm::reco::MonitorElement * > h_numMerge_layercl_eta_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_simcluster_phi_perlayer
std::vector< CaloCluster > CaloClusterCollection
collection of CaloCluster objects
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_simcluster_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_cellAssociation_perlayer
int nintMixedHitsSimCluster_
std::vector< dqm::reco::MonitorElement * > h_multiplicity_zplus_numberOfEventsHistogram
double maxDisToSeedperthickperlayerenewei_
std::vector< dqm::reco::MonitorElement * > h_tracksternum
std::vector< dqm::reco::MonitorElement * > h_trackster_eta
std::vector< dqm::reco::MonitorElement * > h_numMerge_trackster_phi
dqm::legacy::DQMStore DQMStore
double getEta(double eta) const
double minClEneperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_firstlayer_matchedtoRecHit
double minClEnepermultiplicity_
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layercluster_zminus
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numMerge_layercl_in_simcl_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_layercl_phi_perlayer
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetomaxcell_perthickperlayer_eneweighted
void fill_cluster_histos(const Histograms &histograms, int count, const reco::CaloCluster &cluster) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_simclusternum_perlayer
double maxDisToSeedperthickperlayer_
std::shared_ptr< hgcal::RecHitTools > recHitTools_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHits_matched_energy
std::unordered_map< int, dqm::reco::MonitorElement * > h_score_caloparticle2layercl_perlayer
double minDisToSeedperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_caloparticle_phi_perlayer
dqm::reco::MonitorElement * maxlayerzp
double distance(const double x1, const double y1, const double x2, const double y2) const
int nintCellsEneDensperthick_
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2caloparticle_vs_eta
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_layercl2simcluster_vs_phi_perlayer
double maxClEneperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_caloparticle_eta_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_clusternum_in_trackster_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_vs_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_layersnum_matchedtoRecHit
bool operator==(const detIdInfoInTrackster &o) const
std::vector< dqm::reco::MonitorElement * > h_trackster_x
std::vector< dqm::reco::MonitorElement * > h_trackster_energy
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_nHits_matched_energy_layer_1SimCl
std::vector< dqm::reco::MonitorElement * > h_multiplicity_zminus_numberOfEventsHistogram
std::vector< dqm::reco::MonitorElement * > h_num_trackster_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_sum_energy_layer
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_numDup_simcluster_phi_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_simcluster_eta_perlayer
int nintClEneperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_longdepthbarycentre_zminus
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_layercl_phi_perlayer
void fill_simClusterAssociation_histos(const Histograms &histograms, 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 HGCRecHit * > const &hitMap, unsigned int layers, const hgcal::RecoToSimCollectionWithSimClusters &recSimColl, const hgcal::SimToRecoCollectionWithSimClusters &simRecColl) const
dqm::reco::MonitorElement * h_mixedhitssimcluster_zminus
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_eta
long unsigned int clusterId
std::vector< dqm::reco::MonitorElement * > h_numEff_caloparticle_phi
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster
std::vector< dqm::reco::MonitorElement * > h_score_caloparticle2trackster
std::vector< dqm::reco::MonitorElement * > h_energyclustered_zminus
std::unordered_map< int, dqm::reco::MonitorElement * > h_simclusternum_perthick
int nintDisToMaxperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_caloparticle2trackster
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_layercl_in_simcl_eta_perlayer
int nintMixedHitsCluster_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_energy
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_simcluster_eta_perlayer
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinTST_vs_layercluster
void bookTracksterHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers)
void fill_trackster_histos(const Histograms &histograms, int count, const ticl::TracksterCollection &Tracksters, const reco::CaloClusterCollection &layerClusters, std::vector< CaloParticle > const &cP, std::vector< size_t > const &cPIndices, std::vector< size_t > const &cPSelectedIndices, std::unordered_map< DetId, const HGCRecHit * > const &, unsigned int layers) const
double maxTotNcellsperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_clusternum_in_trackster
double maxDisSeedToMaxperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_energy_vs_score_layercl2caloparticle_perlayer
std::vector< Trackster > TracksterCollection
double maxCellsEneDensperthick_
dqm::reco::MonitorElement * lastLayerEEzp
std::vector< dqm::reco::MonitorElement * > h_nonconttracksternum
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancebetseedandmaxcell_perthickperlayer
std::vector< dqm::reco::MonitorElement * > h_cluster_eta
double minDisToMaxperthickperlayerenewei_
std::vector< dqm::reco::MonitorElement * > h_denom_trackster_eta
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2trackster_assoc
double minCellsEneDensperthick_
std::unordered_map< int, std::pair< float, float > > layerClusterIdToEnergyAndScore
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_score_simcluster2layercl_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_num_layercl_in_simcl_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_numMerge_trackster_eta
std::vector< dqm::reco::MonitorElement * > h_trackster_y
std::unordered_map< int, dqm::reco::MonitorElement * > h_clusternum_perthick
DetId findmaxhit(const reco::CaloCluster &cluster, std::unordered_map< DetId, const HGCRecHit * > const &) const
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_energy_vs_score_simcluster2layercl_perlayer
void layerClusters_to_SimClusters(const Histograms &histograms, 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 HGCRecHit * > const &, unsigned int layers, const hgcal::RecoToSimCollectionWithSimClusters &recSimColl, const hgcal::SimToRecoCollectionWithSimClusters &simRecColl) const
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_vs_phi_perlayer
double minTotNcellsperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_trackster2caloparticle_vs_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_vs_eta_perlayer
double distance2(const double x1, const double y1, const double x2, const double y2) const
std::vector< dqm::reco::MonitorElement * > h_numEff_caloparticle_eta
double maxDisToMaxperthickperlayer_
dqm::reco::MonitorElement * h_mixedhitssimcluster_zplus
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_denom_layercl_in_simcl_phi_perlayer
void fill_info_histos(const Histograms &histograms, unsigned int layers) const
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_simcluster2layercl_vs_eta_perlayer
void bookSimClusterHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses)
int nintDisToSeedperthickperlayerenewei_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_lastlayer_matchedtoRecHit
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetoseedcell_perthickperlayer_eneweighted
std::vector< dqm::reco::MonitorElement * > h_multiplicity_numberOfEventsHistogram
std::unordered_map< int, dqm::reco::MonitorElement * > h_energyclustered_perlayer
double minTSTSharedEneFrac_
double minTotNClsperthick_
void bookClusterHistos_CellLevel(DQMStore::IBooker &ibook, Histograms &histograms, unsigned int layers, std::vector< int > thicknesses)
double maxMixedHitsSimCluster_
double minDisSeedToMaxperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_trackster2caloparticle
double minDisToSeedperthickperlayerenewei_
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_simcluster2layercl_perlayer
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_sharedenergy_simcluster2layercl_vs_phi_perlayer
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetomaxcell_perthickperlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_layercl_eta_perlayer
bool operator==(const detIdInfoInCluster &o) const
hgcal_clustering::Density Density
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_cellsnum_perthickperlayer