Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
33 return StatusCode::FAILURE;
38 return StatusCode::FAILURE;
41 m_accept.
addCut (
"trackRetrieval",
"whether the track retrieval failed");
43 m_accept.
addCut (
"maxD0Significance",
"maximum D0 significance cut");
45 m_accept.
addCut (
"maxDeltaZ0SinTheta",
"maximum Delta z0 sin theta cut");
47 m_accept.
addCut (
"numPixelHits",
"Minimum and/or maxiumum Pixel hits");
49 m_accept.
addCut (
"numSCTHits",
"Minimum and/or maxiumum SCT hits");
66 return StatusCode::SUCCESS;
72 execute (
const EventContext &ctx)
const
90 if (primaryVertex ==
nullptr)
92 primaryVertex = vertex;
106 float deltaZ0SinTheta = -999;
110 std::size_t cutIndex {0};
116 track = electron->trackParticle();
119 return StatusCode::FAILURE;
124 if (
track !=
nullptr) {
129 }
catch (
const std::runtime_error &) {
133 const double vertex_z = primaryVertex ? primaryVertex->z() : 0;
134 deltaZ0SinTheta = (
track->z0() +
track->vz() - vertex_z) *
sin (particle->p4().Theta());
168 return StatusCode::SUCCESS;
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
the EventInfo key
void setBits(const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet &sys) const
set the selection decoration
SysReadSelectionHandle m_preselection
the preselection we apply to our input
ServiceHandle< ISelectionNameSvc > m_nameSvc
the ISelectionNameSvc
Gaudi::Property< int > m_nMaxPixelHits
Gaudi::Property< int > m_nMinSCTHits
StatusCode accept(const xAOD::Muon *mu)
double d0significance(const xAOD::TrackParticle *tp, double d0_uncert_beam_spot_2)
SelectionType selectionFromAccept(const asg::AcceptData &accept)
the selection decoration made from the given AcceptData object
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Gaudi::Property< float > m_maxDeltaZ0SinTheta
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
float nPixelHits(const U &p)
std::string getLabel() const
get the name/label of the decoration
Gaudi::Property< int > m_nMinPixelHits
StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::VertexContainer > m_primaryVerticesKey
the PrimaryVertex key
::StatusCode initialize()
intialize this property
bool getBool(const SG::AuxElement &element, const CP::SystematicSet &sys) const
get the selection as a bool
float nSCTHits(const U &p)
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SysWriteSelectionHandle m_selectionHandle
the accessor for m_selectionDecoration
SysListHandle m_systematicsList
the systematics list we run
void setCutResult(const std::string &cutName, bool cutResult)
Set the result of a cut, based on the cut name (safer)
Class describing a Vertex.
asg::AcceptInfo m_accept
the asg::AcceptInfo we are using
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
the particle container we run on
@ numberOfSCTHits
number of hits in SCT [unit8_t].
StatusCode initialize() override
Class describing a TrackParticle.
Gaudi::Property< int > m_nMaxSCTHits
StatusCode initialize(SysListHandle &sysListHandle, const ISysHandleBase &objectHandle)
initialize the accessor
int addCut(const std::string &cutName, const std::string &cutDescription)
Add a cut; returning the cut position.
Gaudi::Property< float > m_maxD0Significance
algorithm properties