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 Member Functions | Private Attributes
EgammaRecHitIsolation Class Reference

#include <EgammaRecHitIsolation.h>

Public Member Functions

void doFlagChecks (const std::vector< int > &v)
 
void doSeverityChecks (const EcalRecHitCollection *const recHits, const std::vector< int > &v)
 
 EgammaRecHitIsolation (double extRadius, double intRadius, double etaSlice, double etLow, double eLow, edm::ESHandle< CaloGeometry >, const EcalRecHitCollection &, const EcalSeverityLevelAlgo *, DetId::Detector detector)
 
double getEnergySum (const reco::Candidate *emObject) const
 
double getEnergySum (const reco::SuperCluster *emObject) const
 
double getEtSum (const reco::Candidate *emObject) const
 
double getEtSum (const reco::SuperCluster *emObject) const
 
void setUseNumCrystals (bool b=true)
 
void setVetoClustered (bool b=true)
 
 ~EgammaRecHitIsolation ()
 

Private Member Functions

double getSum_ (const reco::Candidate *, bool returnEt) const
 
double getSum_ (const reco::SuperCluster *, bool returnEt) const
 

Private Attributes

const EcalRecHitCollectioncaloHits_
 
const EcalRecHitCollectionecalBarHits_
 
double eLow_
 
double etaSlice_
 
double etLow_
 
double extRadius_
 
std::vector< int > flags_
 
double intRadius_
 
std::vector< int > severitiesexcl_
 
const EcalSeverityLevelAlgosevLevel_
 
const CaloSubdetectorGeometrysubdet_ [2]
 
edm::ESHandle< CaloGeometrytheCaloGeom_
 
bool useNumCrystals_
 
bool vetoClustered_
 

Detailed Description

Definition at line 28 of file EgammaRecHitIsolation.h.

Constructor & Destructor Documentation

EgammaRecHitIsolation::EgammaRecHitIsolation ( double  extRadius,
double  intRadius,
double  etaSlice,
double  etLow,
double  eLow,
edm::ESHandle< CaloGeometry theCaloGeom,
const EcalRecHitCollection caloHits,
const EcalSeverityLevelAlgo sl,
DetId::Detector  detector 
)

Definition at line 32 of file EgammaRecHitIsolation.cc.

EgammaRecHitIsolation::~EgammaRecHitIsolation ( )

Definition at line 66 of file EgammaRecHitIsolation.cc.

Member Function Documentation

void EgammaRecHitIsolation::doFlagChecks ( const std::vector< int > &  v)
inline

Definition at line 58 of file EgammaRecHitIsolation.h.

References flags_.

58  {
59  flags_.clear();
60  flags_.insert(flags_.begin(), v.begin(), v.end());
61  std::sort(flags_.begin(), flags_.end() );
62  }
std::vector< int > flags_
void EgammaRecHitIsolation::doSeverityChecks ( const EcalRecHitCollection *const  recHits,
const std::vector< int > &  v 
)
inline

Definition at line 50 of file EgammaRecHitIsolation.h.

References ecalBarHits_, HLT_25ns10e33_v2_cff::recHits, and severitiesexcl_.

51  {
53  severitiesexcl_.clear();
54  severitiesexcl_.insert(severitiesexcl_.begin(), v.begin(), v.end());
55  std::sort(severitiesexcl_.begin(), severitiesexcl_.end());
56  }
std::vector< int > severitiesexcl_
const EcalRecHitCollection * ecalBarHits_
double EgammaRecHitIsolation::getEnergySum ( const reco::Candidate emObject) const
inline

Definition at line 43 of file EgammaRecHitIsolation.h.

References getSum_().

43 { return getSum_(emObject,false);}
double getSum_(const reco::Candidate *, bool returnEt) const
double EgammaRecHitIsolation::getEnergySum ( const reco::SuperCluster emObject) const
inline

Definition at line 46 of file EgammaRecHitIsolation.h.

References getSum_().

46 { return getSum_(emObject,false);}
double getSum_(const reco::Candidate *, bool returnEt) const
double EgammaRecHitIsolation::getEtSum ( const reco::Candidate emObject) const
inline

Definition at line 42 of file EgammaRecHitIsolation.h.

References getSum_().

42 {return getSum_(emObject,true);}
double getSum_(const reco::Candidate *, bool returnEt) const
double EgammaRecHitIsolation::getEtSum ( const reco::SuperCluster emObject) const
inline

Definition at line 45 of file EgammaRecHitIsolation.h.

References getSum_().

45 {return getSum_(emObject,true);}
double getSum_(const reco::Candidate *, bool returnEt) const
double EgammaRecHitIsolation::getSum_ ( const reco::Candidate emObject,
bool  returnEt 
) const
private

Definition at line 69 of file EgammaRecHitIsolation.cc.

Referenced by getEnergySum(), and getEtSum().

double EgammaRecHitIsolation::getSum_ ( const reco::SuperCluster sc,
bool  returnEt 
) const
private

Definition at line 184 of file EgammaRecHitIsolation.cc.

void EgammaRecHitIsolation::setUseNumCrystals ( bool  b = true)
inline

Definition at line 48 of file EgammaRecHitIsolation.h.

References b, and useNumCrystals_.

48 { useNumCrystals_ = b; }
double b
Definition: hdecay.h:120
void EgammaRecHitIsolation::setVetoClustered ( bool  b = true)
inline

Definition at line 49 of file EgammaRecHitIsolation.h.

References b, and vetoClustered_.

49 { vetoClustered_ = b; }
double b
Definition: hdecay.h:120

Member Data Documentation

const EcalRecHitCollection& EgammaRecHitIsolation::caloHits_
private

Definition at line 79 of file EgammaRecHitIsolation.h.

const EcalRecHitCollection* EgammaRecHitIsolation::ecalBarHits_
private

Definition at line 84 of file EgammaRecHitIsolation.h.

Referenced by doSeverityChecks().

double EgammaRecHitIsolation::eLow_
private

Definition at line 75 of file EgammaRecHitIsolation.h.

double EgammaRecHitIsolation::etaSlice_
private

Definition at line 73 of file EgammaRecHitIsolation.h.

double EgammaRecHitIsolation::etLow_
private

Definition at line 74 of file EgammaRecHitIsolation.h.

double EgammaRecHitIsolation::extRadius_
private

Definition at line 71 of file EgammaRecHitIsolation.h.

std::vector<int> EgammaRecHitIsolation::flags_
private

Definition at line 91 of file EgammaRecHitIsolation.h.

Referenced by doFlagChecks().

double EgammaRecHitIsolation::intRadius_
private

Definition at line 72 of file EgammaRecHitIsolation.h.

std::vector<int> EgammaRecHitIsolation::severitiesexcl_
private

Definition at line 86 of file EgammaRecHitIsolation.h.

Referenced by doSeverityChecks().

const EcalSeverityLevelAlgo* EgammaRecHitIsolation::sevLevel_
private

Definition at line 80 of file EgammaRecHitIsolation.h.

const CaloSubdetectorGeometry* EgammaRecHitIsolation::subdet_[2]
private

Definition at line 93 of file EgammaRecHitIsolation.h.

edm::ESHandle<CaloGeometry> EgammaRecHitIsolation::theCaloGeom_
private

Definition at line 78 of file EgammaRecHitIsolation.h.

bool EgammaRecHitIsolation::useNumCrystals_
private

Definition at line 82 of file EgammaRecHitIsolation.h.

Referenced by setUseNumCrystals().

bool EgammaRecHitIsolation::vetoClustered_
private

Definition at line 83 of file EgammaRecHitIsolation.h.

Referenced by setVetoClustered().