26 using namespace egHLT;
116 std::string trigName =
trigCutParams_[trigNr].getParameter<std::string>(
"trigName");
156 if(errCode==0) errCode =
getHandles(edmEvent,setup);
159 if(errCode==0) errCode =
setTrigInfo(edmEvent, offEvent);
204 egHLTOffEles.clear();
206 for(reco::GsfElectronCollection::const_iterator gsfIter=
recoEles_->begin(); gsfIter!=
recoEles_->end();++gsfIter){
207 if(!gsfIter->ecalDrivenSeed())
continue;
213 && std::fabs( nVit->z()<24.0)
214 &&
sqrt(nVit->x()*nVit->x() + nVit->y()*nVit->y())<2.0){nVertex++;}
229 egHLTOffEles.push_back(
OffEle(*gsfIter,clusShapeData,isolData,hltData,eventData));
232 OffEle& ele = egHLTOffEles.back();
236 std::vector<std::pair<TrigCodes::TrigBitSet,int> >trigCutsCutCodes;
261 else isolData.
hltHad = 0.;
270 ecalIsolAlgoEE.getEtSum(&ele);
271 else isolData.
hltEm = 0.;
280 double e5x5 = ele.
e5x5();
291 const DetId seedDetId = seedClus.hitsAndFractions()[0].first;
299 }
else clusShapeData.
r9 = -1.;
308 }
else clusShapeData.
r9 = -1.;
322 math::XYZPoint scPosWRTVtx(scClus->x()-bsPos.x(), scClus->y()-bsPos.y() , scClus->z()-ctfTrack->vz());
323 hltData.
dEtaIn = fabs(scPosWRTVtx.eta()-ctfTrack->eta());
326 float deltaPhi=fabs(ctfTrack->outerPosition().phi()-scClus->phi());
327 if(deltaPhi>6.283185308) deltaPhi -= 6.283185308;
328 if(deltaPhi>3.141592654) deltaPhi = 6.283185308-
deltaPhi;
360 egHLTOffPhos.clear();
362 for(reco::PhotonCollection::const_iterator phoIter=
recoPhos_->begin(); phoIter!=
recoPhos_->end();++phoIter){
373 egHLTOffPhos.push_back(
OffPho(*phoIter,clusShapeData,isolData,hltData));
374 OffPho& pho = egHLTOffPhos.back();
378 std::vector<std::pair<TrigCodes::TrigBitSet,int> >trigCutsCutCodes;
405 else isolData.
hltHad = 0.;
412 ecalIsolAlgoEE.getEtSum(&pho);
413 else isolData.
hltEm = 0.;
421 double e5x5 = pho.
e5x5();
429 clusShapeData.
r9 = pho.
r9();
435 const DetId seedDetId = seedClus.hitsAndFractions()[0].first;
T getParameter(std::string const &) const
double hltEMIsolEtaSliceEB_
edm::Handle< reco::TrackCollection > isolTrks_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
edm::InputTag ecalRecHitsEBTag_
int setTrigInfo(const edm::Event &edmEvent, egHLT::OffEvt &offEvent)
int fillOffPhoVec(std::vector< OffPho > &offPhos)
double hltPhoTrkIsolRSpan_
void setTrigCutsCutCodes(const std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes)
float hcalTowerSumEtConeDR03() const
Hcal isolation sum.
void setTrigCutsCutCodes(const std::vector< std::pair< TrigCodes::TrigBitSet, int > > trigCutsCutCodes)
void setLooseCutCode(int code)
static TrigBitSet getCode(const std::string &descript)
bool hltPhoTrkIsolCountTrks_
void fillClusShapeData(const reco::GsfElectron &ele, OffEle::ClusShapeData &clusShapeData)
edm::Handle< reco::PhotonCollection > recoPhos_
std::vector< std::pair< TrigCodes::TrigBitSet, OffEgSel > > trigCuts_
int getCutCode(const OffEle &ele, int cutMask=~0x0) const
edm::InputTag caloJetsTag_
double hltEMIsolOuterCone_
float e1x5() const
Shower shape variables.
std::vector< std::string > l1PreScaledPaths_
EgammaHLTTrackIsolation * hltPhoTrkIsolAlgo_
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
std::vector< std::pair< std::string, std::string > > l1PreAndSeedFilters_
double hltEleTrkIsolOuterCone_
math::XYZPoint Point
point in the space
void fillIsolData(const reco::GsfElectron &ele, OffEle::IsolData &isolData)
int photonTrackCount(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
float dr03HcalDepth2TowerSumEt() const
void fillHLTData(const reco::GsfElectron &ele, OffEle::HLTData &hltData)
float trkSumPtHollowConeDR03() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
double hltEMIsolInnerConeEE_
void setEvtTrigBits(TrigCodes::TrigBitSet bits)
std::vector< edm::ParameterSet > trigCutParams_
double hltEleTrkIsolInnerCone_
TrackRef closestCtfTrackRef() const
edm::Handle< HBHERecHitCollection > hbheHits_
double hltPhoTrkIsolPtMin_
double hltEleTrkIsolZSpan_
edm::InputTag electronsTag_
bool isNonnull() const
Checks for non-null.
void fillHLTDataPho(const reco::Photon &pho, OffPho::HLTData &hltData)
float sigmaIetaIeta() const
unsigned int triggerIndex(std::string const &name) const
double hltHadIsolInnerCone_
float electronPtSum(const reco::Track *const tr, const reco::TrackCollection *isoTracks)
Get Pt sum of tracks inside an isolation cone for electrons.
edm::InputTag isolTrkTag_
void setup(const edm::ParameterSet &)
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
double hltPhoTrkIsolZSpan_
std::vector< std::pair< std::string, int > > hltFiltersUsedWithNrCandsCut_
double hltEleTrkIsolRSpan_
float sigmaIetaIeta() const
double hltHadIsolOuterCone_
float dr03TkSumPt() const
edm::Handle< HFRecHitCollection > hfHits_
float dr03HcalDepth1TowerSumEt() const
void setLooseCutCode(int code)
edm::Handle< std::vector< reco::CaloJet > > recoJets_
float sigmaEtaEta() const
edm::InputTag trigResultsTag_
double hltEleTrkIsolPtMin_
int nTrkHollowConeDR03() const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edm::InputTag triggerSummaryLabel_
void setCutCode(int code)
edm::ESHandle< MagneticField > magField_
edm::Handle< trigger::TriggerEvent > trigEvt_
edm::ESHandle< CaloGeometry > caloGeom_
const std::vector< OffPho > & phos() const
double hltPhoTrkIsolInnerCone_
void setCutCode(int code)
double hltEMIsolEtaSliceEE_
double hltEMIsolInnerConeEB_
edm::Handle< reco::GsfElectronCollection > recoEles_
edm::Handle< edm::TriggerResults > trigResults_
edm::ESHandle< CaloTopology > caloTopology_
void setup(const edm::ParameterSet &conf)
XYZPointD XYZPoint
point in space with cartesian internal representation
T const * product() const
edm::InputTag caloTowersTag_
T const * product() const
std::vector< std::string > l1PreScaledFilters_
void setJets(edm::Handle< std::vector< reco::CaloJet > > jets)
float dr03EcalRecHitSumEt() const
edm::InputTag photonsTag_
edm::Handle< EcalRecHitCollection > eeRecHits_
const std::vector< OffEle > & eles() const
int getHandles(const edm::Event &event, const edm::EventSetup &setup)
double hltPhoTrkIsolOuterCone_
float ecalRecHitSumEtConeDR03() const
Isolation variables in cone dR=0.3.
edm::Handle< CaloTowerCollection > caloTowers_
edm::Handle< EcalRecHitCollection > ebRecHits_
std::vector< std::string > hltFiltersUsed_
edm::Handle< reco::VertexCollection > recoVertices_
static bool getHandle(const edm::Event &event, const edm::InputTag &tag, edm::Handle< T > &handle)
edm::ESHandle< EcalSeverityLevelAlgo > ecalSeverityLevel_
EgammaHLTTrackIsolation * hltEleTrkIsolAlgo_
edm::InputTag ecalRecHitsEETag_
edm::Handle< reco::BeamSpot > beamSpot_
edm::InputTag hbheHitsTag_
void setupTriggers(const HLTConfigProvider &config, const std::vector< std::string > &hltFiltersUsed)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
tuple size
Write out results.
float photonPtSum(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
int makeOffEvt(const edm::Event &edmEvent, const edm::EventSetup &setup, egHLT::OffEvt &offEvent)
float sigmaEtaEta() const
int fillOffEleVec(std::vector< OffEle > &offEles)
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack
std::bitset< maxNrBits_ > TrigBitSet
edm::InputTag beamSpotTag_