35 return StatusCode::FAILURE;
52 return StatusCode::SUCCESS;
59 auto selDec = std::make_unique<SG::Decorator<uint32_t> > (
"selectEta");
60 auto oqDec = std::make_unique<SG::Decorator<uint32_t> > (
"goodOQ");
61 auto cleanDec = std::make_unique<SG::Decorator<uint32_t> > (
"isClean");
78 for (
auto eg : *egammaCont ) {
82 ATH_MSG_DEBUG(
"Eg passed WP - pt, eta: " << eg->type() <<
", " << eg->pt()/1000. <<
", " << eg->eta() <<
", " << (*
m_wpDec)(*eg) );
90 ATH_MSG_DEBUG(
"Veto FSR: Eg passed WP - pt, eta: " << eg->type() <<
", " << eg->pt()/1000. <<
", " << eg->eta() <<
", " << (*
m_wpDec)(*eg) );
101 ATH_MSG_DEBUG(
"Incoming eg: pt, eta, phi " << eg->pt()/1000. <<
", " << eg->eta() <<
", " << eg->phi() <<
", is electron " << (el != 0));
104 for (
auto mu : *muonCont ) {
108 ATH_MSG_DEBUG(
"dR with mu: pt, eta, phi " << dR <<
", " << mu->pt()/1000. <<
", " << mu->eta() <<
", " << mu->phi() );
113 bool elmutrackmatchOK =
true;
120 ( (std::abs(electron_track->
theta()- muon_track->
theta()) < 0.01) &&
124 if (elOrig_track)
ATH_MSG_DEBUG(
"origTrk: dtheta trk " << std::abs(elOrig_track->
theta()- muon_track->
theta()) <<
", dphi trk "
129 if (elmutrackmatchOK) {
133 if (selDec->isAvailable(*eg))
ATH_MSG_DEBUG(
"selectEta: " << (*selDec)(*eg) );
134 if (oqDec->isAvailable(*eg))
ATH_MSG_DEBUG(
"goodOQ: " << (*oqDec)(*eg) );
135 if (cleanDec->isAvailable(*eg))
ATH_MSG_DEBUG(
"isClean: " << (*cleanDec)(*eg) );
147 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
float theta() const
Returns the parameter, which has range 0 to .
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
Select isolated Photons, Electrons and Muons.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
@ Electron
The object is an electron.
const xAOD::TrackParticle * getOriginalTrackParticle(const xAOD::Electron *el)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the electron.
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
TrackParticle_v1 TrackParticle
Reference the current persistent version:
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
Electron_v1 Electron
Definition of the current "egamma version".
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.