CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRecHitFraction.cc
Go to the documentation of this file.
4 // #include "FWCore/Utilities/interface/Exception.h"
5 
6 using namespace std;
7 using namespace reco;
8 
9 
10 ostream& reco::operator<<( std::ostream& out,
11  const PFRecHitFraction& hit) {
12 
13  if(!out) return out;
14 
15  // const reco::PFRecHit* rechit = hit.getRecHit();
16 
17  out<<hit.fraction()<<"x["<< hit.recHitRef()->detId()<<"]";
18 
19  return out;
20 }
Fraction of a PFRecHit (rechits can be shared between several PFCluster&#39;s)
double fraction() const
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:71
const PFRecHitRef & recHitRef() const