CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | Friends
reco::CaloCluster Class Reference

#include <CaloCluster.h>

Inheritance diagram for reco::CaloCluster:
reco::PFCluster reco::PreshowerCluster reco::SuperCluster reco::HGCalMultiCluster reco::PFSuperCluster

Public Types

enum  AlgoId {
  island = 0, hybrid = 1, fixedMatrix = 2, dynamicHybrid = 3,
  multi5x5 = 4, particleFlow = 5, hgcal_em = 6, hgcal_had = 7,
  hgcal_mixed = 8, undefined = 1000
}
 
typedef AlgoId AlgoID
 
enum  HCalFlags { badHcalMarker = 1 }
 
enum  SCFlags { cleanOnly = 0, common = 100, uncleanOnly = 200 }
 

Public Member Functions

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

Protected Attributes

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

static const uint32_t flagsMask_ =0x0FFFFFFF
 
static const uint32_t flagsOffset_ =28
 

Friends

std::ostream & operator<< (std::ostream &out, const CaloCluster &cluster)
 print me More...
 

Detailed Description

Base class for all types calorimeter clusters

Author
Shahram Rahatlou, INFN

Comments: modified AlgoId enumeration to include cleaning status flags In summary: algoID_ < 200 object is in clean collection algoID_ >=100 object is in unclean collection

Definition at line 32 of file CaloCluster.h.

Member Typedef Documentation

Definition at line 44 of file CaloCluster.h.

Member Enumeration Documentation

Enumerator
badHcalMarker 

Definition at line 40 of file CaloCluster.h.

Enumerator
cleanOnly 
common 
uncleanOnly 

Definition at line 38 of file CaloCluster.h.

Constructor & Destructor Documentation

reco::CaloCluster::CaloCluster ( )
inline

default constructor. Sets energy and position to zero

Definition at line 47 of file CaloCluster.h.

47  :
49  algoID_( undefined ), flags_(0) {}
double energy_
cluster energy
Definition: CaloCluster.h:212
double correctedEnergy_
Definition: CaloCluster.h:213
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
reco::CaloCluster::CaloCluster ( AlgoID  algoID)
inline

constructor with algoId, to be used in all child classes

Definition at line 52 of file CaloCluster.h.

52  :
54  algoID_( algoID ), flags_(0) {}
double energy_
cluster energy
Definition: CaloCluster.h:212
AlgoID algoID() const
Definition: CaloCluster.h:178
double correctedEnergy_
Definition: CaloCluster.h:213
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
reco::CaloCluster::CaloCluster ( double  energy,
const math::XYZPoint position,
const CaloID caloID 
)
inline

Definition at line 56 of file CaloCluster.h.

References reset().

58  :
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:131
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
CaloID caloID_
bitmask for detector information
Definition: CaloCluster.h:220
double energy_
cluster energy
Definition: CaloCluster.h:212
double correctedEnergy_
Definition: CaloCluster.h:213
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
const CaloID & caloID() const
Definition: CaloCluster.h:188
double energy() const
cluster energy
Definition: CaloCluster.h:126
reco::CaloCluster::CaloCluster ( double  energy,
const math::XYZPoint position 
)
inline

constructor from values

Definition at line 66 of file CaloCluster.h.

67  :
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:131
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
double energy_
cluster energy
Definition: CaloCluster.h:212
double correctedEnergy_
Definition: CaloCluster.h:213
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
double energy() const
cluster energy
Definition: CaloCluster.h:126
reco::CaloCluster::CaloCluster ( double  energy,
const math::XYZPoint position,
const CaloID caloID,
const AlgoID algoID,
uint32_t  flags = 0 
)
inline

Definition at line 71 of file CaloCluster.h.

References flags(), flags_, and flagsMask_.

75  :
79  }
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:131
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
CaloID caloID_
bitmask for detector information
Definition: CaloCluster.h:220
double energy_
cluster energy
Definition: CaloCluster.h:212
AlgoID algoID() const
Definition: CaloCluster.h:178
double correctedEnergy_
Definition: CaloCluster.h:213
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
const CaloID & caloID() const
Definition: CaloCluster.h:188
uint32_t flags() const
Definition: CaloCluster.h:180
double energy() const
cluster energy
Definition: CaloCluster.h:126
static const uint32_t flagsMask_
Definition: CaloCluster.h:236
reco::CaloCluster::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 
)
inline

Definition at line 81 of file CaloCluster.h.

References flags(), flags_, and flagsMask_.

87  :
89  hitsAndFractions_(usedHitsAndFractions), algoID_(algoId),seedId_(seedId){
91  }
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:131
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
CaloID caloID_
bitmask for detector information
Definition: CaloCluster.h:220
double energy_
cluster energy
Definition: CaloCluster.h:212
double correctedEnergy_
Definition: CaloCluster.h:213
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:223
const CaloID & caloID() const
Definition: CaloCluster.h:188
uint32_t flags() const
Definition: CaloCluster.h:180
DetId seedId_
DetId of seed.
Definition: CaloCluster.h:229
double energy() const
cluster energy
Definition: CaloCluster.h:126
static const uint32_t flagsMask_
Definition: CaloCluster.h:236
reco::CaloCluster::CaloCluster ( double  energy,
const math::XYZPoint position,
float  chi2,
const std::vector< DetId > &  usedHits,
const AlgoId  algoId,
uint32_t  flags = 0 
)
inline

temporary compatibility constructor

Definition at line 95 of file CaloCluster.h.

References flags(), flags_, flagsMask_, hitsAndFractions_, and mps_fire::i.

100  :
102  {
103  hitsAndFractions_.reserve(usedHits.size());
104  for(size_t i = 0; i < usedHits.size(); i++) hitsAndFractions_.push_back(std::pair< DetId, float > ( usedHits[i],1.));
106  }
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:131
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
double energy_
cluster energy
Definition: CaloCluster.h:212
double correctedEnergy_
Definition: CaloCluster.h:213
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:223
uint32_t flags() const
Definition: CaloCluster.h:180
double energy() const
cluster energy
Definition: CaloCluster.h:126
static const uint32_t flagsMask_
Definition: CaloCluster.h:236
virtual reco::CaloCluster::~CaloCluster ( )
inlinevirtual

destructor

Definition at line 110 of file CaloCluster.h.

110 {}

Member Function Documentation

void reco::CaloCluster::addHitAndFraction ( DetId  id,
float  fraction 
)
inline
AlgoId reco::CaloCluster::algo ( ) const
inline

algorithm identifier

Definition at line 177 of file CaloCluster.h.

References algoID_.

Referenced by algoID(), FWCaloClusterProxyBuilder::build(), PFElectronTranslator::createBasicCluster(), and PFPhotonTranslator::createBasicCluster().

177 { return algoID_; }
AlgoID reco::CaloCluster::algoID ( ) const
inline

Definition at line 178 of file CaloCluster.h.

References algo().

Referenced by reco::operator<<().

178 { return algo(); }
AlgoId algo() const
algorithm identifier
Definition: CaloCluster.h:177
const CaloID& reco::CaloCluster::caloID ( ) const
inline

Definition at line 188 of file CaloCluster.h.

References caloID_.

Referenced by PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), reco::PFCluster::layer(), and reco::operator<<().

188 {return caloID_;}
CaloID caloID_
bitmask for detector information
Definition: CaloCluster.h:220
double reco::CaloCluster::correctedEnergy ( ) const
inline
float reco::CaloCluster::correctedEnergyUncertainty ( ) const
inline

Definition at line 128 of file CaloCluster.h.

References correctedEnergyUncertainty_.

128 { return correctedEnergyUncertainty_; }
float correctedEnergyUncertainty_
Definition: CaloCluster.h:214
double reco::CaloCluster::energy ( ) const
inline

cluster energy

Definition at line 126 of file CaloCluster.h.

References energy_.

Referenced by ESRecoSummary::analyze(), ElectronCalibration::analyze(), ElectronCalibrationUniv::analyze(), GenPurposeSkimmerData::analyze(), ErsatzMEt::analyze(), EgammaSCEnergyCorrectionAlgo::applyCorrection(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), EgammaSCEnergyCorrectionAlgo::applyCrackCorrection(), EgammaSCEnergyCorrectionAlgo::applyLocalContCorrection(), PFElecTkProducer::applySelection(), FWCaloClusterProxyBuilder::build(), ConvertedPhotonProducer::buildCollections(), ConversionTrackCandidateProducer::buildCollections(), PFECALSuperClusterAlgo::buildSuperCluster(), SuperClusterShapeAlgo::Calculate_Covariances(), converter::SuperClusterToCandidate::convert(), EGEnergyCorrector::CorrectedEnergyWithError(), EGEnergyCorrector::CorrectedEnergyWithErrorV3(), HFRecoEcalCandidateAlgo::correctEPosition(), GsfElectronAlgo::createElectron(), TrackingRegionsFromSuperClustersProducer::createTrackingRegion(), DetectorVector(), reco::PreshowerCluster::et(), fBremScCorr(), ZeeCalibration::fillEleInfo(), PFEGammaAlgo::fillPFCandidates(), ElectronSeedProducer::filterClusters(), EcalClusterSeverityLevelAlgo::fractionAroundClosestProblematic(), SCEnergyCorrectorSemiParm::getCorrections(), EcalClusterEnergyCorrection::getValue(), EcalClusterEnergyUncertainty::getValue(), EcalClusterEnergyUncertaintyObjectSpecific::getValue(), EcalClusterCrackCorrection::getValue(), hgcal::ClusterTools::getWidths(), EcalClusterSeverityLevelAlgo::goodFraction(), isClusterEtLess(), PFEGammaFilters::isElectronSafeForJetMET(), PFElecTkProducer::isSameEgSC(), PFElecTkProducer::isSharingEcalEnergyWithEgSC(), egammaTools::localEcalClusterCoordsEB(), egammaTools::localEcalClusterCoordsEE(), Multi5x5BremRecoveryClusterAlgo::makeIslandSuperClusters(), PreshowerClusterAlgo::makeOneCluster(), OutInConversionSeedFinder::makeSeeds(), HybridClusterAlgo::makeSuperClusters(), EGRegressionModifierV1::modifyObject(), SuperClusterEt::operator()(), HoECalculator::operator()(), reco::PreshowerCluster::operator<(), reco::operator<<(), PhysicsVector(), UncleanSCRecoveryProducer::produce(), UnifiedSCCollectionProducer::produce(), EcalDigiSelector::produce(), PreshowerPhiClusterProducer::produce(), PreshowerClusterProducer::produce(), HFRecoEcalCandidateAlgo::produce(), SiStripElectronProducer::produce(), EgammaSCCorrectionMaker::produce(), HiEgammaSCCorrectionMaker::produce(), Jet.Jet::rawEnergy(), SuperClusterHelper::seedEnergy(), setEnergy(), SuperClusterHelper::sortClusters(), reco::SuperCluster::SuperCluster(), and SuperClusterHelper::SuperClusterHelper().

126 { return energy_; }
double energy_
cluster energy
Definition: CaloCluster.h:212
double reco::CaloCluster::eta ( ) const
inline

pseudorapidity of cluster centroid

Definition at line 168 of file CaloCluster.h.

References position_.

Referenced by Particle.Particle::__str__(), EgammaIsoESDetIdCollectionProducer::addDetIds(), ElectronCalibration::analyze(), GenPurposeSkimmerData::analyze(), ErsatzMEt::analyze(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), ConversionTrackCandidateProducer::buildCollections(), EgammaSuperClusters::closestMCParticle(), EgammaTowerIsolationNew< NC >::compute(), hgcal::EGammaPCAHelper::computeShowerWidth(), EGEnergyCorrector::CorrectedEnergyWithError(), EGEnergyCorrector::CorrectedEnergyWithErrorV3(), HFRecoEcalCandidateAlgo::correctEPosition(), DetectorVector(), EcalClusterLazyToolsBase::eseffsirir(), EcalClusterLazyToolsBase::eseffsixix(), EcalClusterLazyToolsBase::eseffsiyiy(), reco::PreshowerCluster::et(), SuperClusterHelper::eta(), fBremScCorr(), fEtaScCorr(), fEtEtaCorr(), EcalRegressionData::fill(), HGVHistoProducerAlgo::fill_cluster_histos(), SCEnergyCorrectorSemiParm::getCorrections(), EGRegressionModifierV3::getRegData(), EcalClusterEnergyCorrection::getValue(), EcalClusterEnergyUncertainty::getValue(), EcalClusterEnergyUncertaintyObjectSpecific::getValue(), EcalClusterCrackCorrection::getValue(), EcalClusterEnergyCorrectionObjectSpecific::getValue(), EgammaHLTEcalIsolation::isolPtSum(), Jet.Jet::jetID(), egammaTools::localEcalClusterCoordsEE(), PreshowerClusterAlgo::makeOneCluster(), EGRegressionModifierV2::modifyObject(), EGRegressionModifierV1::modifyObject(), UncleanSCRecoveryProducer::produce(), UnifiedSCCollectionProducer::produce(), EcalDigiSelector::produce(), HFRecoEcalCandidateAlgo::produce(), AlCaECALRecHitReducer::produce(), Jet.Jet::puJetId(), SuperClusterHelper::seedEta(), FWPFBlockProxyBuilder::setupClusterElement(), FWPFClusterLegoProxyBuilder::sharedBuild(), FWECALCaloDataDetailViewBuilder::superClusterEtaLess(), FWECALDetailViewBuilder::superClusterEtaLess(), and SuperClusterHelper::SuperClusterHelper().

168 { return position_.eta(); }
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
uint32_t reco::CaloCluster::flags ( ) const
inline
const std::vector< std::pair<DetId, float> >& reco::CaloCluster::hitsAndFractions ( ) const
inline

replace getHitsByDetId() : return hits by DetId and their corresponding fraction of energy considered to compute the total cluster energy

Definition at line 197 of file CaloCluster.h.

References hitsAndFractions_, mps_fire::i, operator<<, MillePedeFileConverter_cfg::out, printHitAndFraction(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by FWPFCandidateWithHitsProxyBuilder::addHitsForCandidate(), AlCaECALRecHitReducer::AddMiniRecHitCollection(), ElectronCalibration::analyze(), ElectronCalibrationUniv::analyze(), FWCaloClusterProxyBuilder::build(), GenericSimClusterMapper::buildClusters(), PFClusterFromHGCalMultiCluster::buildClusters(), RealisticSimClusterMapper::buildClusters(), PFEGammaAlgo::buildRefinedSuperCluster(), SuperClusterShapeAlgo::Calculate_Covariances(), GsfElectronAlgo::calculateShowerShape(), GsfElectronFull5x5Filler::calculateShowerShape_full5x5(), PhotonIsolationCalculator::classify(), EGEnergyCorrector::CorrectedEnergyWithError(), EGEnergyCorrector::CorrectedEnergyWithErrorV3(), PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), GsfElectronAlgo::createElectron(), ElectronSeedProducer::filterClusters(), HGVHistoProducerAlgo::findmaxhit(), EcalClusterSeverityLevelAlgo::fractionAroundClosestProblematic(), hgcal::ClusterTools::getClusterHadronFraction(), SCEnergyCorrectorSemiParm::getCorrections(), EcalClusterCrackCorrection::getValue(), hgcal::ClusterTools::getWidths(), EcalClusterSeverityLevelAlgo::goodFraction(), egammaTools::localEcalClusterCoordsEB(), egammaTools::localEcalClusterCoordsEE(), reco::operator<<(), ClusterClusterMapping::overlap(), reco::PreshowerCluster::PreshowerCluster(), HGCalLayerClusterProducer::produce(), EcalClusterToolsT< noZS >::roundnessBarrelSuperClusters(), EcalClusterToolsT< noZS >::roundnessBarrelSuperClustersUserExtended(), EcalClusterToolsT< noZS >::scLocalCovariances(), GsfElectronAlgo::setCutBasedPreselectionFlag(), EgAmbiguityTools::sharedEnergy(), FWECALDetailViewBuilder::showSuperCluster(), FWECALCaloDataDetailViewBuilder::showSuperCluster(), hgcal::EGammaPCAHelper::storeRecHits(), and EgammaHadTower::towerOf().

197 { return hitsAndFractions_; }
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:223
bool reco::CaloCluster::isInClean ( ) const
inline

Definition at line 185 of file CaloCluster.h.

References flags(), and uncleanOnly.

Referenced by UncleanSCRecoveryProducer::produce(), and UnifiedSCCollectionProducer::produce().

185 { return flags() < uncleanOnly; }
uint32_t flags() const
Definition: CaloCluster.h:180
bool reco::CaloCluster::isInUnclean ( ) const
inline

Definition at line 186 of file CaloCluster.h.

References common, and flags().

Referenced by UncleanSCRecoveryProducer::produce(), and UnifiedSCCollectionProducer::produce().

186 { return flags() >= common; }
uint32_t flags() const
Definition: CaloCluster.h:180
bool reco::CaloCluster::operator< ( const CaloCluster rhs) const
inline

comparison < operator

Definition at line 149 of file CaloCluster.h.

References energy_.

149  {
150  return (energy_< rhs.energy_);
151  }
double energy_
cluster energy
Definition: CaloCluster.h:212
bool reco::CaloCluster::operator<= ( const CaloCluster rhs) const
inline

comparison <= operator

Definition at line 144 of file CaloCluster.h.

References energy_.

144  {
145  return (energy_<=rhs.energy_);
146  }
double energy_
cluster energy
Definition: CaloCluster.h:212
bool reco::CaloCluster::operator== ( const CaloCluster rhs) const
inline

comparison == operator

Definition at line 154 of file CaloCluster.h.

References energy_.

154  {
155  return (energy_ == rhs.energy_);
156  };
double energy_
cluster energy
Definition: CaloCluster.h:212
bool reco::CaloCluster::operator> ( const CaloCluster rhs) const
inline

comparison > operator

Definition at line 139 of file CaloCluster.h.

References energy_.

139  {
140  return (energy_> rhs.energy_);
141  }
double energy_
cluster energy
Definition: CaloCluster.h:212
bool reco::CaloCluster::operator>= ( const CaloCluster rhs) const
inline

comparison >= operator

Definition at line 134 of file CaloCluster.h.

References energy_.

134  {
135  return (energy_>=rhs.energy_);
136  }
double energy_
cluster energy
Definition: CaloCluster.h:212
double reco::CaloCluster::phi ( ) const
inline
const math::XYZPoint& reco::CaloCluster::position ( ) const
inline

cluster centroid position

Definition at line 131 of file CaloCluster.h.

References position_.

Referenced by ContainmentCorrectionAnalyzer::analyze(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), ConversionTrackCandidateProducer::buildCollections(), PFEGammaAlgo::buildRefinedSuperCluster(), PFECALSuperClusterAlgo::buildSuperCluster(), SuperClusterShapeAlgo::Calculate_Covariances(), converter::SuperClusterToCandidate::convert(), PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), GsfElectronAlgo::createElectron(), TrackingRegionsFromSuperClustersProducer::createTrackingRegion(), egammaisolation::EgammaEcalExtractor::deposit(), fBremScCorr(), fEAddScCorr(), fEtaScCorr(), fEtEtaCorr(), ZeeCalibration::fillEleInfo(), PFEGammaAlgo::fillPFCandidates(), ElectronSeedProducer::filterClusters(), InOutConversionSeedFinder::findSeeds(), EgammaEcalIsolation::getEcalEtSum(), EgammaHcalIsolation::getHcalESum(), EgammaHcalIsolation::getHcalESumDepth1(), EgammaHcalIsolation::getHcalESumDepth2(), EgammaHcalIsolation::getHcalEtSum(), EgammaHcalIsolation::getHcalEtSumDepth1(), EgammaHcalIsolation::getHcalEtSumDepth2(), EgammaRecHitIsolation::getSum_(), EcalClusterCrackCorrection::getValue(), hgcal::ClusterTools::getWidths(), PFlow2DClusterizerWithTime::growPFClusters(), isClusterEtLess(), PFElecTkProducer::isSharingEcalEnergyWithEgSC(), egammaTools::localEcalClusterCoordsEB(), egammaTools::localEcalClusterCoordsEE(), Multi5x5BremRecoveryClusterAlgo::makeIslandSuperClusters(), PreshowerClusterAlgo::makeOneCluster(), OutInConversionSeedFinder::makeSeeds(), ConversionTools::matchesConversion(), SuperClusterEt::operator()(), reco::PreshowerCluster::operator<(), reco::operator<<(), reco::PreshowerCluster::operator==(), PhysicsVector(), PhysicsVectorRaw(), UncleanSCRecoveryProducer::produce(), EgammaSCCorrectionMaker::produce(), HiEgammaSCCorrectionMaker::produce(), SimPFProducer::produce(), PFAlgo::reconstructCluster(), KDTreeLinkerPSEcal::searchLinks(), InOutConversionSeedFinder::startSeed(), reco::SuperCluster::SuperCluster(), LinkByRecHit::testECALAndPSByRecHit(), LinkByRecHit::testHFEMAndHFHADByRecHit(), and LinkByRecHit::testTrackAndClusterByRecHit().

131 { return position_; }
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
string CaloCluster::printHitAndFraction ( unsigned  i) const

print hitAndFraction

Definition at line 17 of file CaloCluster.cc.

References mps_fire::i, MillePedeFileConverter_cfg::out, and findQualityFiles::size.

Referenced by hitsAndFractions(), and reco::operator<<().

17  {
18 
19  ostringstream out;
20  if( i>=hitsAndFractions().size() ) // i >= 0, since i is unsigned
21  out<<"out of range "<<i;
22  else
23  out<<"( "<<hitsAndFractions()[i].first
24  <<", "<<hitsAndFractions()[i].second
25  <<" )";
26  return out.str();
27 }
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
Definition: CaloCluster.h:197
size_t size() const
size in number of hits (e.g. in crystals for ECAL)
Definition: CaloCluster.h:174
void CaloCluster::reset ( void  )

resets the CaloCluster (position, energy, hitsAndFractions)

Definition at line 11 of file CaloCluster.cc.

Referenced by CaloCluster(), and reco::PFCluster::reset().

11  {
13  energy_ = 0;
14  hitsAndFractions_.clear();
15 }
math::XYZPoint position_
cluster centroid position
Definition: CaloCluster.h:217
double energy_
cluster energy
Definition: CaloCluster.h:212
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:223
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
DetId reco::CaloCluster::seed ( ) const
inline
void reco::CaloCluster::setAlgoId ( const AlgoId id)
inline

Definition at line 121 of file CaloCluster.h.

References algoID_, and triggerObjects_cff::id.

void reco::CaloCluster::setCaloId ( const CaloID id)
inline

Definition at line 119 of file CaloCluster.h.

References caloID_, and triggerObjects_cff::id.

119 {caloID_= id;}
CaloID caloID_
bitmask for detector information
Definition: CaloCluster.h:220
void reco::CaloCluster::setCorrectedEnergy ( double  cenergy)
inline
void reco::CaloCluster::setCorrectedEnergyUncertainty ( float  energyerr)
inline
void reco::CaloCluster::setEnergy ( double  energy)
inline
void reco::CaloCluster::setFlags ( uint32_t  flags)
inline

Definition at line 181 of file CaloCluster.h.

References flags_, and flagsMask_.

Referenced by Vispa.Plugins.EdmBrowser.EventContentView.LabelItem::__init__(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), UncleanSCRecoveryProducer::produce(), and UnifiedSCCollectionProducer::produce().

181  {
182  uint32_t reserved = (flags_ & ~flagsMask_);
183  flags_ = (reserved ) | (flags & flagsMask_);
184  }
uint32_t flags() const
Definition: CaloCluster.h:180
static const uint32_t flagsMask_
Definition: CaloCluster.h:236
void reco::CaloCluster::setPosition ( const math::XYZPoint p)
inline
void reco::CaloCluster::setSeed ( const DetId id)
inline
size_t reco::CaloCluster::size ( void  ) const
inline

size in number of hits (e.g. in crystals for ECAL)

Definition at line 174 of file CaloCluster.h.

References hitsAndFractions_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), and HGCalLayerClusterProducer::produce().

174 { return hitsAndFractions_.size(); }
std::vector< std::pair< DetId, float > > hitsAndFractions_
Definition: CaloCluster.h:223
double reco::CaloCluster::x ( ) const
inline
double reco::CaloCluster::y ( ) const
inline
double reco::CaloCluster::z ( ) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const CaloCluster cluster 
)
friend

print me

Referenced by hitsAndFractions().

Member Data Documentation

AlgoID reco::CaloCluster::algoID_
protected

Definition at line 226 of file CaloCluster.h.

Referenced by algo(), and setAlgoId().

CaloID reco::CaloCluster::caloID_
protected

bitmask for detector information

Definition at line 220 of file CaloCluster.h.

Referenced by caloID(), setCaloId(), and reco::PFCluster::setLayer().

double reco::CaloCluster::correctedEnergy_
protected

Definition at line 213 of file CaloCluster.h.

Referenced by correctedEnergy(), and setCorrectedEnergy().

float reco::CaloCluster::correctedEnergyUncertainty_
protected

Definition at line 214 of file CaloCluster.h.

Referenced by correctedEnergyUncertainty(), and setCorrectedEnergyUncertainty().

double reco::CaloCluster::energy_
protected
uint32_t reco::CaloCluster::flags_
protected

flags (e.g. for handling of cleaned/uncleaned SC) 4 most significant bits reserved 28 bits for handling of cleaned/uncleaned

Definition at line 234 of file CaloCluster.h.

Referenced by CaloCluster(), flags(), reco::SuperCluster::getPreshowerPlanesStatus(), setFlags(), and reco::SuperCluster::setPreshowerPlanesStatus().

const uint32_t reco::CaloCluster::flagsMask_ =0x0FFFFFFF
staticprotected
const uint32_t reco::CaloCluster::flagsOffset_ =28
staticprotected
std::vector< std::pair<DetId, float> > reco::CaloCluster::hitsAndFractions_
protected
math::XYZPoint reco::CaloCluster::position_
protected
DetId reco::CaloCluster::seedId_
protected

DetId of seed.

Definition at line 229 of file CaloCluster.h.

Referenced by seed(), and setSeed().