test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
11 
20  public:
21 
24 
27  double fraction )
28  : recHitRef_(recHitRef), fraction_(fraction) {}
29 
31  const PFRecHitRef& recHitRef() const {return recHitRef_;}
32 
34  double fraction() const {return fraction_;}
35 
36  friend std::ostream& operator<<(std::ostream& out,
37  const PFRecHitFraction& hit);
38 
39  private:
40 
43 
45  double fraction_;
46 
47  };
48 }
49 
50 
51 
52 #endif
Fraction of a PFRecHit (rechits can be shared between several PFCluster&#39;s)
friend std::ostream & operator<<(std::ostream &out, const PFRecHitFraction &hit)
double fraction() const
PFRecHitFraction()
default constructor
PFRecHitRef recHitRef_
corresponding rechit
double fraction_
fraction of the rechit energy owned by the cluster
const PFRecHitRef & recHitRef() const
PFRecHitFraction(const PFRecHitRef &recHitRef, double fraction)
constructor