CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
reco::PFRecHitFraction Class Reference

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

#include <PFRecHitFraction.h>

Public Member Functions

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

Private Attributes

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

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.

23 : fraction_(-1) {}
double fraction_
fraction of the rechit energy owned by the cluster
reco::PFRecHitFraction::PFRecHitFraction ( const PFRecHitRef recHitRef,
double  fraction 
)
inline

constructor

Definition at line 26 of file PFRecHitFraction.h.

double fraction() const
PFRecHitRef recHitRef_
corresponding rechit
double fraction_
fraction of the rechit energy owned by the cluster
const PFRecHitRef & recHitRef() const
copy

Member Function Documentation

double reco::PFRecHitFraction::fraction ( ) const
inline
Returns
energy fraction

Definition at line 38 of file PFRecHitFraction.h.

References fraction_.

Referenced by reco::PFCluster::addRecHitFraction(), PFClusterShapeAlgo::fill5x5Map(), Basic2DGenericPFlowClusterizer::prunePFClusters(), and PFlow2DClusterizerWithTime::prunePFClusters().

38 {return fraction_;}
double fraction_
fraction of the rechit energy owned by the cluster
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::PFCluster::addRecHitFraction().

35 {return recHitRef_;}
PFRecHitRef recHitRef_
corresponding rechit

Friends And Related Function Documentation

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

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().