CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
reco::HGCalMultiCluster Class Reference

#include <HGCalMultiCluster.h>

Inheritance diagram for reco::HGCalMultiCluster:
reco::PFCluster reco::CaloCluster

Public Types

typedef edm::PtrVector< reco::BasicClusterClusterCollection
 
typedef edm::PtrVector< reco::BasicCluster >::const_iterator component_iterator
 
- Public Types inherited from reco::PFCluster
typedef std::vector< std::pair< CaloClusterPtr::key_type, edm::Ptr< PFCluster > > > EEtoPSAssociation
 
typedef ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< double > > REPPoint
 
- Public Types inherited from reco::CaloCluster
enum  AlgoId {
  island = 0, hybrid = 1, fixedMatrix = 2, dynamicHybrid = 3,
  multi5x5 = 4, particleFlow = 5, hgcal_em = 6, hgcal_had = 7,
  hgcal_scintillator = 8, hfnose = 9, undefined = 1000
}
 
typedef AlgoId AlgoID
 
enum  HCalFlags { badHcalMarker = 1 }
 
enum  SCFlags { cleanOnly = 0, common = 100, uncleanOnly = 200 }
 

Public Member Functions

component_iterator begin () const
 
const edm::PtrVector< reco::BasicCluster > & clusters () const
 
component_iterator end () const
 
 HGCalMultiCluster ()
 
 HGCalMultiCluster (double energy, double x, double y, double z, ClusterCollection &thecls)
 
bool operator> (const HGCalMultiCluster &rhs) const
 
void push_back (const edm::Ptr< reco::BasicCluster > &b)
 
unsigned int size () const
 
- Public Member Functions inherited from reco::PFCluster
void addRecHitFraction (const reco::PFRecHitFraction &frac)
 add a given fraction of the rechit More...
 
void calculatePositionREP ()
 computes posrep_ once and for all More...
 
double charge () const
 dummy charge More...
 
double depth () const
 cluster depth More...
 
double energy () const
 cluster energy More...
 
PFLayer::Layer layer () const
 cluster layer, see PFLayer.h in this directory More...
 
 PFCluster ()
 
 PFCluster (PFLayer::Layer layer, double energy, double x, double y, double z)
 constructor More...
 
const REPPointpositionREP () const
 cluster position: rho, eta, phi More...
 
template<typename pruner >
void pruneUsing (pruner prune)
 
double pt () const
 transverse momentum, massless approximation More...
 
const std::vector< reco::PFRecHitFraction > & recHitFractions () const
 vector of rechit fractions More...
 
void reset ()
 resets clusters parameters More...
 
void resetHitsAndFractions ()
 reset only hits and fractions More...
 
void setDepth (double depth)
 
void setLayer (PFLayer::Layer layer)
 set layer More...
 
void setTime (float time, float timeError=0)
 
void setTimeError (float timeError)
 
double theta () const
 angle More...
 
float time () const
 
float timeError () const
 
math::XYZPoint const & vertex () const
 dummy vertex access More...
 
double vx () const
 
double vy () const
 
double vz () const
 
- Public Member Functions inherited from reco::CaloCluster
void addHitAndFraction (DetId id, float fraction)
 
AlgoId algo () const
 algorithm identifier More...
 
AlgoID algoID () const
 
 CaloCluster ()
 default constructor. Sets energy and position to zero More...
 
 CaloCluster (AlgoID algoID)
 constructor with algoId, to be used in all child classes More...
 
 CaloCluster (double energy, const math::XYZPoint &position, const CaloID &caloID)
 
 CaloCluster (double energy, const math::XYZPoint &position)
 constructor from values More...
 
 CaloCluster (double energy, const math::XYZPoint &position, const CaloID &caloID, const AlgoID &algoID, uint32_t flags=0)
 
 CaloCluster (double energy, const math::XYZPoint &position, const CaloID &caloID, const std::vector< std::pair< DetId, float > > &usedHitsAndFractions, const AlgoId algoId, const DetId seedId=DetId(0), uint32_t flags=0)
 
 CaloCluster (double energy, const math::XYZPoint &position, float chi2, const std::vector< DetId > &usedHits, const AlgoId algoId, uint32_t flags=0)
 temporary compatibility constructor More...
 
const CaloIDcaloID () const
 
double correctedEnergy () const
 
float correctedEnergyUncertainty () const
 
double energy () const
 cluster energy More...
 
double eta () const
 pseudorapidity of cluster centroid More...
 
uint32_t flags () const
 
const std::vector< std::pair< DetId, float > > & hitsAndFractions () const
 
bool isInClean () const
 
bool isInUnclean () const
 
bool operator< (const CaloCluster &rhs) const
 comparison < operator More...
 
bool operator<= (const CaloCluster &rhs) const
 comparison <= operator More...
 
bool operator== (const CaloCluster &rhs) const
 comparison == operator More...
 
bool operator> (const CaloCluster &rhs) const
 comparison > operator More...
 
bool operator>= (const CaloCluster &rhs) const
 comparison >= operator More...
 
double phi () const
 azimuthal angle of cluster centroid More...
 
const math::XYZPointposition () const
 cluster centroid position More...
 
std::string printHitAndFraction (unsigned i) const
 print hitAndFraction More...
 
void reset ()
 resets the CaloCluster (position, energy, hitsAndFractions) More...
 
DetId seed () const
 return DetId of seed More...
 
void setAlgoId (const AlgoId &id)
 
void setCaloId (const CaloID &id)
 
void setCorrectedEnergy (double cenergy)
 
void setCorrectedEnergyUncertainty (float energyerr)
 
void setEnergy (double energy)
 
void setFlags (uint32_t flags)
 
void setPosition (const math::XYZPoint &p)
 
void setSeed (const DetId &id)
 
size_t size () const
 size in number of hits (e.g. in crystals for ECAL) More...
 
double x () const
 x coordinate of cluster centroid More...
 
double y () const
 y coordinate of cluster centroid More...
 
double z () const
 z coordinate of cluster centroid More...
 
virtual ~CaloCluster ()
 destructor More...
 

Private Attributes

edm::PtrVector< reco::BasicClustermyclusters
 

Additional Inherited Members

- Static Public Member Functions inherited from reco::PFCluster
static double getDepthCorrection (double energy, bool isBelowPS=false, bool isHadron=false)
 
- Protected Attributes inherited from reco::CaloCluster
AlgoID algoID_
 
CaloID caloID_
 bitmask for detector information More...
 
double correctedEnergy_
 
float correctedEnergyUncertainty_
 
double energy_
 cluster energy More...
 
uint32_t flags_
 
std::vector< std::pair< DetId, float > > hitsAndFractions_
 
math::XYZPoint position_
 cluster centroid position More...
 
DetId seedId_
 DetId of seed. More...
 
- Static Protected Attributes inherited from reco::CaloCluster
static const uint32_t flagsMask_ = 0x0FFFFFFF
 
static const uint32_t flagsOffset_ = 28
 

Detailed Description

Definition at line 12 of file HGCalMultiCluster.h.

Member Typedef Documentation

◆ ClusterCollection

Definition at line 15 of file HGCalMultiCluster.h.

◆ component_iterator

Definition at line 14 of file HGCalMultiCluster.h.

Constructor & Destructor Documentation

◆ HGCalMultiCluster() [1/2]

reco::HGCalMultiCluster::HGCalMultiCluster ( )
inline

Definition at line 17 of file HGCalMultiCluster.h.

References PFLayer::HGCAL, and reco::PFCluster::setLayer().

17 : PFCluster() { this->setLayer(PFLayer::HGCAL); }
void setLayer(PFLayer::Layer layer)
set layer
Definition: PFCluster.cc:49

◆ HGCalMultiCluster() [2/2]

HGCalMultiCluster::HGCalMultiCluster ( double  energy,
double  x,
double  y,
double  z,
ClusterCollection thecls 
)

Definition at line 5 of file HGCalMultiCluster.cc.

References cms::cuda::assert(), myclusters, and x.

6  : PFCluster(PFLayer::HGCAL, energy, x, y, z), myclusters(thecls) {
7  assert(!myclusters.empty() && "Invalid cluster collection, zero length.");
8 }
double x() const
x coordinate of cluster centroid
Definition: CaloCluster.h:172
assert(be >=bs)
edm::PtrVector< reco::BasicCluster > myclusters
double energy() const
cluster energy
Definition: PFCluster.h:74
double z() const
z coordinate of cluster centroid
Definition: CaloCluster.h:178
double y() const
y coordinate of cluster centroid
Definition: CaloCluster.h:175

Member Function Documentation

◆ begin()

component_iterator reco::HGCalMultiCluster::begin ( void  ) const
inline

Definition at line 26 of file HGCalMultiCluster.h.

References myclusters.

Referenced by hgcal::EGammaPCAHelper::storeRecHits().

26 { return myclusters.begin(); }
edm::PtrVector< reco::BasicCluster > myclusters

◆ clusters()

const edm::PtrVector<reco::BasicCluster>& reco::HGCalMultiCluster::clusters ( ) const
inline

◆ end()

component_iterator reco::HGCalMultiCluster::end ( void  ) const
inline

Definition at line 27 of file HGCalMultiCluster.h.

References myclusters.

Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and hgcal::EGammaPCAHelper::storeRecHits().

27 { return myclusters.end(); }
edm::PtrVector< reco::BasicCluster > myclusters

◆ operator>()

bool reco::HGCalMultiCluster::operator> ( const HGCalMultiCluster rhs) const
inline

Definition at line 29 of file HGCalMultiCluster.h.

References reco::PFCluster::energy().

29 { return (energy() > rhs.energy()); }
double energy() const
cluster energy
Definition: PFCluster.h:74

◆ push_back()

void reco::HGCalMultiCluster::push_back ( const edm::Ptr< reco::BasicCluster > &  b)
inline

Definition at line 21 of file HGCalMultiCluster.h.

References b, and myclusters.

21 { myclusters.push_back(b); }
edm::PtrVector< reco::BasicCluster > myclusters
double b
Definition: hdecay.h:120

◆ size()

unsigned int reco::HGCalMultiCluster::size ( void  ) const
inline

Definition at line 25 of file HGCalMultiCluster.h.

References myclusters.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

25 { return myclusters.size(); }
edm::PtrVector< reco::BasicCluster > myclusters

Member Data Documentation

◆ myclusters

edm::PtrVector<reco::BasicCluster> reco::HGCalMultiCluster::myclusters
private

Definition at line 32 of file HGCalMultiCluster.h.

Referenced by begin(), clusters(), end(), HGCalMultiCluster(), push_back(), and size().