21 if(mu->pt()<2.5e3 || mu->pt()/cosh(mu->eta())<4e3)
return StatusCode::FAILURE;
22 if(mu->muonType()==xAOD::Muon::MuonType::MuonStandAlone) {
24 if(fabs(mu->eta())<2.5)
return StatusCode::FAILURE;
27 if(nPrecision<3)
return StatusCode::FAILURE;
29 else if(mu->muonType()==xAOD::Muon::MuonType::Combined || mu->muonType()==xAOD::Muon::MuonType::SegmentTagged) {
30 if(fabs(mu->eta())>2.5)
return StatusCode::FAILURE;
33 uint8_t nPixHits{0}, nSctHits{0};
35 mu->trackParticle(xAOD::Muon::TrackParticleType::Primary)->summaryValue(nSctHits,
xAOD::numberOfSCTHits);
37 if(nPixHits<3)
return StatusCode::FAILURE;
38 if(nPixHits+nSctHits<5)
return StatusCode::FAILURE;
40 else {
return StatusCode::FAILURE;}
42 return StatusCode::SUCCESS;
54 el->passSelection(testPID,
"Medium");
56 if( !testPID )
return StatusCode::FAILURE;
59 if( !(el->author()&17) )
return StatusCode::FAILURE;
61 if( el->pt()<10e3 )
return StatusCode::FAILURE;
62 if( fabs(el->eta())>2.47 )
return StatusCode::FAILURE;
71 return StatusCode::SUCCESS;
85 if( !testPID )
return StatusCode::FAILURE;
88 if( !(ph->
author()&20) )
return StatusCode::FAILURE;
90 if( ph->
pt()<10e3 )
return StatusCode::FAILURE;
91 if( fabs(ph->
eta())>2.47 )
return StatusCode::FAILURE;
95 return StatusCode::SUCCESS;
106 if(tau->
pt()<20e3 || fabs(tau->
eta())>2.5)
return StatusCode::FAILURE;
112 return StatusCode::SUCCESS;
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
bool passSelection(bool &value, const std::string &menu) const
Check if the egamma object pass a selection menu (using the name) If the menu decision is stored in t...
uint16_t author(uint16_t bitmask=EgammaParameters::AuthorALL) const
Get author.
virtual double pt() const
The transverse momentum ( ) of the particle.
bool isTau(TauJetParameters::IsTauFlag flag) const
Get Flag for tau acceptance based on predefined arbitrary criteria.
virtual double eta() const
The pseudorapidity ( ) of the particle.
StatusCode accept(const xAOD::Muon *mu)
IsTauFlag
Enum for IsTau flags.
TauJet_v3 TauJet
Definition of the current "tau version".
Muon_v1 Muon
Reference the current persistent version:
Photon_v1 Photon
Definition of the current "egamma version".
@ numberOfPrecisionLayers
layers with at least 3 hits [unit8_t].
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Electron_v1 Electron
Definition of the current "egamma version".