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  // PFRecHitFraction(const PFRecHitFraction& other)
32  // : recHitRef_(other.recHitRef_), fraction_(other.fraction_) {}
33 
35  const PFRecHitRef& recHitRef() const {return recHitRef_;}
36 
38  double fraction() const {return fraction_;}
39 
40  friend std::ostream& operator<<(std::ostream& out,
41  const PFRecHitFraction& hit);
42 
43  private:
44 
47 
49  double fraction_;
50 
51  };
52 }
53 
54 
55 
56 #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
copy
PFRecHitFraction(const PFRecHitRef &recHitRef, double fraction)
constructor