|
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");
54 return StatusCode::FAILURE;
60 return StatusCode::FAILURE;
66 ANA_MSG_WARNING (
"d0significance decoration name set, please set decorateTTVVars to True if you want this to be written out");
69 ANA_MSG_WARNING (
"z0sintheta decoration name set, please set decorateTTVVars to True if you want this to be written out");
88 return StatusCode::SUCCESS;
112 if (primaryVertex ==
nullptr)
128 float deltaZ0SinTheta = -999;
132 std::size_t cutIndex {0};
141 return StatusCode::FAILURE;
146 if (
track !=
nullptr) {
151 }
catch (
const std::runtime_error &) {
155 const double vertex_z = primaryVertex ? primaryVertex->z() : 0;
186 (*m_z0sinthetaDecorator)(*particle) = deltaZ0SinTheta;
187 (*m_d0sigDecorator)(*particle) = d0sig;
193 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
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
std::unique_ptr< const SG::AuxElement::Decorator< float > > m_z0sinthetaDecorator
the name of the variable being decorated for z0sintheta
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
float beamPosSigmaX() const
The width of the beam spot in the X direction.
@ 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)
Gaudi::Property< bool > m_decorateTTVAVars
std::string getLabel() const
get the name/label of the decoration
Gaudi::Property< int > m_nMinPixelHits
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 execute() override
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::string > m_z0sinthetaDecoration
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
float beamPosSigmaY() const
The width of the beam spot in the Y direction.
std::unique_ptr< const SG::AuxElement::Decorator< float > > m_d0sigDecorator
the name of the variable being decorated for d0significance
SysListHandle m_systematicsList
the systematics list we run
float beamPosSigmaXY() const
The beam spot shape's X-Y correlation.
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
Gaudi::Property< std::string > m_d0sigDecoration
@ 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