42 ATH_MSG_INFO(
"Reading container " <<
m_egammaContKey.getNamePattern() <<
" for FSR search for muons from " <<
m_muonContKey.getNamePattern() <<
". The electrons or photons matching FSR requirements with muons will be vetoed with " <<
m_outputDec.getDecorName());
46 return StatusCode::SUCCESS;
70 bool passesFSR =
false;
75 ATH_MSG_DEBUG(
"Incoming eg: pt, eta, phi " << eg->pt()/1000. <<
", "
76 << eg->eta() <<
", " << eg->phi() <<
", is electron " << (el !=
nullptr)
77 <<
", passesWP " << passesWP);
84 << mu->pt()/1000. <<
", " << mu->eta() <<
", " << mu->phi());
88 bool elmutrackmatchOK =
true;
94 if (electron_track && muon_track) {
96 (std::abs(electron_track->
theta() - muon_track->
theta()) < 0.01) &&
105 elmutrackmatchOK =
false;
107 ATH_MSG_DEBUG(
"track match " << (elmutrackmatchOK ?
"OK" :
"NOT OK"));
110 if (elmutrackmatchOK) {
122 outputValue = (passesWP || passesFSR) ? 1 : 0;
125 outputValue = (passesWP && !passesFSR) ? 1 : 0;
129 ATH_MSG_DEBUG(
"Output selection: " <<
static_cast<int>(outputValue)
130 <<
" (passesWP=" << passesWP <<
", passesFSR=" << passesFSR <<
")");
136 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Class providing the definition of the 4-vector interface.
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:
Muon_v1 Muon
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.