CMS 3D CMS Logo

HGCalHistoClusteringImpl.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalHistoClusteringImpl_h__
2 #define __L1Trigger_L1THGCal_HGCalHistoClusteringImpl_h__
3 
8 
13 
15 public:
17 
18  void eventSetup(const edm::EventSetup& es) {
20  shape_.eventSetup(es);
23  throw cms::Exception("Configuration")
24  << "The per-layer dR values go up to " << (dr_byLayer_coefficientA_.size() - 1) << "(A) and "
25  << (dr_byLayer_coefficientB_.size() - 1) << "(B), while layers go up to " << triggerTools_.lastLayerBH()
26  << "\n";
27  }
28  }
29 
30  float dR(const l1t::HGCalCluster& clu, const GlobalPoint& seed) const;
31 
32  void clusterizeHisto(const std::vector<edm::Ptr<l1t::HGCalCluster>>& clustersPtr,
33  const std::vector<std::pair<GlobalPoint, double>>& seedPositionsEnergy,
34  const HGCalTriggerGeometryBase& triggerGeometry,
35  l1t::HGCalMulticlusterBxCollection& multiclusters) const;
36 
37 private:
39 
40  std::vector<l1t::HGCalMulticluster> clusterSeedMulticluster(
41  const std::vector<edm::Ptr<l1t::HGCalCluster>>& clustersPtrs,
42  const std::vector<std::pair<GlobalPoint, double>>& seeds) const;
43 
44  void finalizeClusters(std::vector<l1t::HGCalMulticluster>&,
46  const HGCalTriggerGeometryBase&) const;
47 
48  double dr_;
49  std::vector<double> dr_byLayer_coefficientA_;
50  std::vector<double> dr_byLayer_coefficientB_;
52 
55 
58  std::unique_ptr<HGCalTriggerClusterIdentificationBase> id_;
59 
60  static constexpr double kMidRadius_ = 2.3;
61 };
62 
63 #endif
HGCalTriggerTools.h
HGCalTriggerGeometryBase
Definition: HGCalTriggerGeometryBase.h:19
l1t::HGCalCluster
Definition: HGCalCluster.h:11
HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition: HGCalTriggerTools.cc:35
HGCalHistoClusteringImpl::kMidRadius_
static constexpr double kMidRadius_
Definition: HGCalHistoClusteringImpl.h:60
MessageLogger.h
HGCalHistoClusteringImpl::dR
float dR(const l1t::HGCalCluster &clu, const GlobalPoint &seed) const
Definition: HGCalHistoClusteringImpl.cc:34
HGCalShowerShape
Definition: HGCalShowerShape.h:12
HGCalHistoClusteringImpl::cluster_association_input_
std::string cluster_association_input_
Definition: HGCalHistoClusteringImpl.h:53
HGCalHistoClusteringImpl::HGCalHistoClusteringImpl
HGCalHistoClusteringImpl(const edm::ParameterSet &conf)
Definition: HGCalHistoClusteringImpl.cc:6
HGCalTriggerClusterIdentificationBase.h
HGCalHistoClusteringImpl::finalizeClusters
void finalizeClusters(std::vector< l1t::HGCalMulticluster > &, l1t::HGCalMulticlusterBxCollection &, const HGCalTriggerGeometryBase &) const
Definition: HGCalHistoClusteringImpl.cc:116
HGCalHistoClusteringImpl::clusterSeedMulticluster
std::vector< l1t::HGCalMulticluster > clusterSeedMulticluster(const std::vector< edm::Ptr< l1t::HGCalCluster >> &clustersPtrs, const std::vector< std::pair< GlobalPoint, double >> &seeds) const
Definition: HGCalHistoClusteringImpl.cc:38
HGCalHistoClusteringImpl::eventSetup
void eventSetup(const edm::EventSetup &es)
Definition: HGCalHistoClusteringImpl.h:18
HGCalShowerShape.h
HGCalHistoClusteringImpl::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalHistoClusteringImpl.h:57
HGCalHistoClusteringImpl::ClusterAssociationStrategy
ClusterAssociationStrategy
Definition: HGCalHistoClusteringImpl.h:38
BXVector
Definition: BXVector.h:15
HGCalMulticluster.h
HGCalHistoClusteringImpl::dr_byLayer_coefficientA_
std::vector< double > dr_byLayer_coefficientA_
Definition: HGCalHistoClusteringImpl.h:49
HGCalTriggerGeometryBase.h
HGCalTriggerTools::lastLayerBH
unsigned lastLayerBH() const
Definition: HGCalTriggerTools.h:56
HGCalHistoClusteringImpl::ptC3dThreshold_
double ptC3dThreshold_
Definition: HGCalHistoClusteringImpl.h:51
HGCalHistoClusteringImpl::dr_
double dr_
Definition: HGCalHistoClusteringImpl.h:48
Point3DBase< float, GlobalTag >
HGCalHistoClusteringImpl::EnergySplit
Definition: HGCalHistoClusteringImpl.h:38
HGCalHistoClusteringImpl
Definition: HGCalHistoClusteringImpl.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InitialStep_cff.seeds
seeds
Definition: InitialStep_cff.py:232
edm::ParameterSet
Definition: ParameterSet.h:36
HGCalShowerShape::eventSetup
void eventSetup(const edm::EventSetup &es)
Definition: HGCalShowerShape.h:21
edm::EventSetup
Definition: EventSetup.h:57
HGCalCluster.h
HGCalHistoClusteringImpl::id_
std::unique_ptr< HGCalTriggerClusterIdentificationBase > id_
Definition: HGCalHistoClusteringImpl.h:58
edm::Ptr
Definition: AssociationVector.h:31
HGCalHistoClusteringImpl::dr_byLayer_coefficientB_
std::vector< double > dr_byLayer_coefficientB_
Definition: HGCalHistoClusteringImpl.h:50
HGCalHistoClusteringImpl::cluster_association_strategy_
ClusterAssociationStrategy cluster_association_strategy_
Definition: HGCalHistoClusteringImpl.h:54
HGCalHistoClusteringImpl::clusterizeHisto
void clusterizeHisto(const std::vector< edm::Ptr< l1t::HGCalCluster >> &clustersPtr, const std::vector< std::pair< GlobalPoint, double >> &seedPositionsEnergy, const HGCalTriggerGeometryBase &triggerGeometry, l1t::HGCalMulticlusterBxCollection &multiclusters) const
Definition: HGCalHistoClusteringImpl.cc:106
Exception
Definition: hltDiff.cc:246
HGCalTriggerTools
Definition: HGCalTriggerTools.h:32
HGCalHistoClusteringImpl::shape_
HGCalShowerShape shape_
Definition: HGCalHistoClusteringImpl.h:56
ParameterSet.h
HGCalHistoClusteringImpl::NearestNeighbour
Definition: HGCalHistoClusteringImpl.h:38
SurveyInfoScenario_cff.seed
seed
Definition: SurveyInfoScenario_cff.py:295