CMS 3D CMS Logo

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  private:
37 
40 
42  double fraction_;
43 
44  };
45 
46  std::ostream& operator<<(std::ostream& out,
47  const PFRecHitFraction& hit);
48 
49 }
50 
51 
52 
53 #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:71
double fraction_
fraction of the rechit energy owned by the cluster
fixed size matrix
const PFRecHitRef & recHitRef() const
PFRecHitFraction(const PFRecHitRef &recHitRef, double fraction)
constructor