CMS 3D CMS Logo

HGCalMultiCluster.h
Go to the documentation of this file.
1 #ifndef DataFormats_ParticleFlowReco_HGCalMultiCluster
2 #define DataFormats_ParticleFlowReco_HGCalMultiCluster
3 
4 #include <vector>
5 #include <limits>
6 
10 
11 namespace reco {
13  public:
16 
18 
19  HGCalMultiCluster(double energy, double x, double y, double z, ClusterCollection& thecls);
20 
21  void push_back(const edm::Ptr<reco::BasicCluster>& b) { myclusters.push_back(b); }
22 
24 
25  unsigned int size() const { return myclusters.size(); }
26  component_iterator begin() const { return myclusters.begin(); }
27  component_iterator end() const { return myclusters.end(); }
28 
29  bool operator>(const HGCalMultiCluster& rhs) const { return (energy() > rhs.energy()); }
30 
31  private:
33  };
34 } // namespace reco
35 #endif
reco::CaloCluster::y
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:175
reco::HGCalMultiCluster::operator>
bool operator>(const HGCalMultiCluster &rhs) const
Definition: HGCalMultiCluster.h:29
reco::HGCalMultiCluster::clusters
const edm::PtrVector< reco::BasicCluster > & clusters() const
Definition: HGCalMultiCluster.h:23
BasicCluster.h
reco::HGCalMultiCluster::push_back
void push_back(const edm::Ptr< reco::BasicCluster > &b)
Definition: HGCalMultiCluster.h:21
reco::PFCluster::setLayer
void setLayer(PFLayer::Layer layer)
set layer
Definition: PFCluster.cc:49
edm::PtrVectorItr
Definition: PtrVector.h:51
reco::CaloCluster::z
double z() const
z coordinate of cluster centroid
Definition: CaloCluster.h:178
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::HGCalMultiCluster::component_iterator
edm::PtrVector< reco::BasicCluster >::const_iterator component_iterator
Definition: HGCalMultiCluster.h:14
reco::HGCalMultiCluster::HGCalMultiCluster
HGCalMultiCluster()
Definition: HGCalMultiCluster.h:17
reco::PFCluster::energy
double energy() const
cluster energy
Definition: PFCluster.h:74
edm::PtrVector
Definition: PtrVector.h:36
PtrVector.h
PFCluster.h
PFLayer::HGCAL
Definition: PFLayer.h:40
b
double b
Definition: hdecay.h:118
reco::HGCalMultiCluster::begin
component_iterator begin() const
Definition: HGCalMultiCluster.h:26
reco::HGCalMultiCluster::ClusterCollection
edm::PtrVector< reco::BasicCluster > ClusterCollection
Definition: HGCalMultiCluster.h:15
edm::Ptr
Definition: AssociationVector.h:31
reco::HGCalMultiCluster
Definition: HGCalMultiCluster.h:12
reco::PFCluster
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition: PFCluster.h:42
reco::HGCalMultiCluster::myclusters
edm::PtrVector< reco::BasicCluster > myclusters
Definition: HGCalMultiCluster.h:32
reco::HGCalMultiCluster::size
unsigned int size() const
Definition: HGCalMultiCluster.h:25
reco::HGCalMultiCluster::end
component_iterator end() const
Definition: HGCalMultiCluster.h:27
reco::CaloCluster::x
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:172