#include <CaloCluster.h>
Public Types | |
enum | AlgoId { island = 0, hybrid = 1, fixedMatrix = 2, dynamicHybrid = 3, multi5x5 = 4, particleFlow = 5, undefined = 1000 } |
typedef AlgoId | AlgoID |
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 CaloID & | caloID () 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::XYZPoint & | position () 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 | 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 | 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... | |
Base class for all types calorimeter clusters
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 30 of file CaloCluster.h.
typedef AlgoId reco::CaloCluster::AlgoID |
Definition at line 40 of file CaloCluster.h.
Enumerator | |
---|---|
island | |
hybrid | |
fixedMatrix | |
dynamicHybrid | |
multi5x5 | |
particleFlow | |
undefined |
Definition at line 33 of file CaloCluster.h.
Enumerator | |
---|---|
cleanOnly | |
common | |
uncleanOnly |
Definition at line 36 of file CaloCluster.h.
|
inline |
default constructor. Sets energy and position to zero
Definition at line 43 of file CaloCluster.h.
|
inline |
constructor with algoId, to be used in all child classes
Definition at line 48 of file CaloCluster.h.
|
inline |
Definition at line 52 of file CaloCluster.h.
|
inline |
constructor from values
Definition at line 62 of file CaloCluster.h.
|
inline |
Definition at line 67 of file CaloCluster.h.
References flags(), flags_, and flagsMask_.
|
inline |
Definition at line 77 of file CaloCluster.h.
References flags(), flags_, and flagsMask_.
|
inline |
temporary compatibility constructor
Definition at line 91 of file CaloCluster.h.
References flags(), flags_, flagsMask_, hitsAndFractions_, and i.
|
inlinevirtual |
|
inline |
Definition at line 182 of file CaloCluster.h.
References hitsAndFractions_.
Referenced by reco::PFCluster::addRecHitFraction(), PFElectronTranslator::createSuperClusters(), PFPhotonTranslator::createSuperClusters(), and ggPFClusters::getPFClusters().
|
inline |
algorithm identifier
Definition at line 169 of file CaloCluster.h.
References algoID_.
Referenced by algoID(), PFElectronTranslator::createBasicCluster(), and PFPhotonTranslator::createBasicCluster().
|
inline |
|
inline |
Definition at line 180 of file CaloCluster.h.
References caloID_.
Referenced by PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), and reco::PFCluster::layer().
|
inline |
cluster energy
Definition at line 120 of file CaloCluster.h.
References energy_.
Referenced by ESRecoSummary::analyze(), GenPurposeSkimmerData::analyze(), ErsatzMEt::analyze(), EgammaSCEnergyCorrectionAlgo::applyCorrection(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), EgammaSCEnergyCorrectionAlgo::applyCrackCorrection(), EgammaSCEnergyCorrectionAlgo::applyLocalContCorrection(), ConvertedPhotonProducer::buildCollections(), ConversionTrackCandidateProducer::buildCollections(), SuperClusterShapeAlgo::Calculate_Covariances(), converter::SuperClusterToCandidate::convert(), HFRecoEcalCandidateAlgo::correctEPosition(), GsfElectronAlgo::createElectron(), DetectorVector(), reco::PreshowerCluster::et(), fBremScCorr(), ZeeCalibration::fillEleInfo(), FastElectronSeedProducer::filterClusters(), ElectronSeedProducer::filterClusters(), EcalClusterSeverityLevelAlgo::fractionAroundClosestProblematic(), EcalClusterEnergyCorrection::getValue(), EcalClusterEnergyUncertainty::getValue(), EcalClusterEnergyUncertaintyObjectSpecific::getValue(), EcalClusterCrackCorrection::getValue(), EcalClusterSeverityLevelAlgo::goodFraction(), EcalClusterLocal::localCoordsEB(), ggPFClusters::localCoordsEB(), EcalClusterLocal::localCoordsEE(), ggPFClusters::localCoordsEE(), ggPFClusters::LocalEnergyCorrection(), PreshowerClusterAlgo::makeOneCluster(), HybridClusterAlgo::makeSuperClusters(), SuperClusterEt::operator()(), ClusterEtLess::operator()(), HoECalculator::operator()(), reco::PreshowerCluster::operator<(), PhysicsVector(), UnifiedSCCollectionProducer::produce(), UncleanSCRecoveryProducer::produce(), EcalDigiSelector::produce(), HFRecoEcalCandidateAlgo::produce(), ElectronRecalibSuperClusterAssociator::produce(), PreshowerClusterProducer::produce(), SiStripElectronProducer::produce(), EgammaSCCorrectionMaker::produce(), HiEgammaSCCorrectionMaker::produce(), ecaldqm::ClusterTask::runOnSuperClusters(), SuperClusterHelper::seedEnergy(), setEnergy(), SuperClusterHelper::sortClusters(), and SuperClusterHelper::SuperClusterHelper().
|
inline |
pseudorapidity of cluster centroid
Definition at line 160 of file CaloCluster.h.
References position_.
Referenced by HLTEgamma::analyze(), GenPurposeSkimmerData::analyze(), ErsatzMEt::analyze(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), ConversionTrackCandidateProducer::buildCollections(), EgammaSuperClusters::closestMCParticle(), HFRecoEcalCandidateAlgo::correctEPosition(), DetectorVector(), EcalClusterLazyTools::eseffsirir(), EcalClusterLazyTools::eseffsixix(), EcalClusterLazyTools::eseffsiyiy(), reco::PreshowerCluster::et(), SuperClusterHelper::eta(), fBremScCorr(), fEtaScCorr(), fEtEtaCorr(), FastElectronSeedProducer::filterClusters(), EgammaTowerIsolation::getTowerESum(), EgammaTowerIsolation::getTowerEtSum(), EcalClusterEnergyCorrection::getValue(), EcalClusterEnergyUncertaintyObjectSpecific::getValue(), EcalClusterEnergyUncertainty::getValue(), EcalClusterCrackCorrection::getValue(), EcalClusterEnergyCorrectionObjectSpecific::getValue(), EgammaHLTEcalIsolation::isolPtSum(), EcalClusterLocal::localCoordsEE(), ggPFClusters::localCoordsEE(), ggPFClusters::LocalEnergyCorrection(), PreshowerClusterAlgo::makeOneCluster(), superClsterEtaLess::operator()(), ggPFPhotons::PhotonPFCandMatch(), UnifiedSCCollectionProducer::produce(), UncleanSCRecoveryProducer::produce(), EcalDigiSelector::produce(), HFRecoEcalCandidateAlgo::produce(), SuperClusterHelper::seedEta(), FWPFBlockProxyBuilder::setupClusterElement(), FWPFClusterLegoProxyBuilder::sharedBuild(), FWECALDetailViewBuilder::superClusterEtaLess(), SuperClusterHelper::SuperClusterHelper(), and ggPFPhotons::SuperClusterSize().
|
inline |
Definition at line 172 of file CaloCluster.h.
References flags_, and flagsMask_.
Referenced by HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), CaloCluster(), isInClean(), isInUnclean(), and reco::SuperCluster::setPreshowerPlanesStatus().
|
inline |
replace getHitsByDetId() : return hits by DetId and their corresponding fraction of energy considered to compute the total cluster energy
Definition at line 189 of file CaloCluster.h.
References hitsAndFractions_.
Referenced by FWCaloClusterProxyBuilder::build(), SuperClusterShapeAlgo::Calculate_Covariances(), GsfElectronAlgo::calculateShowerShape(), PhotonIsolationCalculator::classify(), PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), GsfElectronAlgo::createElectron(), EcalClusterSeverityLevelAlgo::fractionAroundClosestProblematic(), ggPFESClusters::getLinkDist(), ggPFClusters::getPFSuperclusterOverlap(), EcalClusterCrackCorrection::getValue(), EcalClusterSeverityLevelAlgo::goodFraction(), EcalClusterLocal::localCoordsEB(), ggPFClusters::localCoordsEB(), EcalClusterLocal::localCoordsEE(), ggPFClusters::localCoordsEE(), ggPFClusters::LocalEnergyCorrection(), ClusterClusterMapping::overlap(), reco::PreshowerCluster::PreshowerCluster(), AlCaECALRecHitReducer::produce(), EcalClusterTools::roundnessBarrelSuperClusters(), EcalClusterTools::roundnessBarrelSuperClustersUserExtended(), EcalClusterTools::scLocalCovariances(), GsfElectronAlgo::setCutBasedPreselectionFlag(), EgAmbiguityTools::sharedEnergy(), FWECALDetailViewBuilder::showSuperCluster(), and EgammaHadTower::towerOf().
|
inline |
Definition at line 177 of file CaloCluster.h.
References flags(), and uncleanOnly.
Referenced by UnifiedSCCollectionProducer::produce(), and UncleanSCRecoveryProducer::produce().
|
inline |
Definition at line 178 of file CaloCluster.h.
References common, and flags().
Referenced by UnifiedSCCollectionProducer::produce(), and UncleanSCRecoveryProducer::produce().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
azimuthal angle of cluster centroid
Definition at line 163 of file CaloCluster.h.
References position_.
Referenced by HLTEgamma::analyze(), GenPurposeSkimmerData::analyze(), ErsatzMEt::analyze(), EgammaSuperClusters::closestMCParticle(), HFRecoEcalCandidateAlgo::correctEPosition(), DetectorVector(), EgammaTowerIsolation::getTowerESum(), EgammaTowerIsolation::getTowerEtSum(), EgammaHLTEcalIsolation::isolPtSum(), ggPFClusters::LocalEnergyCorrection(), PreshowerClusterAlgo::makeOneCluster(), reco::PreshowerCluster::operator==(), SuperClusterHelper::phi(), ggPFPhotons::PhotonPFCandMatch(), HFRecoEcalCandidateAlgo::produce(), ecaldqm::ClusterTask::runOnSuperClusters(), SuperClusterHelper::seedPhi(), FWPFBlockProxyBuilder::setupClusterElement(), FWPFClusterLegoProxyBuilder::sharedBuild(), SuperClusterHelper::SuperClusterHelper(), and ggPFPhotons::SuperClusterSize().
|
inline |
cluster centroid position
Definition at line 123 of file CaloCluster.h.
References position_.
Referenced by ContainmentCorrectionAnalyzer::analyze(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), ConversionTrackCandidateProducer::buildCollections(), SuperClusterShapeAlgo::Calculate_Covariances(), converter::SuperClusterToCandidate::convert(), PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), GsfElectronAlgo::createElectron(), DisplayManager::createGCluster(), egammaisolation::EgammaEcalExtractor::deposit(), fBremScCorr(), fEAddScCorr(), fEtaScCorr(), fEtEtaCorr(), ZeeCalibration::fillEleInfo(), ElectronSeedProducer::filterClusters(), InOutConversionSeedFinder::findSeeds(), EgammaEcalIsolation::getEcalEtSum(), EgammaHcalIsolation::getHcalESum(), EgammaHcalIsolation::getHcalESumDepth1(), EgammaHcalIsolation::getHcalESumDepth2(), EgammaHcalIsolation::getHcalEtSum(), EgammaHcalIsolation::getHcalEtSumDepth1(), EgammaHcalIsolation::getHcalEtSumDepth2(), ggPFESClusters::getLinkDist(), EgammaRecHitIsolation::getSum_(), EcalClusterCrackCorrection::getValue(), PFElecTkProducer::isSharingEcalEnergyWithEgSC(), EcalClusterLocal::localCoordsEB(), ggPFClusters::localCoordsEB(), EcalClusterLocal::localCoordsEE(), ggPFClusters::localCoordsEE(), PreshowerClusterAlgo::makeOneCluster(), ConversionTools::matchesConversion(), SuperClusterEt::operator()(), ClusterEtLess::operator()(), reco::PreshowerCluster::operator<(), reco::PreshowerCluster::operator==(), PhysicsVector(), PhysicsVectorRaw(), PFRootEventManager::printCluster(), UncleanSCRecoveryProducer::produce(), ElectronRecalibSuperClusterAssociator::produce(), EgammaSCCorrectionMaker::produce(), HiEgammaSCCorrectionMaker::produce(), PFAlgo::reconstructCluster(), ecaldqm::ClusterTask::runOnSuperClusters(), KDTreeLinkerPSEcal::searchLinks(), InOutConversionSeedFinder::startSeed(), LinkByRecHit::testECALAndPSByRecHit(), LinkByRecHit::testHFEMAndHFHADByRecHit(), PFBlockAlgo::testPS1AndPS2(), LinkByRecHit::testTrackAndClusterByRecHit(), and PFBlockAlgo::testTrackAndPS().
string CaloCluster::printHitAndFraction | ( | unsigned | i | ) | const |
print hitAndFraction
Definition at line 17 of file CaloCluster.cc.
References i, dbtoconf::out, and findQualityFiles::size.
void CaloCluster::reset | ( | void | ) |
resets the CaloCluster (position, energy, hitsAndFractions)
Definition at line 11 of file CaloCluster.cc.
Referenced by reco::PFCluster::reset().
|
inline |
return DetId of seed
Definition at line 199 of file CaloCluster.h.
References seedId_.
Referenced by PFElectronTranslator::createBasicCluster(), PFPhotonTranslator::createBasicCluster(), FourVectorHLTOffline::selectElectrons(), and EgammaHadTower::towerOf().
|
inline |
Definition at line 115 of file CaloCluster.h.
References algoID_, and errorMatrix2Lands_multiChannel::id.
|
inline |
Definition at line 113 of file CaloCluster.h.
References caloID_, and errorMatrix2Lands_multiChannel::id.
|
inline |
Definition at line 109 of file CaloCluster.h.
References energy(), and energy_.
Referenced by EgammaSCEnergyCorrectionAlgo::applyCorrection(), EgammaSCEnergyCorrectionAlgo::applyCrackCorrection(), EgammaSCEnergyCorrectionAlgo::applyLocalContCorrection(), and ggPFPhotons::PhotonPFCandMatch().
|
inline |
Definition at line 173 of file CaloCluster.h.
References flags_, and flagsMask_.
Referenced by Vispa.Plugins.EdmBrowser.EventContentView.LabelItem::__init__(), HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), UnifiedSCCollectionProducer::produce(), and UncleanSCRecoveryProducer::produce().
|
inline |
Definition at line 111 of file CaloCluster.h.
References AlCaHLTBitMon_ParallelJobs::p, and position_.
Referenced by ggPFPhotons::PhotonPFCandMatch().
|
inline |
Definition at line 117 of file CaloCluster.h.
References errorMatrix2Lands_multiChannel::id, and seedId_.
|
inline |
size in number of hits (e.g. in crystals for ECAL)
Definition at line 166 of file CaloCluster.h.
References hitsAndFractions_.
Referenced by HiEgammaSCEnergyCorrectionAlgo::applyCorrection(), and AlCaECALRecHitReducer::produce().
|
inline |
x coordinate of cluster centroid
Definition at line 151 of file CaloCluster.h.
References position_.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), FWPFClusterRPZProxyBuilder::build(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), EcalClusterLazyTools::eseffsirir(), EcalClusterLazyTools::eseffsixix(), EcalClusterLazyTools::eseffsiyiy(), PreshowerClusterAlgo::makeOneCluster(), HoECalculator::operator()(), ggPFPhotons::PhotonPFCandMatch(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), FWPFBlockProxyBuilder::setupClusterElement(), FWPFClusterRPZProxyBuilder::sharedBuild(), and FWPFClusterLegoProxyBuilder::sharedBuild().
|
inline |
y coordinate of cluster centroid
Definition at line 154 of file CaloCluster.h.
References position_.
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), FWPFClusterRPZProxyBuilder::build(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), EcalClusterLazyTools::eseffsirir(), EcalClusterLazyTools::eseffsixix(), EcalClusterLazyTools::eseffsiyiy(), PreshowerClusterAlgo::makeOneCluster(), HoECalculator::operator()(), ggPFPhotons::PhotonPFCandMatch(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), FWPFBlockProxyBuilder::setupClusterElement(), FWPFClusterRPZProxyBuilder::sharedBuild(), and FWPFClusterLegoProxyBuilder::sharedBuild().
|
inline |
z coordinate of cluster centroid
Definition at line 157 of file CaloCluster.h.
References position_.
Referenced by FWPFClusterRPZProxyBuilder::build(), FWPFClusterRPZUtils::buildRhoPhiClusterLineSet(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), DisplayManager::createGCluster(), EcalClusterLazyTools::eseffsirir(), EcalClusterLazyTools::eseffsixix(), EcalClusterLazyTools::eseffsiyiy(), PreshowerClusterAlgo::makeOneCluster(), HoECalculator::operator()(), ggPFPhotons::PhotonPFCandMatch(), geometryXMLparser.Alignable::pos(), FWPFBlockProxyBuilder::setupClusterElement(), FWPFClusterRPZProxyBuilder::sharedBuild(), and FWPFClusterLegoProxyBuilder::sharedBuild().
|
friend |
print me
|
protected |
Definition at line 216 of file CaloCluster.h.
Referenced by algo(), and setAlgoId().
|
protected |
bitmask for detector information
Definition at line 210 of file CaloCluster.h.
Referenced by caloID(), setCaloId(), and reco::PFCluster::setLayer().
|
protected |
cluster energy
Definition at line 204 of file CaloCluster.h.
Referenced by PFClusterAlgo::calculateClusterPosition(), reco::PFCluster::energy(), energy(), operator<(), operator<=(), reco::PFCluster::operator=(), operator==(), operator>(), operator>=(), reco::PFCluster::reset(), and setEnergy().
|
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 224 of file CaloCluster.h.
Referenced by CaloCluster(), flags(), reco::SuperCluster::getPreshowerPlanesStatus(), setFlags(), and reco::SuperCluster::setPreshowerPlanesStatus().
|
staticprotected |
Definition at line 226 of file CaloCluster.h.
Referenced by CaloCluster(), flags(), setFlags(), and reco::SuperCluster::setPreshowerPlanesStatus().
|
staticprotected |
Definition at line 227 of file CaloCluster.h.
Referenced by reco::SuperCluster::getPreshowerPlanesStatus(), and reco::SuperCluster::setPreshowerPlanesStatus().
|
protected |
Definition at line 213 of file CaloCluster.h.
Referenced by addHitAndFraction(), CaloCluster(), hitsAndFractions(), reco::PreshowerCluster::nhits(), reco::PreshowerCluster::PreshowerCluster(), size(), and reco::SuperCluster::SuperCluster().
|
protected |
cluster centroid position
Definition at line 207 of file CaloCluster.h.
Referenced by PFClusterAlgo::calculateClusterPosition(), reco::PFCluster::calculatePositionREP(), eta(), reco::PFCluster::operator=(), phi(), position(), reco::PFCluster::pt(), reco::PFCluster::reset(), setPosition(), reco::PFCluster::theta(), x(), y(), and z().