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 
33  const std::vector<std::pair<GlobalPoint, double>>& seedPositionsEnergy,
34  const HGCalTriggerGeometryBase& triggerGeometry,
36  l1t::HGCalClusterBxCollection& rejected_clusters) const;
37 
38 private:
40 
41  std::vector<l1t::HGCalMulticluster> clusterSeedMulticluster(
42  const std::vector<edm::Ptr<l1t::HGCalCluster>>& clustersPtrs,
43  const std::vector<std::pair<GlobalPoint, double>>& seeds,
44  std::vector<l1t::HGCalCluster>& rejected_clusters) const;
45 
46  void finalizeClusters(std::vector<l1t::HGCalMulticluster>&,
47  const std::vector<l1t::HGCalCluster>&,
50  const HGCalTriggerGeometryBase&) const;
51 
52  double dr_;
53  std::vector<double> dr_byLayer_coefficientA_;
54  std::vector<double> dr_byLayer_coefficientB_;
56 
59 
62  std::unique_ptr<HGCalTriggerClusterIdentificationBase> id_;
63 
64  static constexpr double kMidRadius_ = 2.3;
65 };
66 
67 #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:64
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:57
HGCalHistoClusteringImpl::HGCalHistoClusteringImpl
HGCalHistoClusteringImpl(const edm::ParameterSet &conf)
Definition: HGCalHistoClusteringImpl.cc:6
HGCalTriggerClusterIdentificationBase.h
HGCalHistoClusteringImpl::finalizeClusters
void finalizeClusters(std::vector< l1t::HGCalMulticluster > &, const std::vector< l1t::HGCalCluster > &, l1t::HGCalMulticlusterBxCollection &, l1t::HGCalClusterBxCollection &, const HGCalTriggerGeometryBase &) const
Definition: HGCalHistoClusteringImpl.cc:123
HGCalHistoClusteringImpl::clusterSeedMulticluster
std::vector< l1t::HGCalMulticluster > clusterSeedMulticluster(const std::vector< edm::Ptr< l1t::HGCalCluster >> &clustersPtrs, const std::vector< std::pair< GlobalPoint, double >> &seeds, std::vector< l1t::HGCalCluster > &rejected_clusters) 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:61
HGCalHistoClusteringImpl::ClusterAssociationStrategy
ClusterAssociationStrategy
Definition: HGCalHistoClusteringImpl.h:39
fileCollector.seed
seed
Definition: fileCollector.py:127
BXVector
Definition: BXVector.h:15
HGCalMulticluster.h
HGCalHistoClusteringImpl::dr_byLayer_coefficientA_
std::vector< double > dr_byLayer_coefficientA_
Definition: HGCalHistoClusteringImpl.h:53
HGCalTriggerGeometryBase.h
HGCalTriggerTools::lastLayerBH
unsigned lastLayerBH() const
Definition: HGCalTriggerTools.h:56
HGCalHistoClusteringImpl::ptC3dThreshold_
double ptC3dThreshold_
Definition: HGCalHistoClusteringImpl.h:55
HGCalHistoClusteringImpl::dr_
double dr_
Definition: HGCalHistoClusteringImpl.h:52
Point3DBase< float, GlobalTag >
HGCalHistoClusteringImpl::EnergySplit
Definition: HGCalHistoClusteringImpl.h:39
HGCalHistoClusteringImpl
Definition: HGCalHistoClusteringImpl.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InitialStep_cff.seeds
seeds
Definition: InitialStep_cff.py:230
edm::ParameterSet
Definition: ParameterSet.h:47
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
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:62
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, l1t::HGCalClusterBxCollection &rejected_clusters) const
Definition: HGCalHistoClusteringImpl.cc:110
edm::Ptr
Definition: AssociationVector.h:31
HGCalHistoClusteringImpl::dr_byLayer_coefficientB_
std::vector< double > dr_byLayer_coefficientB_
Definition: HGCalHistoClusteringImpl.h:54
HGCalHistoClusteringImpl::cluster_association_strategy_
ClusterAssociationStrategy cluster_association_strategy_
Definition: HGCalHistoClusteringImpl.h:58
Exception
Definition: hltDiff.cc:246
HGCalTriggerTools
Definition: HGCalTriggerTools.h:32
HGCalHistoClusteringImpl::shape_
HGCalShowerShape shape_
Definition: HGCalHistoClusteringImpl.h:60
ParameterSet.h
HGCalHistoClusteringImpl::NearestNeighbour
Definition: HGCalHistoClusteringImpl.h:39