#include <SuperClusterHelper.h>
Public Member Functions | |
float | clustersSize () const |
float | e2nd () const |
float | e2x5Bottom () const |
float | e2x5Left () const |
float | e2x5Max () const |
float | e2x5Right () const |
float | e2x5Top () const |
float | e3x3 () const |
float | e5x5 () const |
float | eBottom () const |
float | eESClusters () const |
float | eLeft () const |
float | eMax () const |
float | eRight () const |
float | esClusterEnergy (unsigned i) const |
float | esClusterEta (unsigned i) const |
float | esClusterPhi (unsigned i) const |
float | eSubClusters () const |
float | eta () const |
float | etaCrySeed () |
float | etaWidth () const |
float | eTop () const |
float | hadronicOverEm () const |
int | ietaSeed () |
int | iphiSeed () |
float | nPreshowerClusters () const |
float | phi () const |
float | phiCrySeed () |
float | phiTilt () |
float | phiWidth () const |
float | preshowerEnergy () const |
float | preshowerEnergyOverRaw () const |
float | r9 () const |
float | rawEnergy () const |
float | seedEnergy () const |
float | seedEta () const |
float | seedPhi () const |
float | sep () |
float | sigmaIetaIeta () const |
float | spp () |
float | subClusterE3x3 (unsigned i) const |
float | subClusterEmax (unsigned i) const |
float | subClusterEnergy (unsigned i) const |
float | subClusterEta (unsigned i) const |
float | subClusterPhi (unsigned i) const |
SuperClusterHelper (const pat::Electron *electron, const EcalRecHitCollection *rechits, const CaloTopology *, const CaloGeometry *) | |
SuperClusterHelper (const reco::GsfElectron *electron, const EcalRecHitCollection *rechits, const CaloTopology *, const CaloGeometry *) | |
float | thetaTilt () |
~SuperClusterHelper () | |
Private Member Functions | |
void | computeLocalCovariances () |
void | localCoordinates () |
Static Private Member Functions | |
static bool | sortClusters (const reco::CaloCluster *c1, const reco::CaloCluster *c2) |
Private Attributes | |
bool | barrel_ |
bool | covComputed_ |
float | eESClusters_ |
float | eSubClusters_ |
float | etaCrySeed_ |
const CaloGeometry * | geometry_ |
int | ietaSeed_ |
int | iphiSeed_ |
EcalClusterLocal | local_ |
bool | localCoordinatesComputed_ |
local coordinates | |
unsigned | nBasicClusters_ |
unsigned | nESClusters_ |
float | phiCrySeed_ |
float | phiTilt_ |
const EcalRecHitCollection * | rechits_ |
const reco::CaloCluster * | seedCluster_ |
float | sep_ |
float | spp_ |
std::vector< const reco::CaloCluster * > | theBasicClusters_ |
const reco::GsfElectron * | theElectron_ |
std::vector< const reco::CaloCluster * > | theESClusters_ |
const reco::SuperCluster * | theSuperCluster_ |
float | thetaTilt_ |
const CaloTopology * | topology_ |
std::vector< float > | vCov_ |
Definition at line 14 of file SuperClusterHelper.h.
SuperClusterHelper::SuperClusterHelper | ( | const reco::GsfElectron * | electron, |
const EcalRecHitCollection * | rechits, | ||
const CaloTopology * | topo, | ||
const CaloGeometry * | geom | ||
) |
Definition at line 7 of file SuperClusterHelper.cc.
References barrel_, reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), covComputed_, eESClusters_, metsig::electron, eSubClusters_, relativeConstraints::geom, geometry_, reco::GsfElectron::isEB(), localCoordinatesComputed_, nBasicClusters_, nESClusters_, reco::SuperCluster::preshowerClustersBegin(), reco::SuperCluster::preshowerClustersEnd(), HI_PhotonSkim_cff::rechits, rechits_, seedCluster_, python::multivaluedict::sort(), sortClusters(), reco::GsfElectron::superCluster(), theBasicClusters_, theElectron_, theESClusters_, theSuperCluster_, and topology_.
{ theElectron_ = electron; rechits_ = rechits ; seedCluster_ = & (*(electron->superCluster()->seed())); theSuperCluster_ = &(*electron->superCluster()); eSubClusters_ = 0.; // Store subclusters reco::CaloCluster_iterator itscl = theSuperCluster_->clustersBegin(); reco::CaloCluster_iterator itsclE = theSuperCluster_->clustersEnd(); for(; itscl < itsclE ; ++itscl) { if((*itscl)==electron->superCluster()->seed()) continue; // skip seed cluster theBasicClusters_.push_back(&(**itscl)); eSubClusters_ += (*itscl)->energy(); } // sort subclusters sort(theBasicClusters_.begin(), theBasicClusters_.end(), SuperClusterHelper::sortClusters); // Add seed cluster at the beginning theBasicClusters_.insert(theBasicClusters_.begin(), seedCluster_); nBasicClusters_ = theBasicClusters_.size(); // Store ES clusters eESClusters_ = 0. ; itscl = theSuperCluster_->preshowerClustersBegin(); itsclE = theSuperCluster_->preshowerClustersEnd(); for( ; itscl < itsclE ; ++ itscl) { theESClusters_.push_back(&(**itscl)); eESClusters_ += (*itscl)->energy(); } // sort ES clusters sort(theESClusters_.begin(), theESClusters_.end(), SuperClusterHelper::sortClusters); nESClusters_ = theESClusters_.size(); topology_ = topo; geometry_ = geom; barrel_ = electron->isEB(); covComputed_ = false; localCoordinatesComputed_ = false; }
SuperClusterHelper::SuperClusterHelper | ( | const pat::Electron * | electron, |
const EcalRecHitCollection * | rechits, | ||
const CaloTopology * | topo, | ||
const CaloGeometry * | geom | ||
) |
Definition at line 49 of file SuperClusterHelper.cc.
References barrel_, pat::Electron::basicClusters(), covComputed_, alignCSCRings::e, eESClusters_, reco::CaloCluster::energy(), relval_parameters_module::energy, eSubClusters_, reco::CaloCluster::eta(), eta(), relativeConstraints::geom, geometry_, reco::GsfElectron::isEB(), localCoordinatesComputed_, nBasicClusters_, nESClusters_, phi(), reco::CaloCluster::phi(), pat::Electron::preshowerClusters(), HI_PhotonSkim_cff::rechits, rechits_, pat::Electron::seed(), seedCluster_, python::multivaluedict::sort(), sortClusters(), pat::Electron::superCluster(), theBasicClusters_, theElectron_, theESClusters_, theSuperCluster_, and topology_.
{ theElectron_ = (const reco::GsfElectron*)electron; rechits_ = rechits ; // for(unsigned ir=0; ir<rechits_->size();++ir) { // std::cout << "RecHit " << (*rechits_)[ir].id().rawId() << " " << (*rechits_)[ir] << std::endl; // } // Get the embedded objects theSuperCluster_ = &(*electron->superCluster()); seedCluster_ = & (*(electron->seed())); const std::vector<reco::CaloCluster>& basicClusters(electron->basicClusters()); nBasicClusters_ = basicClusters.size(); eSubClusters_ = 0. ; // Store subclusters for ( unsigned ib = 0; ib < nBasicClusters_ ; ++ib) { if(fabs((basicClusters[ib].energy()-seedCluster_->energy())/seedCluster_->energy())<1.e-5 && fabs((basicClusters[ib].eta()-seedCluster_->eta())/seedCluster_->eta())<1.e-5 && fabs((basicClusters[ib].phi()-seedCluster_->phi())/seedCluster_->phi())<1.e-5 ) continue; // skip seed cluster theBasicClusters_.push_back(&basicClusters[ib]); eSubClusters_ += basicClusters[ib].energy(); } // sort subclusters sort(theBasicClusters_.begin(), theBasicClusters_.end(), SuperClusterHelper::sortClusters); // Add seed cluster at the beginning theBasicClusters_.insert(theBasicClusters_.begin(), seedCluster_); // Store ES clusters const std::vector<reco::CaloCluster>& esClusters(electron->preshowerClusters()); nESClusters_ = esClusters.size(); eESClusters_ = 0. ; for (unsigned ib = 0 ; ib < nESClusters_ ; ++ ib) { theESClusters_.push_back(&esClusters[ib]); eESClusters_ += esClusters[ib].energy(); } // sort ES clusters sort(theESClusters_.begin(), theESClusters_.end(), SuperClusterHelper::sortClusters); // std::vector< std::pair<DetId, float> >::const_iterator it=seedCluster_->hitsAndFractions().begin(); // std::vector< std::pair<DetId, float> >::const_iterator itend=seedCluster_->hitsAndFractions().end(); // for( ; it!=itend ; ++it) { // DetId id=it->first; // std::cout << " Basic cluster " << id.rawId() << std::endl; // } topology_ = topo; geometry_ = geom; barrel_ = electron->isEB(); covComputed_ = false; localCoordinatesComputed_ = false; }
SuperClusterHelper::~SuperClusterHelper | ( | ) | [inline] |
Definition at line 18 of file SuperClusterHelper.h.
{};
float SuperClusterHelper::clustersSize | ( | ) | const [inline] |
Definition at line 25 of file SuperClusterHelper.h.
References reco::SuperCluster::clustersSize(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return theSuperCluster_->clustersSize();}
void SuperClusterHelper::computeLocalCovariances | ( | ) | [private] |
Definition at line 100 of file SuperClusterHelper.cc.
References covComputed_, edm::detail::isnan(), EcalClusterTools::localCovariances(), rechits_, seedCluster_, sep_, reco::GsfElectron::sigmaIetaIeta(), spp_, mathSSE::sqrt(), theElectron_, topology_, and vCov_.
Referenced by sep(), and spp().
{ if (!covComputed_) { vCov_ = EcalClusterTools::localCovariances(*seedCluster_, rechits_, topology_, 4.7); covComputed_ = true; spp_ = 0; if (!isnan(vCov_[2])) spp_ = sqrt (vCov_[2]); if (theElectron_->sigmaIetaIeta()*spp_ > 0) { sep_ = vCov_[1] / (theElectron_->sigmaIetaIeta() * spp_); } else if (vCov_[1] > 0) { sep_ = 1.0; } else { sep_ = -1.0; } } }
float SuperClusterHelper::e2nd | ( | ) | const [inline] |
Definition at line 33 of file SuperClusterHelper.h.
References rechits_, and seedCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::e2nd(*seedCluster_,rechits_); }
float SuperClusterHelper::e2x5Bottom | ( | ) | const [inline] |
Definition at line 40 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::e2x5Bottom(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::e2x5Left | ( | ) | const [inline] |
Definition at line 41 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::e2x5Left(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::e2x5Max | ( | ) | const [inline] |
Definition at line 38 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::e2x5Max(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::e2x5Right | ( | ) | const [inline] |
Definition at line 42 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::e2x5Right(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::e2x5Top | ( | ) | const [inline] |
Definition at line 39 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::e2x5Top(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::e3x3 | ( | ) | const [inline] |
Definition at line 30 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), RegressionEnergyPatElectronProducer::produce(), r9(), and subClusterE3x3().
{ return EcalClusterTools::e3x3(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::e5x5 | ( | ) | const [inline] |
Definition at line 31 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::e5x5(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::eBottom | ( | ) | const [inline] |
Definition at line 35 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::eBottom(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::eESClusters | ( | ) | const [inline] |
Definition at line 71 of file SuperClusterHelper.h.
References eESClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return eESClusters_;}
float SuperClusterHelper::eLeft | ( | ) | const [inline] |
Definition at line 36 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::eLeft(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::eMax | ( | ) | const [inline] |
Definition at line 32 of file SuperClusterHelper.h.
References rechits_, and seedCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), RegressionEnergyPatElectronProducer::produce(), and subClusterEmax().
{ return EcalClusterTools::eMax(*seedCluster_,rechits_); }
float SuperClusterHelper::eRight | ( | ) | const [inline] |
Definition at line 37 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::eRight(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::esClusterEnergy | ( | unsigned | i | ) | const |
Definition at line 160 of file SuperClusterHelper.cc.
References i, nESClusters_, and theESClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nESClusters_ > i) ? theESClusters_[i]->energy() : 0. ; }
float SuperClusterHelper::esClusterEta | ( | unsigned | i | ) | const |
Definition at line 164 of file SuperClusterHelper.cc.
References i, nESClusters_, and theESClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nESClusters_ > i) ? theESClusters_[i]->eta() : 999. ; }
float SuperClusterHelper::esClusterPhi | ( | unsigned | i | ) | const |
Definition at line 168 of file SuperClusterHelper.cc.
References i, nESClusters_, and theESClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nESClusters_ > i) ? theESClusters_[i]->phi() : 999. ; }
float SuperClusterHelper::eSubClusters | ( | ) | const [inline] |
Definition at line 64 of file SuperClusterHelper.h.
References eSubClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return eSubClusters_;}
float SuperClusterHelper::eta | ( | ) | const [inline] |
Definition at line 21 of file SuperClusterHelper.h.
References reco::CaloCluster::eta(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), RegressionEnergyPatElectronProducer::produce(), and SuperClusterHelper().
{return theSuperCluster_->eta();}
float SuperClusterHelper::etaCrySeed | ( | ) | [inline] |
Definition at line 52 of file SuperClusterHelper.h.
References etaCrySeed_, and localCoordinates().
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ localCoordinates(); return etaCrySeed_;}
float SuperClusterHelper::etaWidth | ( | ) | const [inline] |
Definition at line 23 of file SuperClusterHelper.h.
References reco::SuperCluster::etaWidth(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return theSuperCluster_->etaWidth();}
float SuperClusterHelper::eTop | ( | ) | const [inline] |
Definition at line 34 of file SuperClusterHelper.h.
References rechits_, seedCluster_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return EcalClusterTools::eTop(*seedCluster_,rechits_,topology_); }
float SuperClusterHelper::hadronicOverEm | ( | ) | const [inline] |
Definition at line 26 of file SuperClusterHelper.h.
References reco::GsfElectron::hadronicOverEm(), and theElectron_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return theElectron_->hadronicOverEm();}
int SuperClusterHelper::ietaSeed | ( | ) | [inline] |
Definition at line 50 of file SuperClusterHelper.h.
References ietaSeed_, and localCoordinates().
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ localCoordinates(); return ietaSeed_;}
int SuperClusterHelper::iphiSeed | ( | ) | [inline] |
Definition at line 51 of file SuperClusterHelper.h.
References iphiSeed_, and localCoordinates().
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ localCoordinates(); return iphiSeed_;}
void SuperClusterHelper::localCoordinates | ( | ) | [private] |
Definition at line 128 of file SuperClusterHelper.cc.
References barrel_, etaCrySeed_, geometry_, ietaSeed_, iphiSeed_, local_, localCoordinatesComputed_, EcalClusterLocal::localCoordsEB(), EcalClusterLocal::localCoordsEE(), phiCrySeed_, phiTilt_, seedCluster_, and thetaTilt_.
Referenced by etaCrySeed(), ietaSeed(), iphiSeed(), phiCrySeed(), phiTilt(), and thetaTilt().
{ if (localCoordinatesComputed_) return; if (barrel_) { local_.localCoordsEB(*seedCluster_, *geometry_, etaCrySeed_ , phiCrySeed_ ,ietaSeed_ , iphiSeed_ , thetaTilt_ , phiTilt_); } else { local_.localCoordsEE(*seedCluster_, *geometry_, etaCrySeed_ , phiCrySeed_ ,ietaSeed_ , iphiSeed_ , thetaTilt_ , phiTilt_); } localCoordinatesComputed_ = true; }
float SuperClusterHelper::nPreshowerClusters | ( | ) | const [inline] |
Definition at line 70 of file SuperClusterHelper.h.
References nESClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return nESClusters_;}
float SuperClusterHelper::phi | ( | void | ) | const [inline] |
Definition at line 22 of file SuperClusterHelper.h.
References reco::CaloCluster::phi(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), RegressionEnergyPatElectronProducer::produce(), and SuperClusterHelper().
{return theSuperCluster_->phi();}
float SuperClusterHelper::phiCrySeed | ( | ) | [inline] |
Definition at line 53 of file SuperClusterHelper.h.
References localCoordinates(), and phiCrySeed_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ localCoordinates(); return phiCrySeed_;}
float SuperClusterHelper::phiTilt | ( | ) | [inline] |
Definition at line 55 of file SuperClusterHelper.h.
References localCoordinates(), and phiTilt_.
{localCoordinates(); return phiTilt_;}
float SuperClusterHelper::phiWidth | ( | ) | const [inline] |
Definition at line 24 of file SuperClusterHelper.h.
References reco::SuperCluster::phiWidth(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return theSuperCluster_->phiWidth();}
float SuperClusterHelper::preshowerEnergy | ( | ) | const [inline] |
Definition at line 28 of file SuperClusterHelper.h.
References reco::SuperCluster::preshowerEnergy(), and theSuperCluster_.
Referenced by RegressionEnergyPatElectronProducer::produce().
{return theSuperCluster_->preshowerEnergy();}
float SuperClusterHelper::preshowerEnergyOverRaw | ( | ) | const [inline] |
Definition at line 29 of file SuperClusterHelper.h.
References reco::SuperCluster::preshowerEnergy(), reco::SuperCluster::rawEnergy(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return theSuperCluster_->preshowerEnergy()/theSuperCluster_->rawEnergy();}
float SuperClusterHelper::r9 | ( | ) | const [inline] |
Definition at line 43 of file SuperClusterHelper.h.
References e3x3(), reco::SuperCluster::rawEnergy(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), CalibratedElectronProducer::produce(), and RegressionEnergyPatElectronProducer::produce().
{ //std::cout << " E3x3 " << e3x3() << " raw " << theSuperCluster_->rawEnergy() << std::endl; return e3x3()/theSuperCluster_->rawEnergy();}
float SuperClusterHelper::rawEnergy | ( | ) | const [inline] |
Definition at line 20 of file SuperClusterHelper.h.
References reco::SuperCluster::rawEnergy(), and theSuperCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return theSuperCluster_->rawEnergy();}
float SuperClusterHelper::seedEnergy | ( | ) | const [inline] |
Definition at line 49 of file SuperClusterHelper.h.
References reco::CaloCluster::energy(), and seedCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return seedCluster_->energy();}
float SuperClusterHelper::seedEta | ( | ) | const [inline] |
Definition at line 47 of file SuperClusterHelper.h.
References reco::CaloCluster::eta(), and seedCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return seedCluster_->eta(); }
float SuperClusterHelper::seedPhi | ( | ) | const [inline] |
Definition at line 48 of file SuperClusterHelper.h.
References reco::CaloCluster::phi(), and seedCluster_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return seedCluster_->phi(); }
float SuperClusterHelper::sep | ( | ) |
Definition at line 123 of file SuperClusterHelper.cc.
References computeLocalCovariances(), and sep_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ computeLocalCovariances(); return sep_; }
float SuperClusterHelper::sigmaIetaIeta | ( | ) | const [inline] |
Definition at line 27 of file SuperClusterHelper.h.
References reco::GsfElectron::sigmaIetaIeta(), and theElectron_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{return theElectron_->sigmaIetaIeta();}
static bool SuperClusterHelper::sortClusters | ( | const reco::CaloCluster * | c1, |
const reco::CaloCluster * | c2 | ||
) | [inline, static, private] |
Definition at line 109 of file SuperClusterHelper.h.
References reco::CaloCluster::energy().
Referenced by SuperClusterHelper().
float SuperClusterHelper::spp | ( | ) |
Definition at line 118 of file SuperClusterHelper.cc.
References computeLocalCovariances(), and spp_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ computeLocalCovariances(); return spp_; }
float SuperClusterHelper::subClusterE3x3 | ( | unsigned | i | ) | const |
Definition at line 156 of file SuperClusterHelper.cc.
References e3x3(), nBasicClusters_, rechits_, theBasicClusters_, and topology_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nBasicClusters_ > i) ? EcalClusterTools::e3x3(*theBasicClusters_[i], rechits_, topology_) : 0.; }
float SuperClusterHelper::subClusterEmax | ( | unsigned | i | ) | const |
Definition at line 152 of file SuperClusterHelper.cc.
References eMax(), nBasicClusters_, rechits_, and theBasicClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nBasicClusters_ > i) ? EcalClusterTools::eMax(*theBasicClusters_[i], rechits_) : 0.; }
float SuperClusterHelper::subClusterEnergy | ( | unsigned | i | ) | const |
Definition at line 140 of file SuperClusterHelper.cc.
References i, nBasicClusters_, and theBasicClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nBasicClusters_ > i) ? theBasicClusters_[i]->energy() : 0.; }
float SuperClusterHelper::subClusterEta | ( | unsigned | i | ) | const |
Definition at line 144 of file SuperClusterHelper.cc.
References i, nBasicClusters_, and theBasicClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nBasicClusters_ > i) ? theBasicClusters_[i]->eta() : 999.; }
float SuperClusterHelper::subClusterPhi | ( | unsigned | i | ) | const |
Definition at line 148 of file SuperClusterHelper.cc.
References i, nBasicClusters_, and theBasicClusters_.
Referenced by ElectronEnergyRegressionEvaluate::calculateRegressionEnergy(), ElectronEnergyRegressionEvaluate::calculateRegressionEnergyUncertainty(), and RegressionEnergyPatElectronProducer::produce().
{ return (nBasicClusters_ > i) ? theBasicClusters_[i]->phi() : 999.; }
float SuperClusterHelper::thetaTilt | ( | ) | [inline] |
Definition at line 54 of file SuperClusterHelper.h.
References localCoordinates(), and thetaTilt_.
{ localCoordinates(); return thetaTilt_;}
bool SuperClusterHelper::barrel_ [private] |
Definition at line 83 of file SuperClusterHelper.h.
Referenced by localCoordinates(), and SuperClusterHelper().
bool SuperClusterHelper::covComputed_ [private] |
cached variables covariance matrix
Definition at line 88 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances(), and SuperClusterHelper().
float SuperClusterHelper::eESClusters_ [private] |
Definition at line 103 of file SuperClusterHelper.h.
Referenced by eESClusters(), and SuperClusterHelper().
float SuperClusterHelper::eSubClusters_ [private] |
Definition at line 102 of file SuperClusterHelper.h.
Referenced by eSubClusters(), and SuperClusterHelper().
float SuperClusterHelper::etaCrySeed_ [private] |
Definition at line 96 of file SuperClusterHelper.h.
Referenced by etaCrySeed(), and localCoordinates().
const CaloGeometry* SuperClusterHelper::geometry_ [private] |
Definition at line 81 of file SuperClusterHelper.h.
Referenced by localCoordinates(), and SuperClusterHelper().
int SuperClusterHelper::ietaSeed_ [private] |
Definition at line 94 of file SuperClusterHelper.h.
Referenced by ietaSeed(), and localCoordinates().
int SuperClusterHelper::iphiSeed_ [private] |
Definition at line 95 of file SuperClusterHelper.h.
Referenced by iphiSeed(), and localCoordinates().
EcalClusterLocal SuperClusterHelper::local_ [private] |
Definition at line 82 of file SuperClusterHelper.h.
Referenced by localCoordinates().
bool SuperClusterHelper::localCoordinatesComputed_ [private] |
local coordinates
Definition at line 93 of file SuperClusterHelper.h.
Referenced by localCoordinates(), and SuperClusterHelper().
unsigned SuperClusterHelper::nBasicClusters_ [private] |
Definition at line 100 of file SuperClusterHelper.h.
Referenced by subClusterE3x3(), subClusterEmax(), subClusterEnergy(), subClusterEta(), subClusterPhi(), and SuperClusterHelper().
unsigned SuperClusterHelper::nESClusters_ [private] |
Definition at line 101 of file SuperClusterHelper.h.
Referenced by esClusterEnergy(), esClusterEta(), esClusterPhi(), nPreshowerClusters(), and SuperClusterHelper().
float SuperClusterHelper::phiCrySeed_ [private] |
Definition at line 97 of file SuperClusterHelper.h.
Referenced by localCoordinates(), and phiCrySeed().
float SuperClusterHelper::phiTilt_ [private] |
Definition at line 99 of file SuperClusterHelper.h.
Referenced by localCoordinates(), and phiTilt().
const EcalRecHitCollection* SuperClusterHelper::rechits_ [private] |
Definition at line 79 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances(), e2nd(), e2x5Bottom(), e2x5Left(), e2x5Max(), e2x5Right(), e2x5Top(), e3x3(), e5x5(), eBottom(), eLeft(), eMax(), eRight(), eTop(), subClusterE3x3(), subClusterEmax(), and SuperClusterHelper().
const reco::CaloCluster* SuperClusterHelper::seedCluster_ [private] |
Definition at line 78 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances(), e2nd(), e2x5Bottom(), e2x5Left(), e2x5Max(), e2x5Right(), e2x5Top(), e3x3(), e5x5(), eBottom(), eLeft(), eMax(), eRight(), eTop(), localCoordinates(), seedEnergy(), seedEta(), seedPhi(), and SuperClusterHelper().
float SuperClusterHelper::sep_ [private] |
Definition at line 91 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances(), and sep().
float SuperClusterHelper::spp_ [private] |
Definition at line 90 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances(), and spp().
std::vector<const reco::CaloCluster*> SuperClusterHelper::theBasicClusters_ [private] |
Definition at line 76 of file SuperClusterHelper.h.
Referenced by subClusterE3x3(), subClusterEmax(), subClusterEnergy(), subClusterEta(), subClusterPhi(), and SuperClusterHelper().
const reco::GsfElectron* SuperClusterHelper::theElectron_ [private] |
Definition at line 74 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances(), hadronicOverEm(), sigmaIetaIeta(), and SuperClusterHelper().
std::vector<const reco::CaloCluster*> SuperClusterHelper::theESClusters_ [private] |
Definition at line 77 of file SuperClusterHelper.h.
Referenced by esClusterEnergy(), esClusterEta(), esClusterPhi(), and SuperClusterHelper().
const reco::SuperCluster* SuperClusterHelper::theSuperCluster_ [private] |
Definition at line 75 of file SuperClusterHelper.h.
Referenced by clustersSize(), eta(), etaWidth(), phi(), phiWidth(), preshowerEnergy(), preshowerEnergyOverRaw(), r9(), rawEnergy(), and SuperClusterHelper().
float SuperClusterHelper::thetaTilt_ [private] |
Definition at line 98 of file SuperClusterHelper.h.
Referenced by localCoordinates(), and thetaTilt().
const CaloTopology* SuperClusterHelper::topology_ [private] |
Definition at line 80 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances(), e2x5Bottom(), e2x5Left(), e2x5Max(), e2x5Right(), e2x5Top(), e3x3(), e5x5(), eBottom(), eLeft(), eRight(), eTop(), subClusterE3x3(), and SuperClusterHelper().
std::vector<float> SuperClusterHelper::vCov_ [private] |
Definition at line 89 of file SuperClusterHelper.h.
Referenced by computeLocalCovariances().