CMS 3D CMS Logo

reco::PFBlockElementCluster Class Reference

Cluster Element. More...

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

Inheritance diagram for reco::PFBlockElementCluster:

reco::PFBlockElement

List of all members.

Public Member Functions

PFBlockElementclone () const
 necessary to have the edm::OwnVector<PFBlockElement> working
PFClusterRef clusterRef () const
 
Returns:
reference to the corresponding cluster

void Dump (std::ostream &out=std::cout, const char *tab=" ") const
 print the object inside the element
 PFBlockElementCluster (const PFClusterRef &ref, PFBlockElement::Type type)
 constructor.
 PFBlockElementCluster ()

Private Attributes

PFClusterRef clusterRef_
 reference to the corresponding cluster


Detailed Description

Cluster Element.

this class contains a reference to a PFCluster

Definition at line 14 of file PFBlockElementCluster.h.


Constructor & Destructor Documentation

reco::PFBlockElementCluster::PFBlockElementCluster (  )  [inline]

Definition at line 16 of file PFBlockElementCluster.h.

Referenced by clone().

00016 {} 

reco::PFBlockElementCluster::PFBlockElementCluster ( const PFClusterRef ref,
PFBlockElement::Type  type 
) [inline]

constructor.

type must be equal to PS1, PS2, ECAL, HCAL.

Todo:
add a protection against the other types...

Definition at line 21 of file PFBlockElementCluster.h.

00023       : 
00024       PFBlockElement(type),
00025       clusterRef_( ref ) {}


Member Function Documentation

PFBlockElement* reco::PFBlockElementCluster::clone (  )  const [inline, virtual]

necessary to have the edm::OwnVector<PFBlockElement> working

Implements reco::PFBlockElement.

Definition at line 27 of file PFBlockElementCluster.h.

References PFBlockElementCluster().

00027 { return new PFBlockElementCluster(*this); }

PFClusterRef reco::PFBlockElementCluster::clusterRef (  )  const [inline, virtual]

Returns:
reference to the corresponding cluster

Reimplemented from reco::PFBlockElement.

Definition at line 30 of file PFBlockElementCluster.h.

References clusterRef_.

Referenced by PFElectronAlgo::SetCandidates(), and PFConversionAlgo::setCandidates().

00030 {return clusterRef_;}

void reco::PFBlockElementCluster::Dump ( std::ostream &  out = std::cout,
const char *  tab = " " 
) const [virtual]

print the object inside the element

Reimplemented from reco::PFBlockElement.

Referenced by reco::operator<<().


Member Data Documentation

PFClusterRef reco::PFBlockElementCluster::clusterRef_ [private]

reference to the corresponding cluster

Definition at line 37 of file PFBlockElementCluster.h.

Referenced by clusterRef().


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