babymaker  e95a6a9342d4604277fe7cc6149b6b5b24447d89
Public Types | Public Member Functions | Public Attributes | List of all members
photon_tools Class Reference

#include <photon_tools.hh>

Public Types

enum  isoType {
  pfCh, pfNu, pfGam, coneCh,
  coneNu, coneGam, NisoTypes
}
 

Public Member Functions

bool idPhoton (const pat::Photon &photon, edm::Handle< std::vector< pat::Electron > > &electrons, edm::Handle< reco::ConversionCollection > &conversions, edm::Handle< reco::BeamSpot > &beamspot, double rho)
 
bool electronMatch (const reco::SuperClusterRef &sc, const edm::Handle< std::vector< pat::Electron > > &electrons, const edm::Handle< reco::ConversionCollection > &conversions, const math::XYZPoint &beamspot, double lxyMin=2.0, double probMin=1e-6, unsigned int nHitsBeforeVtxMax=0)
 
double rhoCorrectedIso (isoType isoType_, double isoVal, double eta, double rho)
 
void addEffA (double etaLow_, double etaHigh_, double effA_pfCh_, double effA_pfNu_, double effA_pfGa_)
 
 photon_tools ()
 
 ~photon_tools ()
 

Public Attributes

const float PhotonPtCut = 100.0
 
std::vector< double > etaHigh
 
std::vector< double > etaLow
 
std::vector< std::vector< double > > effA
 

Detailed Description

Definition at line 17 of file photon_tools.hh.

Member Enumeration Documentation

Enumerator
pfCh 
pfNu 
pfGam 
coneCh 
coneNu 
coneGam 
NisoTypes 

Definition at line 26 of file photon_tools.hh.

Constructor & Destructor Documentation

photon_tools::photon_tools ( )

Definition at line 101 of file photon_tools.cc.

photon_tools::~photon_tools ( )

Definition at line 111 of file photon_tools.cc.

Member Function Documentation

void photon_tools::addEffA ( double  etaLow_,
double  etaHigh_,
double  effA_pfCh_,
double  effA_pfNu_,
double  effA_pfGa_ 
)

Definition at line 90 of file photon_tools.cc.

bool photon_tools::electronMatch ( const reco::SuperClusterRef &  sc,
const edm::Handle< std::vector< pat::Electron > > &  electrons,
const edm::Handle< reco::ConversionCollection > &  conversions,
const math::XYZPoint &  beamspot,
double  lxyMin = 2.0,
double  probMin = 1e-6,
unsigned int  nHitsBeforeVtxMax = 0 
)

Definition at line 55 of file photon_tools.cc.

bool photon_tools::idPhoton ( const pat::Photon &  photon,
edm::Handle< std::vector< pat::Electron > > &  electrons,
edm::Handle< reco::ConversionCollection > &  conversions,
edm::Handle< reco::BeamSpot > &  beamspot,
double  rho 
)

Definition at line 21 of file photon_tools.cc.

double photon_tools::rhoCorrectedIso ( isoType  isoType_,
double  isoVal,
double  eta,
double  rho 
)

Definition at line 76 of file photon_tools.cc.

Member Data Documentation

std::vector< std::vector<double> > photon_tools::effA

Definition at line 25 of file photon_tools.hh.

std::vector<double> photon_tools::etaHigh

Definition at line 23 of file photon_tools.hh.

std::vector<double> photon_tools::etaLow

Definition at line 24 of file photon_tools.hh.

const float photon_tools::PhotonPtCut = 100.0

Definition at line 21 of file photon_tools.hh.


The documentation for this class was generated from the following files: