CMS 3D CMS Logo

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

#include <EgHLTOffHelper.h>

Public Member Functions

void fillClusShapeData (const reco::GsfElectron &ele, OffEle::ClusShapeData &clusShapeData)
 
void fillClusShapeData (const reco::Photon &pho, OffPho::ClusShapeData &clusShapeData)
 
void fillHLTData (const reco::GsfElectron &ele, OffEle::HLTData &hltData)
 
void fillHLTDataPho (const reco::Photon &pho, OffPho::HLTData &hltData)
 
void fillIsolData (const reco::GsfElectron &ele, OffEle::IsolData &isolData)
 
void fillIsolData (const reco::Photon &pho, OffPho::IsolData &isolData)
 
int fillOffEleVec (std::vector< OffEle > &offEles)
 
int fillOffPhoVec (std::vector< OffPho > &offPhos)
 
int getHandles (const edm::Event &event, const edm::EventSetup &setup)
 
int makeOffEvt (const edm::Event &edmEvent, const edm::EventSetup &setup, egHLT::OffEvt &offEvent, const TrigCodes &trigCodes)
 
 OffHelper ()
 
int setTrigInfo (const edm::Event &edmEvent, egHLT::OffEvt &offEvent, const TrigCodes &trigCodes)
 
void setup (const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
 
void setupTriggers (const HLTConfigProvider &config, const std::vector< std::string > &hltFiltersUsed, const TrigCodes &trigCodes)
 
const std::vector< std::pair
< TrigCodes::TrigBitSet,
OffEgSel > > & 
trigCuts () const
 
const trigger::TriggerEventtrigEvt () const
 
 ~OffHelper ()
 

Static Public Member Functions

template<class T >
static bool getHandle (const edm::Event &event, const edm::EDGetTokenT< T > &token, edm::Handle< T > &handle)
 

Private Member Functions

 OffHelper (const OffHelper &)=delete
 
OffHelperoperator= (const OffHelper &)=delete
 

Private Attributes

edm::Handle< reco::BeamSpotbeamSpot_
 
edm::EDGetTokenT< reco::BeamSpotbeamSpotToken
 
bool calHLTEleTrkIsol_
 
bool calHLTEmIsol_
 
bool calHLTHcalIsol_
 
bool calHLTPhoTrkIsol_
 
edm::ESHandle< CaloGeometrycaloGeom_
 
edm::EDGetTokenT
< reco::CaloJetCollection
caloJetsToken
 
edm::ESHandle< CaloTopologycaloTopology_
 
edm::Handle< CaloTowerCollectioncaloTowers_
 
edm::EDGetTokenT
< CaloTowerCollection
caloTowersToken
 
edm::Handle< EcalRecHitCollectionebRecHits_
 
edm::EDGetTokenT
< EcalRecHitCollection
ecalRecHitsEBToken
 
edm::EDGetTokenT
< EcalRecHitCollection
ecalRecHitsEEToken
 
edm::ESHandle
< EcalSeverityLevelAlgo
ecalSeverityLevel_
 
edm::Handle< EcalRecHitCollectioneeRecHits_
 
edm::EDGetTokenT
< reco::GsfElectronCollection
electronsToken
 
OffEgSel eleCuts_
 
OffEgSel eleLooseCuts_
 
edm::Handle< HBHERecHitCollectionhbheHits_
 
edm::EDGetTokenT
< HBHERecHitCollection
hbheHitsToken
 
edm::Handle< HFRecHitCollectionhfHits_
 
edm::EDGetTokenT
< HFRecHitCollection
hfHitsToken
 
EgammaHLTTrackIsolationhltEleTrkIsolAlgo_
 
double hltEleTrkIsolInnerCone_
 
double hltEleTrkIsolOuterCone_
 
double hltEleTrkIsolPtMin_
 
double hltEleTrkIsolRSpan_
 
double hltEleTrkIsolZSpan_
 
double hltEMIsolEMinEB_
 
double hltEMIsolEMinEE_
 
double hltEMIsolEtaSliceEB_
 
double hltEMIsolEtaSliceEE_
 
double hltEMIsolEtMinEB_
 
double hltEMIsolEtMinEE_
 
double hltEMIsolInnerConeEB_
 
double hltEMIsolInnerConeEE_
 
double hltEMIsolOuterCone_
 
std::vector< std::string > hltFiltersUsed_
 
std::vector< std::pair
< std::string, int > > 
hltFiltersUsedWithNrCandsCut_
 
int hltHadIsolDepth_
 
double hltHadIsolEtMin_
 
double hltHadIsolInnerCone_
 
double hltHadIsolOuterCone_
 
EgammaHLTTrackIsolationhltPhoTrkIsolAlgo_
 
bool hltPhoTrkIsolCountTrks_
 
double hltPhoTrkIsolInnerCone_
 
double hltPhoTrkIsolOuterCone_
 
double hltPhoTrkIsolPtMin_
 
double hltPhoTrkIsolRSpan_
 
double hltPhoTrkIsolZSpan_
 
std::string hltTag_
 
edm::Handle
< reco::TrackCollection
isolTrks_
 
edm::EDGetTokenT
< reco::TrackCollection
isolTrkToken
 
std::vector< std::pair
< std::string, std::string > > 
l1PreAndSeedFilters_
 
std::vector< std::string > l1PreScaledFilters_
 
std::vector< std::string > l1PreScaledPaths_
 
edm::ESHandle< MagneticFieldmagField_
 
OffEgSel phoCuts_
 
OffEgSel phoLooseCuts_
 
edm::EDGetTokenT
< reco::PhotonCollection
photonsToken
 
edm::Handle
< reco::GsfElectronCollection
recoEles_
 
edm::Handle< std::vector
< reco::CaloJet > > 
recoJets_
 
edm::Handle
< reco::PhotonCollection
recoPhos_
 
edm::Handle
< reco::VertexCollection
recoVertices_
 
std::vector< edm::ParameterSettrigCutParams_
 
std::vector< std::pair
< TrigCodes::TrigBitSet,
OffEgSel > > 
trigCuts_
 
edm::Handle
< trigger::TriggerEvent
trigEvt_
 
edm::EDGetTokenT
< trigger::TriggerEvent
triggerSummaryToken
 
edm::Handle< edm::TriggerResultstrigResults_
 
edm::EDGetTokenT
< edm::TriggerResults
trigResultsToken
 
edm::EDGetTokenT
< reco::VertexCollection
vertexToken
 

Detailed Description

Definition at line 59 of file EgHLTOffHelper.h.

Constructor & Destructor Documentation

egHLT::OffHelper::OffHelper ( const OffHelper )
privatedelete
egHLT::OffHelper::OffHelper ( )
inline

Definition at line 164 of file EgHLTOffHelper.h.

OffHelper::~OffHelper ( )

Definition at line 30 of file EgHLTOffHelper.cc.

Member Function Documentation

void OffHelper::fillClusShapeData ( const reco::GsfElectron ele,
OffEle::ClusShapeData clusShapeData 
)

Definition at line 274 of file EgHLTOffHelper.cc.

void OffHelper::fillClusShapeData ( const reco::Photon pho,
OffPho::ClusShapeData clusShapeData 
)

Definition at line 413 of file EgHLTOffHelper.cc.

void OffHelper::fillHLTData ( const reco::GsfElectron ele,
OffEle::HLTData hltData 
)

Definition at line 311 of file EgHLTOffHelper.cc.

void OffHelper::fillHLTDataPho ( const reco::Photon pho,
OffPho::HLTData hltData 
)

Definition at line 345 of file EgHLTOffHelper.cc.

void OffHelper::fillIsolData ( const reco::GsfElectron ele,
OffEle::IsolData isolData 
)

Definition at line 243 of file EgHLTOffHelper.cc.

void OffHelper::fillIsolData ( const reco::Photon pho,
OffPho::IsolData isolData 
)

Definition at line 386 of file EgHLTOffHelper.cc.

int OffHelper::fillOffEleVec ( std::vector< OffEle > &  offEles)

Definition at line 202 of file EgHLTOffHelper.cc.

int OffHelper::fillOffPhoVec ( std::vector< OffPho > &  offPhos)

Definition at line 356 of file EgHLTOffHelper.cc.

template<class T >
bool egHLT::OffHelper::getHandle ( const edm::Event event,
const edm::EDGetTokenT< T > &  token,
edm::Handle< T > &  handle 
)
static

Definition at line 197 of file EgHLTOffHelper.h.

int OffHelper::getHandles ( const edm::Event event,
const edm::EventSetup setup 
)

Definition at line 165 of file EgHLTOffHelper.cc.

int OffHelper::makeOffEvt ( const edm::Event edmEvent,
const edm::EventSetup setup,
egHLT::OffEvt offEvent,
const TrigCodes trigCodes 
)

Definition at line 152 of file EgHLTOffHelper.cc.

OffHelper& egHLT::OffHelper::operator= ( const OffHelper )
privatedelete
int OffHelper::setTrigInfo ( const edm::Event edmEvent,
egHLT::OffEvt offEvent,
const TrigCodes trigCodes 
)

Definition at line 446 of file EgHLTOffHelper.cc.

void OffHelper::setup ( const edm::ParameterSet conf,
edm::ConsumesCollector &&  iC 
)

Definition at line 36 of file EgHLTOffHelper.cc.

void OffHelper::setupTriggers ( const HLTConfigProvider config,
const std::vector< std::string > &  hltFiltersUsed,
const TrigCodes trigCodes 
)

Definition at line 103 of file EgHLTOffHelper.cc.

const std::vector<std::pair<TrigCodes::TrigBitSet,OffEgSel> >& egHLT::OffHelper::trigCuts ( ) const
inline

Definition at line 189 of file EgHLTOffHelper.h.

const trigger::TriggerEvent* egHLT::OffHelper::trigEvt ( ) const
inline

Definition at line 188 of file EgHLTOffHelper.h.

Member Data Documentation

edm::Handle<reco::BeamSpot> egHLT::OffHelper::beamSpot_
private

Definition at line 101 of file EgHLTOffHelper.h.

edm::EDGetTokenT<reco::BeamSpot> egHLT::OffHelper::beamSpotToken
private

Definition at line 80 of file EgHLTOffHelper.h.

bool egHLT::OffHelper::calHLTEleTrkIsol_
private

Definition at line 153 of file EgHLTOffHelper.h.

bool egHLT::OffHelper::calHLTEmIsol_
private

Definition at line 152 of file EgHLTOffHelper.h.

bool egHLT::OffHelper::calHLTHcalIsol_
private

Definition at line 151 of file EgHLTOffHelper.h.

bool egHLT::OffHelper::calHLTPhoTrkIsol_
private

Definition at line 154 of file EgHLTOffHelper.h.

edm::ESHandle<CaloGeometry> egHLT::OffHelper::caloGeom_
private

Definition at line 85 of file EgHLTOffHelper.h.

edm::EDGetTokenT<reco::CaloJetCollection> egHLT::OffHelper::caloJetsToken
private

Definition at line 73 of file EgHLTOffHelper.h.

edm::ESHandle<CaloTopology> egHLT::OffHelper::caloTopology_
private

Definition at line 86 of file EgHLTOffHelper.h.

edm::Handle<CaloTowerCollection> egHLT::OffHelper::caloTowers_
private

Definition at line 102 of file EgHLTOffHelper.h.

edm::EDGetTokenT<CaloTowerCollection> egHLT::OffHelper::caloTowersToken
private

Definition at line 81 of file EgHLTOffHelper.h.

edm::Handle<EcalRecHitCollection> egHLT::OffHelper::ebRecHits_
private

Definition at line 90 of file EgHLTOffHelper.h.

edm::EDGetTokenT<EcalRecHitCollection> egHLT::OffHelper::ecalRecHitsEBToken
private

Definition at line 71 of file EgHLTOffHelper.h.

edm::EDGetTokenT<EcalRecHitCollection> egHLT::OffHelper::ecalRecHitsEEToken
private

Definition at line 72 of file EgHLTOffHelper.h.

edm::ESHandle<EcalSeverityLevelAlgo> egHLT::OffHelper::ecalSeverityLevel_
private

Definition at line 88 of file EgHLTOffHelper.h.

edm::Handle<EcalRecHitCollection> egHLT::OffHelper::eeRecHits_
private

Definition at line 91 of file EgHLTOffHelper.h.

edm::EDGetTokenT<reco::GsfElectronCollection> egHLT::OffHelper::electronsToken
private

Definition at line 78 of file EgHLTOffHelper.h.

OffEgSel egHLT::OffHelper::eleCuts_
private

Definition at line 64 of file EgHLTOffHelper.h.

OffEgSel egHLT::OffHelper::eleLooseCuts_
private

Definition at line 63 of file EgHLTOffHelper.h.

edm::Handle<HBHERecHitCollection> egHLT::OffHelper::hbheHits_
private

Definition at line 93 of file EgHLTOffHelper.h.

edm::EDGetTokenT<HBHERecHitCollection> egHLT::OffHelper::hbheHitsToken
private

Definition at line 75 of file EgHLTOffHelper.h.

edm::Handle<HFRecHitCollection> egHLT::OffHelper::hfHits_
private

Definition at line 92 of file EgHLTOffHelper.h.

edm::EDGetTokenT<HFRecHitCollection> egHLT::OffHelper::hfHitsToken
private

Definition at line 76 of file EgHLTOffHelper.h.

EgammaHLTTrackIsolation* egHLT::OffHelper::hltEleTrkIsolAlgo_
private

Definition at line 119 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEleTrkIsolInnerCone_
private

Definition at line 142 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEleTrkIsolOuterCone_
private

Definition at line 141 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEleTrkIsolPtMin_
private

Definition at line 140 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEleTrkIsolRSpan_
private

Definition at line 144 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEleTrkIsolZSpan_
private

Definition at line 143 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolEMinEB_
private

Definition at line 128 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolEMinEE_
private

Definition at line 132 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolEtaSliceEB_
private

Definition at line 126 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolEtaSliceEE_
private

Definition at line 130 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolEtMinEB_
private

Definition at line 127 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolEtMinEE_
private

Definition at line 131 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolInnerConeEB_
private

Definition at line 125 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolInnerConeEE_
private

Definition at line 129 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltEMIsolOuterCone_
private

Definition at line 124 of file EgHLTOffHelper.h.

std::vector<std::string> egHLT::OffHelper::hltFiltersUsed_
private

Definition at line 111 of file EgHLTOffHelper.h.

std::vector<std::pair<std::string,int> > egHLT::OffHelper::hltFiltersUsedWithNrCandsCut_
private

Definition at line 112 of file EgHLTOffHelper.h.

int egHLT::OffHelper::hltHadIsolDepth_
private

Definition at line 149 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltHadIsolEtMin_
private

Definition at line 148 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltHadIsolInnerCone_
private

Definition at line 147 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltHadIsolOuterCone_
private

Definition at line 146 of file EgHLTOffHelper.h.

EgammaHLTTrackIsolation* egHLT::OffHelper::hltPhoTrkIsolAlgo_
private

Definition at line 120 of file EgHLTOffHelper.h.

bool egHLT::OffHelper::hltPhoTrkIsolCountTrks_
private

Definition at line 139 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltPhoTrkIsolInnerCone_
private

Definition at line 136 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltPhoTrkIsolOuterCone_
private

Definition at line 135 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltPhoTrkIsolPtMin_
private

Definition at line 134 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltPhoTrkIsolRSpan_
private

Definition at line 138 of file EgHLTOffHelper.h.

double egHLT::OffHelper::hltPhoTrkIsolZSpan_
private

Definition at line 137 of file EgHLTOffHelper.h.

std::string egHLT::OffHelper::hltTag_
private

Definition at line 110 of file EgHLTOffHelper.h.

edm::Handle<reco::TrackCollection> egHLT::OffHelper::isolTrks_
private

Definition at line 94 of file EgHLTOffHelper.h.

edm::EDGetTokenT<reco::TrackCollection> egHLT::OffHelper::isolTrkToken
private

Definition at line 74 of file EgHLTOffHelper.h.

std::vector<std::pair<std::string,std::string> > egHLT::OffHelper::l1PreAndSeedFilters_
private

Definition at line 113 of file EgHLTOffHelper.h.

std::vector<std::string> egHLT::OffHelper::l1PreScaledFilters_
private

Definition at line 115 of file EgHLTOffHelper.h.

std::vector<std::string> egHLT::OffHelper::l1PreScaledPaths_
private

Definition at line 114 of file EgHLTOffHelper.h.

edm::ESHandle<MagneticField> egHLT::OffHelper::magField_
private

Definition at line 87 of file EgHLTOffHelper.h.

OffEgSel egHLT::OffHelper::phoCuts_
private

Definition at line 66 of file EgHLTOffHelper.h.

OffEgSel egHLT::OffHelper::phoLooseCuts_
private

Definition at line 65 of file EgHLTOffHelper.h.

edm::EDGetTokenT<reco::PhotonCollection> egHLT::OffHelper::photonsToken
private

Definition at line 79 of file EgHLTOffHelper.h.

edm::Handle<reco::GsfElectronCollection> egHLT::OffHelper::recoEles_
private

Definition at line 98 of file EgHLTOffHelper.h.

edm::Handle<std::vector<reco::CaloJet> > egHLT::OffHelper::recoJets_
private

Definition at line 99 of file EgHLTOffHelper.h.

edm::Handle<reco::PhotonCollection> egHLT::OffHelper::recoPhos_
private

Definition at line 97 of file EgHLTOffHelper.h.

edm::Handle<reco::VertexCollection> egHLT::OffHelper::recoVertices_
private

Definition at line 106 of file EgHLTOffHelper.h.

std::vector<edm::ParameterSet> egHLT::OffHelper::trigCutParams_
private

Definition at line 157 of file EgHLTOffHelper.h.

std::vector<std::pair<TrigCodes::TrigBitSet,OffEgSel> > egHLT::OffHelper::trigCuts_
private

Definition at line 68 of file EgHLTOffHelper.h.

edm::Handle<trigger::TriggerEvent> egHLT::OffHelper::trigEvt_
private

Definition at line 96 of file EgHLTOffHelper.h.

edm::EDGetTokenT<trigger::TriggerEvent> egHLT::OffHelper::triggerSummaryToken
private

Definition at line 77 of file EgHLTOffHelper.h.

edm::Handle<edm::TriggerResults> egHLT::OffHelper::trigResults_
private

Definition at line 104 of file EgHLTOffHelper.h.

edm::EDGetTokenT<edm::TriggerResults> egHLT::OffHelper::trigResultsToken
private

Definition at line 82 of file EgHLTOffHelper.h.

edm::EDGetTokenT<reco::VertexCollection> egHLT::OffHelper::vertexToken
private

Definition at line 83 of file EgHLTOffHelper.h.