CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PFRecHitFraction.h
Go to the documentation of this file.
1 #ifndef DataFormats_ParticleFlowReco_PFRecHitFraction_h
2 #define DataFormats_ParticleFlowReco_PFRecHitFraction_h
3 
4 #include <iostream>
5 #include <vector>
6 
8 
9 namespace reco {
10 
19  public:
22 
24  PFRecHitFraction(const PFRecHitRef& recHitRef, double fraction) : recHitRef_(recHitRef), fraction_(fraction) {}
25 
27  const PFRecHitRef& recHitRef() const { return recHitRef_; }
28 
30  double fraction() const { return fraction_; }
31 
32  private:
35 
37  double fraction_;
38  };
39 
40  std::ostream& operator<<(std::ostream& out, const PFRecHitFraction& hit);
41 
42 } // namespace reco
43 
44 #endif
Fraction of a PFRecHit (rechits can be shared between several PFCluster&#39;s)
double fraction() const
PFRecHitFraction()
default constructor
PFRecHitRef recHitRef_
corresponding rechit
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:66
double fraction_
fraction of the rechit energy owned by the cluster
const PFRecHitRef & recHitRef() const
PFRecHitFraction(const PFRecHitRef &recHitRef, double fraction)
constructor