|
|
Go to the documentation of this file. 1 #ifndef Validation_HGCalValidation_HGVHistoProducerAlgo_h
2 #define Validation_HGCalValidation_HGVHistoProducerAlgo_h
10 #include <unordered_map>
87 std::unordered_map<std::string, dqm::reco::MonitorElement*>
163 std::vector<int> thicknesses,
170 edm::Handle<std::vector<CaloParticle>> caloParticleHandle,
171 std::vector<CaloParticle>
const& cP,
172 std::vector<size_t>
const& cPIndices,
173 std::vector<size_t>
const& cPSelectedIndices,
174 std::unordered_map<DetId, const HGCRecHit*>
const&,
179 const std::vector<reco::HGCalMultiCluster>& multiClusters,
180 std::vector<CaloParticle>
const& cP,
181 std::vector<size_t>
const& cPIndices,
182 std::vector<size_t>
const& cPSelectedIndices,
183 std::unordered_map<DetId, const HGCRecHit*>
const&,
197 edm::Handle<std::vector<CaloParticle>> caloParticleHandle,
198 std::vector<CaloParticle>
const& cP,
199 std::vector<size_t>
const& cPIndices,
200 std::vector<size_t>
const& cPSelectedIndices,
201 std::unordered_map<DetId, const HGCRecHit*>
const&,
202 std::map<double, double> cummatbudg,
204 std::vector<int> thicknesses,
208 const std::vector<reco::HGCalMultiCluster>& multiClusters,
209 std::vector<CaloParticle>
const& cP,
210 std::vector<size_t>
const& cPIndices,
211 std::vector<size_t>
const& cPSelectedIndices,
212 std::unordered_map<DetId, const HGCRecHit*>
const&,
214 double distance2(
const double x1,
const double y1,
const double x2,
const double y2)
const;
215 double distance(
const double x1,
const double y1,
const double x2,
const double y2)
const;
217 void setRecHitTools(std::shared_ptr<hgcal::RecHitTools> recHitTools);
std::vector< dqm::reco::MonitorElement * > h_energyclustered_zplus
std::vector< dqm::reco::MonitorElement * > h_mixedhitscluster_zplus
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_eta
std::vector< dqm::reco::MonitorElement * > h_denom_caloparticle_phi
std::vector< dqm::reco::MonitorElement * > h_clusternum_in_multicluster
void bookInfo(DQMStore::IBooker &ibook, Histograms &histograms)
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancetoseedcell_perthickperlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_caloparticle_eta_perlayer
int nintTotNcellsperthickperlayer_
void bookMultiClusterHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned layers)
unsigned int caloParticleId
double maxClEnepermultiplicity_
bool operator==(const detIdInfoInMultiCluster &o) const
int nintDisSeedToMaxperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_perlayer
double minMixedHitsCluster_
std::vector< dqm::reco::MonitorElement * > h_longdepthbarycentre_zplus
std::unordered_map< int, dqm::reco::MonitorElement * > h_energy_vs_score_caloparticle2layercl_perlayer
void fill_caloparticle_histos(const Histograms &histograms, int pdgid, const CaloParticle &caloparticle, std::vector< SimVertex > const &simVertices) const
double maxMixedHitsCluster_
std::vector< dqm::reco::MonitorElement * > h_mixedhitscluster_zminus
std::vector< dqm::reco::MonitorElement * > h_numMerge_multicl_phi
int nintClEnepermultiplicity_
std::vector< std::pair< DetId, float > > hits_and_fractions
double minDisToMaxperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_numMerge_layercl_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_multicluster_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_numDup_caloparticle_phi_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_eta_Zorigin
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_distancebetseedandmaxcellvsclusterenergy_perthickperlayer
dqm::reco::MonitorElement * maxlayerzm
std::vector< dqm::reco::MonitorElement * > h_contmulticlusternum
std::vector< dqm::reco::MonitorElement * > h_multicluster_z
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_phi
double maxTotNClsperthick_
std::vector< dqm::reco::MonitorElement * > h_score_multicl2caloparticle
std::vector< dqm::reco::MonitorElement * > h_multicluster_energy
std::unordered_map< int, dqm::reco::MonitorElement * > h_cellsenedens_perthick
std::vector< dqm::reco::MonitorElement * > h_score_caloparticle2multicl
HGVHistoProducerAlgo(const edm::ParameterSet &pset)
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_caloparticle_phi_perlayer
dqm::reco::MonitorElement * lastLayerFHzm
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_pt
dqm::reco::MonitorElement * lastLayerFHzp
std::vector< dqm::reco::MonitorElement * > h_num_multicl_phi
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2multicl
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_eta
std::unordered_map< int, dqm::reco::MonitorElement * > h_score_layercl2caloparticle_perlayer
int nintMCLSharedEneFrac_
int nintDisToMaxperthickperlayerenewei_
std::vector< std::unordered_map< int, dqm::reco::MonitorElement * > > h_clusternum_in_multicluster_perlayer
dqm::reco::MonitorElement * lastLayerEEzm
double maxDisToMaxperthickperlayerenewei_
std::unordered_map< int, dqm::reco::MonitorElement * > h_clusternum_perlayer
std::vector< dqm::reco::MonitorElement * > h_multiclusternum
void setRecHitTools(std::shared_ptr< hgcal::RecHitTools > recHitTools)
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinMCL
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
void multiClusters_to_CaloParticles(const Histograms &histograms, int count, const std::vector< reco::HGCalMultiCluster > &multiClusters, 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 layers) const
std::vector< dqm::reco::MonitorElement * > h_clusternum_in_multicluster_vs_layer
int nintDisToSeedperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_perlayer
std::map< DetId, float > Density
std::vector< dqm::reco::MonitorElement * > h_multicluster_pt
std::unordered_map< int, dqm::reco::MonitorElement * > h_numMerge_layercl_eta_perlayer
std::vector< CaloCluster > CaloClusterCollection
collection of CaloCluster objects
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_multicl2caloparticle_vs_phi
std::unordered_map< int, dqm::reco::MonitorElement * > h_cellAssociation_perlayer
std::vector< dqm::reco::MonitorElement * > h_multiplicity_zplus_numberOfEventsHistogram
double maxDisToSeedperthickperlayerenewei_
void bookClusterHistos(DQMStore::IBooker &ibook, Histograms &histograms, unsigned layers, std::vector< int > thicknesses, std::string pathtomatbudfile)
dqm::legacy::DQMStore DQMStore
double getEta(double eta) const
double minClEneperthickperlayer_
double minTotNClsinMCLsperlayer_
double minClEnepermultiplicity_
double maxTotNClsinMCLsperlayer_
long unsigned int clusterId
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
double maxDisToSeedperthickperlayer_
std::shared_ptr< hgcal::RecHitTools > recHitTools_
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_energy_vs_score_caloparticle2multicl
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_multicl2caloparticle
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinMCL_vs_layercluster_zplus
double maxClEneperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_num_caloparticle_eta_perlayer
std::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_layercl2caloparticle_vs_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_multiplicity_zminus_numberOfEventsHistogram
double maxMCLSharedEneFrac_
int nintTotNClsinMCLsperlayer_
int nintClEneperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_longdepthbarycentre_zminus
std::unordered_map< int, dqm::reco::MonitorElement * > h_denom_layercl_phi_perlayer
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 layers, std::vector< int > thicknesses, edm::Handle< hgcal::LayerClusterToCaloParticleAssociator > &LCAssocByEnergyScoreHandle) const
std::vector< dqm::reco::MonitorElement * > h_multicluster_lastlayer
std::vector< dqm::reco::MonitorElement * > h_noncontmulticlusternum
std::vector< dqm::reco::MonitorElement * > h_num_caloparticle_eta
long unsigned int clusterId
std::vector< dqm::reco::MonitorElement * > h_denom_multicl_phi
std::vector< dqm::reco::MonitorElement * > h_numMerge_multicl_eta
std::vector< dqm::reco::MonitorElement * > h_energyclustered_zminus
int nintDisToMaxperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2multicl_vs_phi
std::vector< dqm::reco::MonitorElement * > h_numDup_multicl_eta
int nintMixedHitsCluster_
std::unordered_map< int, dqm::reco::MonitorElement * > h_caloparticle_energy
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinMCL_vs_layerclusterenergy
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinMCL_vs_layercluster
std::vector< dqm::reco::MonitorElement * > h_multicluster_x
double maxTotNcellsperthickperlayer_
void bookCaloParticleHistos(DQMStore::IBooker &ibook, Histograms &histograms, int pdgid)
double maxDisSeedToMaxperthickperlayer_
std::unordered_map< int, dqm::reco::MonitorElement * > h_energy_vs_score_layercl2caloparticle_perlayer
double maxCellsEneDensperthick_
dqm::reco::MonitorElement * lastLayerEEzp
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_multicluster_y
std::vector< dqm::reco::MonitorElement * > h_num_multicl_eta
void fill_multi_cluster_histos(const Histograms &histograms, int count, const std::vector< reco::HGCalMultiCluster > &multiClusters, 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 layers) const
std::vector< dqm::reco::MonitorElement * > h_energy_vs_score_multicl2caloparticle
double minCellsEneDensperthick_
std::unordered_map< int, std::pair< float, float > > layerClusterIdToEnergyAndScore
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::unordered_map< int, dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2layercl_vs_phi_perlayer
std::vector< dqm::reco::MonitorElement * > h_multicluster_firstlayer
double minTotNcellsperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_denom_multicl_eta
std::vector< dqm::reco::MonitorElement * > h_multicluster_eta
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
double maxDisToMaxperthickperlayer_
std::vector< dqm::reco::MonitorElement * > h_multiplicityOfLCinMCL_vs_layercluster_zminus
int nintDisToSeedperthickperlayerenewei_
unsigned int multiclusterId
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 minTotNClsperthick_
std::vector< dqm::reco::MonitorElement * > h_multicluster_layersnum
void fill_info_histos(const Histograms &histograms, unsigned layers) const
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_multicl2caloparticle_vs_eta
double minDisSeedToMaxperthickperlayer_
double minDisToSeedperthickperlayerenewei_
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
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 layers, const edm::Handle< hgcal::LayerClusterToCaloParticleAssociator > &LCAssocByEnergyScoreHandle) const
double minMCLSharedEneFrac_
hgcal_clustering::Density Density
std::unordered_map< std::string, dqm::reco::MonitorElement * > h_cellsnum_perthickperlayer
std::vector< dqm::reco::MonitorElement * > h_numDup_multicl_phi
std::vector< dqm::reco::MonitorElement * > h_sharedenergy_caloparticle2multicl_vs_eta