CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
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
 

Private Attributes

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

Detailed Description

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

Author
Colin Bernet
Date
July 2006

Definition at line 18 of file PFRecHitFraction.h.

Constructor & Destructor Documentation

◆ PFRecHitFraction() [1/2]

reco::PFRecHitFraction::PFRecHitFraction ( )
inline

default constructor

Definition at line 21 of file PFRecHitFraction.h.

21 : fraction_(-1) {}

◆ PFRecHitFraction() [2/2]

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

constructor

Definition at line 24 of file PFRecHitFraction.h.

Member Function Documentation

◆ fraction()

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

Definition at line 30 of file PFRecHitFraction.h.

30 { return fraction_; }

References fraction_.

Referenced by Basic2DGenericPFlowClusterizer::prunePFClusters(), and PFlow2DClusterizerWithTime::prunePFClusters().

◆ recHitRef()

const PFRecHitRef& reco::PFRecHitFraction::recHitRef ( ) const
inline
Returns
index to rechit

Definition at line 27 of file PFRecHitFraction.h.

27 { return recHitRef_; }

References recHitRef_.

Member Data Documentation

◆ fraction_

double reco::PFRecHitFraction::fraction_
private

fraction of the rechit energy owned by the cluster

Definition at line 37 of file PFRecHitFraction.h.

Referenced by fraction().

◆ recHitRef_

PFRecHitRef reco::PFRecHitFraction::recHitRef_
private

corresponding rechit

Definition at line 34 of file PFRecHitFraction.h.

Referenced by recHitRef().

reco::PFRecHitFraction::fraction
double fraction() const
Definition: PFRecHitFraction.h:30
reco::PFRecHitFraction::recHitRef
const PFRecHitRef & recHitRef() const
Definition: PFRecHitFraction.h:27
reco::PFRecHitFraction::recHitRef_
PFRecHitRef recHitRef_
corresponding rechit
Definition: PFRecHitFraction.h:34
reco::PFRecHitFraction::fraction_
double fraction_
fraction of the rechit energy owned by the cluster
Definition: PFRecHitFraction.h:37