CMS 3D CMS Logo

reco::PFRecHitFraction Class Reference

Fraction of a PFRecHit (rechits can be shared between several PFCluster's). More...

#include <DataFormats/ParticleFlowReco/interface/PFRecHitFraction.h>

List of all members.

Public Member Functions

double fraction () const
 
Returns:
energy fraction

 PFRecHitFraction (const PFRecHitRef &recHitRef, double fraction)
 constructor
 PFRecHitFraction ()
 default constructor
const PFRecHitRefrecHitRef () const
 copy

Private Attributes

double fraction_
 fraction of the rechit energy owned by the cluster
PFRecHitRef recHitRef_
 corresponding rechit

Friends

std::ostream & operator<< (std::ostream &out, const PFRecHitFraction &hit)


Detailed Description

Fraction of a PFRecHit (rechits can be shared between several PFCluster's).

Author:
Colin Bernet
Date:
July 2006

Definition at line 19 of file PFRecHitFraction.h.


Constructor & Destructor Documentation

reco::PFRecHitFraction::PFRecHitFraction (  )  [inline]

default constructor

Definition at line 23 of file PFRecHitFraction.h.

00023 : fraction_(-1) {}

reco::PFRecHitFraction::PFRecHitFraction ( const PFRecHitRef recHitRef,
double  fraction 
) [inline]

constructor

Definition at line 26 of file PFRecHitFraction.h.


Member Function Documentation

double reco::PFRecHitFraction::fraction (  )  const [inline]

Returns:
energy fraction

Definition at line 38 of file PFRecHitFraction.h.

References fraction_.

Referenced by PFClusterShapeAlgo::fill5x5Map(), and reco::operator<<().

00038 {return fraction_;}

const PFRecHitRef& reco::PFRecHitFraction::recHitRef (  )  const [inline]

copy

Returns:
index to rechit

Definition at line 35 of file PFRecHitFraction.h.

References recHitRef_.

Referenced by reco::operator<<().

00035 {return recHitRef_;} 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const PFRecHitFraction hit 
) [friend]

Definition at line 10 of file PFRecHitFraction.cc.

00011                                                         {
00012 
00013   if(!out) return out;
00014 
00015   //   const reco::PFRecHit* rechit = hit.getRecHit();
00016 
00017   out<<hit.fraction()<<"x["<< hit.recHitRef()->detId()<<"]";
00018 
00019   return out;
00020 }


Member Data Documentation

double reco::PFRecHitFraction::fraction_ [private]

fraction of the rechit energy owned by the cluster

Definition at line 49 of file PFRecHitFraction.h.

Referenced by fraction().

PFRecHitRef reco::PFRecHitFraction::recHitRef_ [private]

corresponding rechit

Definition at line 46 of file PFRecHitFraction.h.

Referenced by recHitRef().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:51:21 2009 for CMSSW by  doxygen 1.5.4