#include <ClusterShapeAlgo.h>
Public Member Functions | |
reco::ClusterShape | Calculate (const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology) |
ClusterShapeAlgo (const edm::ParameterSet &par) | |
ClusterShapeAlgo () | |
Private Types | |
enum | { Eta, Phi } |
Private Member Functions | |
double | absZernikeMoment (const reco::BasicCluster &passedCluster, int n, int m, double R0=6.6) |
double | calc_AbsZernikeMoment (const reco::BasicCluster &passedCluster, int n, int m, double R0) |
void | Calculate_2ndEnergy (const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits) |
void | Calculate_BarrelBasketEnergyFraction (const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const int EtaPhi, const CaloSubdetectorGeometry *geometry) |
void | Calculate_ComplexZernikeMoments (const reco::BasicCluster &passedCluster) |
void | Calculate_Covariances (const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry) |
void | Calculate_e2x2 () |
void | Calculate_e2x5Bottom () |
void | Calculate_e2x5Left () |
void | Calculate_e2x5Right () |
void | Calculate_e2x5Top () |
void | Calculate_e3x2 () |
void | Calculate_e3x3 () |
void | Calculate_e4x4 () |
void | Calculate_e5x5 () |
void | Calculate_EnergyDepTopology (const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, bool logW=true) |
void | Calculate_lat (const reco::BasicCluster &passedCluster) |
void | Calculate_Polynomials (double rho) |
void | Calculate_TopEnergy (const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits) |
void | Create_Map (const EcalRecHitCollection *hits, const CaloSubdetectorTopology *topology) |
double | f00 (double r) |
double | f11 (double r) |
double | f20 (double r) |
double | f22 (double r) |
double | f31 (double r) |
double | f33 (double r) |
double | f40 (double r) |
double | f42 (double r) |
double | f44 (double r) |
double | f51 (double r) |
double | f53 (double r) |
double | f55 (double r) |
double | factorial (int n) const |
double | fast_AbsZernikeMoment (const reco::BasicCluster &passedCluster, int n, int m, double R0) |
Private Attributes | |
double | A20_ |
double | A42_ |
double | covEtaEta_ |
double | covEtaPhi_ |
double | covPhiPhi_ |
double | e2nd_ |
DetId | e2ndId_ |
double | e2x2_ |
int | e2x2_Diagonal_X_ |
int | e2x2_Diagonal_Y_ |
double | e2x5Bottom_ |
double | e2x5Left_ |
double | e2x5Right_ |
double | e2x5Top_ |
double | e3x2_ |
double | e3x2Ratio_ |
double | e3x3_ |
double | e4x4_ |
double | e5x5_ |
double | eMax_ |
DetId | eMaxId_ |
std::vector< double > | energyBasketFractionEta_ |
std::vector< double > | energyBasketFractionPhi_ |
std::vector< EcalClusterEnergyDeposition > | energyDistribution_ |
std::pair< DetId, double > | energyMap_ [5][5] |
double | etaLat_ |
std::vector< double > | fcn_ |
double | lat_ |
edm::ParameterSet | parameterSet_ |
double | phiLat_ |
calculates and creates a ClusterShape object
Definition at line 36 of file ClusterShapeAlgo.h.
|
private |
Enumerator | |
---|---|
Eta | |
Phi |
Definition at line 109 of file ClusterShapeAlgo.h.
ClusterShapeAlgo::ClusterShapeAlgo | ( | const edm::ParameterSet & | par | ) |
Definition at line 19 of file ClusterShapeAlgo.cc.
|
inline |
Definition at line 41 of file ClusterShapeAlgo.h.
References factorial(), hfClusterShapes_cfi::hits, funct::m, gen::n, EcalClusterEnergyDeposition::r, pfBoostedDoubleSVAK8TagInfos_cfi::R0, rho, and ecaldqm::topology().
|
private |
Definition at line 498 of file ClusterShapeAlgo.cc.
References calc_AbsZernikeMoment(), and fast_AbsZernikeMoment().
Referenced by Calculate_ComplexZernikeMoments().
|
private |
Definition at line 559 of file ClusterShapeAlgo.cc.
References funct::cos(), MillePedeFileConverter_cfg::e, energyDistribution_, factorial(), mps_fire::i, funct::m, phi, funct::pow(), alignCSCRings::r, pfBoostedDoubleSVAK8TagInfos_cfi::R0, mps_fire::result, alignCSCRings::s, funct::sin(), and mathSSE::sqrt().
Referenced by absZernikeMoment().
reco::ClusterShape ClusterShapeAlgo::Calculate | ( | const reco::BasicCluster & | passedCluster, |
const EcalRecHitCollection * | hits, | ||
const CaloSubdetectorGeometry * | geometry, | ||
const CaloSubdetectorTopology * | topology | ||
) |
Definition at line 22 of file ClusterShapeAlgo.cc.
References A20_, A42_, Calculate_2ndEnergy(), Calculate_BarrelBasketEnergyFraction(), Calculate_ComplexZernikeMoments(), Calculate_Covariances(), Calculate_e2x2(), Calculate_e2x5Bottom(), Calculate_e2x5Left(), Calculate_e2x5Right(), Calculate_e2x5Top(), Calculate_e3x2(), Calculate_e3x3(), Calculate_e4x4(), Calculate_e5x5(), Calculate_EnergyDepTopology(), Calculate_lat(), Calculate_TopEnergy(), covEtaEta_, covEtaPhi_, covPhiPhi_, Create_Map(), e2nd_, e2ndId_, e2x2_, e2x5Bottom_, e2x5Left_, e2x5Right_, e2x5Top_, e3x2_, e3x2Ratio_, e3x3_, e4x4_, e5x5_, eMax_, eMaxId_, energyBasketFractionEta_, energyBasketFractionPhi_, Eta, etaLat_, lat_, Phi, and phiLat_.
Referenced by CosmicClusterProducer::clusterizeECALPart(), IslandClusterProducer::clusterizeECALPart(), and Pi0FixedMassWindowCalibration::duringLoop().
|
private |
Definition at line 81 of file ClusterShapeAlgo.cc.
References e2nd_, e2ndId_, eMaxId_, edm::SortedCollection< T, SORT >::end(), EcalRecHit::energy(), edm::SortedCollection< T, SORT >::find(), and EcalRecHit::id().
Referenced by Calculate().
|
private |
Definition at line 382 of file ClusterShapeAlgo.cc.
References funct::abs(), EcalBarrel, energyBasketFractionEta_, energyBasketFractionPhi_, Eta, edm::SortedCollection< T, SORT >::find(), plotBeamSpotDB::first, EcalBarrelGeometry::getBasketSizeInPhi(), EcalBarrelGeometry::getEtaBaskets(), mps_fire::i, EBDetId::ieta(), EBDetId::iphi(), EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, and Phi.
Referenced by Calculate().
|
private |
Definition at line 491 of file ClusterShapeAlgo.cc.
References A20_, A42_, and absZernikeMoment().
Referenced by Calculate().
|
private |
Definition at line 310 of file ClusterShapeAlgo.cc.
References covEtaEta_, covEtaPhi_, covPhiPhi_, cuy::denominator, dPhi(), e5x5_, energyMap_, PV3DBase< T, PVType, FrameType >::eta(), CaloSubdetectorGeometry::getGeometry(), edm::ParameterSet::getParameter(), CaloCellGeometry::getPosition(), mps_fire::i, cmsBatch::log, hpstanc_transforms::max, parameterSet_, PV3DBase< T, PVType, FrameType >::phi(), Geom::pi(), position, edm::second(), Geom::twoPi(), w, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Calculate().
|
private |
Definition at line 131 of file ClusterShapeAlgo.cc.
References TCMET_cfi::corner, e2x2_, e2x2_Diagonal_X_, e2x2_Diagonal_Y_, and energyMap_.
Referenced by Calculate().
|
private |
Definition at line 286 of file ClusterShapeAlgo.cc.
References e2x5Bottom_, energyMap_, and mps_fire::i.
Referenced by Calculate().
|
private |
Definition at line 275 of file ClusterShapeAlgo.cc.
References e2x5Left_, energyMap_, and mps_fire::i.
Referenced by Calculate().
|
private |
Definition at line 264 of file ClusterShapeAlgo.cc.
References e2x5Right_, energyMap_, and mps_fire::i.
Referenced by Calculate().
|
private |
Definition at line 298 of file ClusterShapeAlgo.cc.
References e2x5Top_, energyMap_, and mps_fire::i.
Referenced by Calculate().
|
private |
Definition at line 165 of file ClusterShapeAlgo.cc.
References e3x2_, e3x2Ratio_, energyMap_, edm::second(), and Validation_hcalonly_cfi::sign.
Referenced by Calculate().
|
private |
Definition at line 215 of file ClusterShapeAlgo.cc.
References e3x3_, energyMap_, mps_fire::i, and edm::second().
Referenced by Calculate().
|
private |
Definition at line 227 of file ClusterShapeAlgo.cc.
References e2x2_Diagonal_X_, e2x2_Diagonal_Y_, e4x4_, energyMap_, mps_fire::i, and edm::second().
Referenced by Calculate().
|
private |
Definition at line 252 of file ClusterShapeAlgo.cc.
References heepElectronID_HEEPV50_CSA14_25ns_cff::e5x5, e5x5_, energyMap_, mps_fire::i, and edm::second().
Referenced by Calculate().
|
private |
Definition at line 591 of file ClusterShapeAlgo.cc.
References EcalClusterEnergyDeposition::deposited_energy, mps_update::diff, edm::SortedCollection< T, SORT >::end(), EcalRecHit::energy(), energyDistribution_, edm::SortedCollection< T, SORT >::find(), CaloSubdetectorGeometry::getGeometry(), edm::ParameterSet::getParameter(), CaloCellGeometry::getPosition(), cmsBatch::log, LogDebug, M_PI, hpstanc_transforms::max, parameterSet_, EcalClusterEnergyDeposition::phi, EcalClusterEnergyDeposition::r, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Calculate().
|
private |
Definition at line 442 of file ClusterShapeAlgo.cc.
References funct::cos(), reco::e1, reco::e2, energyDistribution_, etaLat_, mps_fire::i, lat_, gen::n, phi, phiLat_, alignCSCRings::r, funct::sin(), and tmp.
Referenced by Calculate().
|
private |
|
private |
Definition at line 53 of file ClusterShapeAlgo.cc.
References photonPostprocessing_cfi::eMax, eMax_, eMaxId_, edm::SortedCollection< T, SORT >::end(), EcalRecHit::energy(), edm::SortedCollection< T, SORT >::find(), and EcalRecHit::id().
Referenced by Calculate().
|
private |
Definition at line 109 of file ClusterShapeAlgo.cc.
References eMaxId_, edm::SortedCollection< T, SORT >::end(), EcalRecHit::energy(), energyMap_, edm::SortedCollection< T, SORT >::find(), CaloNavigator< T, TOPO >::home(), EcalRecHit::id(), CaloNavigator< T, TOPO >::offsetBy(), ecaldqm::topology(), x, and y.
Referenced by Calculate().
|
private |
Definition at line 510 of file ClusterShapeAlgo.cc.
Referenced by Calculate_Polynomials().
|
private |
Definition at line 512 of file ClusterShapeAlgo.cc.
References alignCSCRings::r.
Referenced by Calculate_Polynomials().
|
private |
|
private |
Definition at line 516 of file ClusterShapeAlgo.cc.
References alignCSCRings::r.
Referenced by Calculate_Polynomials().
|
private |
Definition at line 518 of file ClusterShapeAlgo.cc.
References alignCSCRings::r.
Referenced by Calculate_Polynomials().
|
private |
Definition at line 520 of file ClusterShapeAlgo.cc.
References alignCSCRings::r.
Referenced by Calculate_Polynomials().
|
private |
|
private |
Definition at line 524 of file ClusterShapeAlgo.cc.
References alignCSCRings::r.
Referenced by Calculate_Polynomials().
|
private |
Definition at line 526 of file ClusterShapeAlgo.cc.
References alignCSCRings::r.
Referenced by Calculate_Polynomials().
|
private |
Definition at line 528 of file ClusterShapeAlgo.cc.
References funct::pow(), and alignCSCRings::r.
Referenced by Calculate_Polynomials().
|
private |
Definition at line 530 of file ClusterShapeAlgo.cc.
References funct::pow().
Referenced by Calculate_Polynomials().
|
private |
Definition at line 532 of file ClusterShapeAlgo.cc.
References funct::pow().
Referenced by Calculate_Polynomials().
|
private |
Definition at line 674 of file ClusterShapeAlgo.cc.
References mps_fire::i, and gen::n.
Referenced by calc_AbsZernikeMoment().
|
private |
Definition at line 534 of file ClusterShapeAlgo.cc.
References Calculate_Polynomials(), funct::cos(), MillePedeFileConverter_cfg::e, energyDistribution_, fcn_, mps_fire::i, diffTreeTool::index, phi, alignCSCRings::r, pfBoostedDoubleSVAK8TagInfos_cfi::R0, mps_fire::result, funct::sin(), and mathSSE::sqrt().
Referenced by absZernikeMoment().
|
private |
Definition at line 102 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_ComplexZernikeMoments().
|
private |
Definition at line 102 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_ComplexZernikeMoments().
|
private |
Definition at line 95 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_Covariances().
|
private |
Definition at line 95 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_Covariances().
|
private |
Definition at line 95 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_Covariances().
|
private |
Definition at line 96 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_2ndEnergy().
|
private |
Definition at line 105 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_2ndEnergy().
|
private |
Definition at line 96 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e2x2().
|
private |
Definition at line 93 of file ClusterShapeAlgo.h.
Referenced by Calculate_e2x2(), and Calculate_e4x4().
|
private |
Definition at line 93 of file ClusterShapeAlgo.h.
Referenced by Calculate_e2x2(), and Calculate_e4x4().
|
private |
Definition at line 97 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e2x5Bottom().
|
private |
Definition at line 97 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e2x5Left().
|
private |
Definition at line 97 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e2x5Right().
|
private |
Definition at line 97 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e2x5Top().
|
private |
Definition at line 96 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e3x2().
|
private |
Definition at line 98 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e3x2().
|
private |
Definition at line 96 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e3x3().
|
private |
Definition at line 96 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_e4x4().
|
private |
Definition at line 96 of file ClusterShapeAlgo.h.
Referenced by Calculate(), Calculate_Covariances(), and Calculate_e5x5().
|
private |
Definition at line 96 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_TopEnergy().
|
private |
Definition at line 105 of file ClusterShapeAlgo.h.
Referenced by Calculate(), Calculate_2ndEnergy(), Calculate_TopEnergy(), and Create_Map().
|
private |
Definition at line 103 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_BarrelBasketEnergyFraction().
|
private |
Definition at line 104 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_BarrelBasketEnergyFraction().
|
private |
Definition at line 106 of file ClusterShapeAlgo.h.
Referenced by calc_AbsZernikeMoment(), Calculate_EnergyDepTopology(), Calculate_lat(), and fast_AbsZernikeMoment().
|
private |
Definition at line 92 of file ClusterShapeAlgo.h.
Referenced by Calculate_Covariances(), Calculate_e2x2(), Calculate_e2x5Bottom(), Calculate_e2x5Left(), Calculate_e2x5Right(), Calculate_e2x5Top(), Calculate_e3x2(), Calculate_e3x3(), Calculate_e4x4(), Calculate_e5x5(), and Create_Map().
|
private |
Definition at line 100 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_lat().
|
private |
Definition at line 107 of file ClusterShapeAlgo.h.
Referenced by Calculate_Polynomials(), and fast_AbsZernikeMoment().
|
private |
Definition at line 99 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_lat().
|
private |
Definition at line 90 of file ClusterShapeAlgo.h.
Referenced by Calculate_Covariances(), and Calculate_EnergyDepTopology().
|
private |
Definition at line 101 of file ClusterShapeAlgo.h.
Referenced by Calculate(), and Calculate_lat().