CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
PFClusterShapeAlgo Class Reference

#include <PFClusterShapeAlgo.h>

Public Member Functions

reco::ClusterShapeCollectionmakeClusterShapes (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::PFRecHitFractiongetFractionFromDetId (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_
 

Detailed Description

Definition at line 37 of file PFClusterShapeAlgo.h.

Member Typedef Documentation

Definition at line 39 of file PFClusterShapeAlgo.h.

Member Enumeration Documentation

Enumerator
BARREL 
ENDCAP 

Definition at line 42 of file PFClusterShapeAlgo.h.

Constructor & Destructor Documentation

PFClusterShapeAlgo::PFClusterShapeAlgo ( bool  useFractions,
double  w0 
)
explicit

Definition at line 3 of file PFClusterShapeAlgo.cc.

PFClusterShapeAlgo::~PFClusterShapeAlgo ( )

Definition at line 9 of file PFClusterShapeAlgo.cc.

Member Function Documentation

double PFClusterShapeAlgo::addMapEnergies ( int  etaIndexLow,
int  etaIndexHigh,
int  phiIndexLow,
int  phiIndexHigh 
)
private

Definition at line 208 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::covariances ( )
private

Definition at line 299 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::fill5x5Map ( )
private

Definition at line 155 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e2x2 ( )
private

Definition at line 242 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e2x5Bottom ( )
private

Definition at line 232 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e2x5Left ( )
private

Definition at line 230 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e2x5Right ( )
private

Definition at line 229 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e2x5Top ( )
private

Definition at line 231 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e3x2 ( )
private

Definition at line 258 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e3x3 ( )
private

Definition at line 227 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e4x4 ( )
private

Definition at line 234 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_e5x5 ( )
private

Definition at line 228 of file PFClusterShapeAlgo.cc.

void PFClusterShapeAlgo::find_eMax_e2nd ( )
private

Definition at line 96 of file PFClusterShapeAlgo.cc.

int PFClusterShapeAlgo::findPFRHIndexFromDetId ( unsigned int  id)
private

Definition at line 122 of file PFClusterShapeAlgo.cc.

const reco::PFRecHitFraction * PFClusterShapeAlgo::getFractionFromDetId ( const DetId id)
private

Definition at line 137 of file PFClusterShapeAlgo.cc.

reco::ClusterShape PFClusterShapeAlgo::makeClusterShape ( )
private

Definition at line 60 of file PFClusterShapeAlgo.cc.

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.

Member Data Documentation

double PFClusterShapeAlgo::covEtaEta_
private

Definition at line 81 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::covEtaPhi_
private

Definition at line 81 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::covPhiPhi_
private

Definition at line 81 of file PFClusterShapeAlgo.h.

reco::PFClusterRef PFClusterShapeAlgo::currentCluster_p
private

Definition at line 64 of file PFClusterShapeAlgo.h.

unsigned int PFClusterShapeAlgo::currentClusterIndex_
private

Definition at line 63 of file PFClusterShapeAlgo.h.

edm::Handle<reco::PFRecHitCollection> PFClusterShapeAlgo::currentRecHit_v_p
private

Definition at line 65 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e2nd_
private

Definition at line 79 of file PFClusterShapeAlgo.h.

DetId PFClusterShapeAlgo::e2ndId_
private

Definition at line 78 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e2x2_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e2x5Bottom_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e2x5Left_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e2x5Right_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e2x5Top_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e3x2_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e3x2Ratio_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e3x3_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e4x4_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::e5x5_
private

Definition at line 80 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::eMax_
private

Definition at line 79 of file PFClusterShapeAlgo.h.

Direction PFClusterShapeAlgo::eMaxDir
private

Definition at line 76 of file PFClusterShapeAlgo.h.

DetId PFClusterShapeAlgo::eMaxId_
private

Definition at line 78 of file PFClusterShapeAlgo.h.

unsigned int PFClusterShapeAlgo::geomIndex
private

Definition at line 69 of file PFClusterShapeAlgo.h.

std::vector<const CaloSubdetectorGeometry *> PFClusterShapeAlgo::geomVector
private

Definition at line 70 of file PFClusterShapeAlgo.h.

RecHitWithFraction PFClusterShapeAlgo::map5x5[5][5]
private

Definition at line 72 of file PFClusterShapeAlgo.h.

math::XYZVector PFClusterShapeAlgo::meanPosition_
private

Definition at line 73 of file PFClusterShapeAlgo.h.

unsigned int PFClusterShapeAlgo::topoIndex
private

Definition at line 67 of file PFClusterShapeAlgo.h.

std::vector<const CaloSubdetectorTopology *> PFClusterShapeAlgo::topoVector
private

Definition at line 68 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::totalE_
private

Definition at line 74 of file PFClusterShapeAlgo.h.

bool PFClusterShapeAlgo::useFractions_
private

Definition at line 60 of file PFClusterShapeAlgo.h.

double PFClusterShapeAlgo::w0_
private

Definition at line 61 of file PFClusterShapeAlgo.h.