#include <PFClusterShapeAlgo.h>
Public Member Functions | |
reco::ClusterShapeCollection * | makeClusterShapes (edm::Handle< reco::PFClusterCollection > clusterHandle, edm::Handle< reco::PFRecHitCollection > rechitHandle, const CaloSubdetectorGeometry *barrelGeo_p, const CaloSubdetectorTopology *barrelTop_p, const CaloSubdetectorGeometry *endcapGeo_p, const CaloSubdetectorTopology *endcapTop_p) |
PFClusterShapeAlgo (bool useFractions, double w0) | |
~PFClusterShapeAlgo () | |
Private Types | |
enum | Direction { N, NE, E, SE, S, SW, W, NW } |
enum | GeomTopoIndex { BARREL = 0, ENDCAP = 1 } |
typedef std::map< DetId, RecHitWithFraction > | RecHitMap |
Private Member Functions | |
double | addMapEnergies (int etaIndexLow, int etaIndexHigh, int phiIndexLow, int phiIndexHigh) |
void | covariances () |
void | fill5x5Map () |
void | find_e2x2 () |
void | find_e2x5Bottom () |
void | find_e2x5Left () |
void | find_e2x5Right () |
void | find_e2x5Top () |
void | find_e3x2 () |
void | find_e3x3 () |
void | find_e4x4 () |
void | find_e5x5 () |
void | find_eMax_e2nd () |
int | findPFRHIndexFromDetId (unsigned int id) |
const reco::PFRecHitFraction * | getFractionFromDetId (const DetId &id) |
reco::ClusterShape | makeClusterShape () |
Private Attributes | |
double | covEtaEta_ |
double | covEtaPhi_ |
double | covPhiPhi_ |
reco::PFClusterRef | currentCluster_p |
unsigned int | currentClusterIndex_ |
edm::Handle < reco::PFRecHitCollection > | currentRecHit_v_p |
double | e2nd_ |
DetId | e2ndId_ |
double | e2x2_ |
double | e2x5Bottom_ |
double | e2x5Left_ |
double | e2x5Right_ |
double | e2x5Top_ |
double | e3x2_ |
double | e3x2Ratio_ |
double | e3x3_ |
double | e4x4_ |
double | e5x5_ |
double | eMax_ |
Direction | eMaxDir |
DetId | eMaxId_ |
unsigned int | geomIndex |
std::vector< const CaloSubdetectorGeometry * > | geomVector |
RecHitWithFraction | map5x5 [5][5] |
math::XYZVector | meanPosition_ |
unsigned int | topoIndex |
std::vector< const CaloSubdetectorTopology * > | topoVector |
double | totalE_ |
bool | useFractions_ |
double | w0_ |
Definition at line 37 of file PFClusterShapeAlgo.h.
|
private |
Definition at line 39 of file PFClusterShapeAlgo.h.
|
private |
Enumerator | |
---|---|
N | |
NE | |
E | |
SE | |
S | |
SW | |
W | |
NW |
Definition at line 41 of file PFClusterShapeAlgo.h.
|
private |
|
explicit |
PFClusterShapeAlgo::~PFClusterShapeAlgo | ( | ) |
Definition at line 9 of file PFClusterShapeAlgo.cc.
|
private |
Definition at line 208 of file PFClusterShapeAlgo.cc.
References relval_parameters_module::energy, RecHitWithFraction::energy, i, j, and map5x5.
Referenced by find_e2x2(), find_e2x5Bottom(), find_e2x5Left(), find_e2x5Right(), find_e2x5Top(), find_e3x2(), find_e3x3(), find_e4x4(), and find_e5x5().
|
private |
Definition at line 299 of file PFClusterShapeAlgo.cc.
References covEtaEta_, covEtaPhi_, covPhiPhi_, cuy::denominator, dPhi(), relval_parameters_module::energy, i, j, cmsBatch::log, map5x5, bookConverter::max, meanPosition_, Geom::pi(), position, totalE_, Geom::twoPi(), w, and w0_.
Referenced by makeClusterShape().
|
private |
Definition at line 155 of file PFClusterShapeAlgo.cc.
References currentRecHit_v_p, RecHitWithFraction::detId, eMaxId_, RecHitWithFraction::energy, findPFRHIndexFromDetId(), reco::PFRecHitFraction::fraction(), HLT_25ns14e33_v1_cff::fraction, getFractionFromDetId(), CaloNavigator< T, TOPO >::home(), i, cmsHarvester::index, j, map5x5, meanPosition_, CaloNavigator< T, TOPO >::offsetBy(), RecHitWithFraction::position, position, topoIndex, topoVector, totalE_, and useFractions_.
Referenced by makeClusterShape().
|
private |
Definition at line 242 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), e2x2_, eMaxDir, NE, NW, SE, and SW.
Referenced by makeClusterShape().
|
private |
Definition at line 232 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), and e2x5Bottom_.
Referenced by makeClusterShape().
|
private |
Definition at line 230 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), and e2x5Left_.
Referenced by makeClusterShape().
|
private |
Definition at line 229 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), and e2x5Right_.
Referenced by makeClusterShape().
|
private |
Definition at line 231 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), and e2x5Top_.
Referenced by makeClusterShape().
|
private |
Definition at line 258 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), cuy::denominator, dir, E, e3x2_, e3x2Ratio_, RecHitWithFraction::energy, map5x5, N, cuy::numerator, S, and W.
Referenced by makeClusterShape().
|
private |
Definition at line 227 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), and e3x3_.
Referenced by makeClusterShape().
|
private |
Definition at line 234 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), e4x4_, eMaxDir, NE, NW, SE, and SW.
Referenced by makeClusterShape().
|
private |
Definition at line 228 of file PFClusterShapeAlgo.cc.
References addMapEnergies(), and e5x5_.
Referenced by makeClusterShape().
|
private |
Definition at line 96 of file PFClusterShapeAlgo.cc.
References currentCluster_p, e2nd_, e2ndId_, eMax_, and eMaxId_.
Referenced by makeClusterShape().
|
private |
Definition at line 122 of file PFClusterShapeAlgo.cc.
References currentRecHit_v_p, cmsHarvester::index, and relval_steps::k.
Referenced by fill5x5Map().
|
private |
Definition at line 137 of file PFClusterShapeAlgo.cc.
References currentCluster_p.
Referenced by fill5x5Map().
|
private |
Definition at line 60 of file PFClusterShapeAlgo.cc.
References covariances(), covEtaEta_, covEtaPhi_, covPhiPhi_, e2nd_, e2ndId_, e2x2_, e2x5Bottom_, e2x5Left_, e2x5Right_, e2x5Top_, e3x2_, e3x2Ratio_, e3x3_, e4x4_, e5x5_, eMax_, eMaxId_, fill5x5Map(), find_e2x2(), find_e2x5Bottom(), find_e2x5Left(), find_e2x5Right(), find_e2x5Top(), find_e3x2(), find_e3x3(), find_e4x4(), find_e5x5(), and find_eMax_e2nd().
Referenced by makeClusterShapes().
reco::ClusterShapeCollection * PFClusterShapeAlgo::makeClusterShapes | ( | edm::Handle< reco::PFClusterCollection > | clusterHandle, |
edm::Handle< reco::PFRecHitCollection > | rechitHandle, | ||
const CaloSubdetectorGeometry * | barrelGeo_p, | ||
const CaloSubdetectorTopology * | barrelTop_p, | ||
const CaloSubdetectorGeometry * | endcapGeo_p, | ||
const CaloSubdetectorTopology * | endcapTop_p | ||
) |
Definition at line 14 of file PFClusterShapeAlgo.cc.
References BARREL, currentCluster_p, currentClusterIndex_, currentRecHit_v_p, ENDCAP, geomIndex, geomVector, i, makeClusterShape(), topoIndex, and topoVector.
|
private |
Definition at line 81 of file PFClusterShapeAlgo.h.
Referenced by covariances(), and makeClusterShape().
|
private |
Definition at line 81 of file PFClusterShapeAlgo.h.
Referenced by covariances(), and makeClusterShape().
|
private |
Definition at line 81 of file PFClusterShapeAlgo.h.
Referenced by covariances(), and makeClusterShape().
|
private |
Definition at line 64 of file PFClusterShapeAlgo.h.
Referenced by find_eMax_e2nd(), getFractionFromDetId(), and makeClusterShapes().
|
private |
Definition at line 63 of file PFClusterShapeAlgo.h.
Referenced by makeClusterShapes().
|
private |
Definition at line 65 of file PFClusterShapeAlgo.h.
Referenced by fill5x5Map(), findPFRHIndexFromDetId(), and makeClusterShapes().
|
private |
Definition at line 79 of file PFClusterShapeAlgo.h.
Referenced by find_eMax_e2nd(), and makeClusterShape().
|
private |
Definition at line 78 of file PFClusterShapeAlgo.h.
Referenced by find_eMax_e2nd(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e2x2(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e2x5Bottom(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e2x5Left(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e2x5Right(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e2x5Top(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e3x2(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e3x2(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e3x3(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e4x4(), and makeClusterShape().
|
private |
Definition at line 80 of file PFClusterShapeAlgo.h.
Referenced by find_e5x5(), and makeClusterShape().
|
private |
Definition at line 79 of file PFClusterShapeAlgo.h.
Referenced by find_eMax_e2nd(), and makeClusterShape().
|
private |
Definition at line 76 of file PFClusterShapeAlgo.h.
Referenced by find_e2x2(), and find_e4x4().
|
private |
Definition at line 78 of file PFClusterShapeAlgo.h.
Referenced by fill5x5Map(), find_eMax_e2nd(), and makeClusterShape().
|
private |
Definition at line 69 of file PFClusterShapeAlgo.h.
Referenced by makeClusterShapes().
|
private |
Definition at line 70 of file PFClusterShapeAlgo.h.
Referenced by makeClusterShapes().
|
private |
Definition at line 72 of file PFClusterShapeAlgo.h.
Referenced by addMapEnergies(), covariances(), fill5x5Map(), and find_e3x2().
|
private |
Definition at line 73 of file PFClusterShapeAlgo.h.
Referenced by covariances(), and fill5x5Map().
|
private |
Definition at line 67 of file PFClusterShapeAlgo.h.
Referenced by fill5x5Map(), and makeClusterShapes().
|
private |
Definition at line 68 of file PFClusterShapeAlgo.h.
Referenced by fill5x5Map(), and makeClusterShapes().
|
private |
Definition at line 74 of file PFClusterShapeAlgo.h.
Referenced by covariances(), and fill5x5Map().
|
private |
Definition at line 60 of file PFClusterShapeAlgo.h.
Referenced by fill5x5Map(), and PFClusterShapeAlgo().
|
private |
Definition at line 61 of file PFClusterShapeAlgo.h.
Referenced by covariances(), and PFClusterShapeAlgo().