Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
15 ISvcLocator* pSvcLocator ) :
16 ::HypoBase(
name, pSvcLocator ) { }
31 return StatusCode::SUCCESS;
39 ATH_MSG_DEBUG(
"StatusCode TrigMuonEFIdtpHypoAlg::execute start");
43 ATH_CHECK( previousDecisionsHandle.isValid() );
44 ATH_MSG_DEBUG(
"Running with "<< previousDecisionsHandle->size() <<
" previous decisions");
50 std::vector<TrigMuonEFIdtpHypoTool::MuonEFIdperfInfo> toolInput;
54 for (
const auto previousDecision: *previousDecisionsHandle ) {
65 if( ptTrkHandle->size()==0 ) {
71 if( ftfTrkHandle->size()==0 ) {
80 auto muonSALink = prevMuInfo.at(0).link;
83 if( muonSA->
muonType() != xAOD::Muon::MuonType::MuonStandAlone ) {
84 ATH_MSG_VERBOSE(
"previous decision muon is not SA, skipping this decision");
93 std::vector<ElementLink<xAOD::TrackParticleContainer>> thePTTrackLinks;
101 thePTTrack = idtrack;
104 if( thePTTrack !=
nullptr ) {
107 thePTTrackLinks.push_back(idtrackLink);
114 std::vector<ElementLink<xAOD::TrackParticleContainer>> theFTFTrackLinks;
122 theFTFTrack = idtrack;
125 if( theFTFTrack !=
nullptr ) {
128 theFTFTrackLinks.push_back(idtrackLink);
136 toolInput.emplace_back( newd, muonSA, thePTTrack, theFTFTrack, previousDecision );
141 ATH_MSG_VERBOSE(
"Setting object link for PT / FTF track: size="<<thePTTrackLinks.size()<<
" / "<<theFTFTrackLinks.size());
145 ATH_MSG_DEBUG(
"Found "<<toolInput.size()<<
" inputs to tools");
151 sc =
tool->decide(toolInput);
152 if (!
sc.isSuccess()) {
154 return StatusCode::FAILURE;
160 ATH_MSG_DEBUG(
"StatusCode TrigMuonEFIdtpHypoAlg::execute success");
161 return StatusCode::SUCCESS;
virtual double pt() const override final
The transverse momentum ( ) of the particle.
const TrackParticle * trackParticle(TrackParticleType type) const
Returns a pointer (which can be NULL) to the TrackParticle used in identification of this muon.
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
ToolHandleArray< TrigMuonEFIdtpHypoTool > m_hypoTools
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
const std::string & hypoAlgNodeName()
SG::ReadHandle< T > makeHandle(const SG::View *view, const SG::ReadHandleKey< T > &rhKey, const EventContext &context)
navigate from the TrigComposite to nearest view and fetch object from it
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual StatusCode execute(const EventContext &context) const override
const T * get(size_type n) const
Access an element, as an rvalue.
const SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > & decisionInput() const
methods for derived classes to access handles of the base class input other read/write handles may be...
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_PTTracksKey
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
const SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & decisionOutput() const
methods for derived classes to access handles of the base class output other read/write handles may b...
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
TrackFitter trackFitter() const
Returns the fitter.
StatusCode hypoBaseOutputProcessing(SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MSG::Level lvl=MSG::DEBUG) const
Base class function to be called once slice specific code has finished. Handles debug printing and va...
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual StatusCode initialize() override
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
size_t index() const
Return the index of this element within its container.
const std::string & featureString()
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_FTFTracksKey
TrigMuonEFIdtpHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)
Class describing a TrackParticle.
float matchingMetric(const xAOD::TrackParticle *metrack, const xAOD::TrackParticle *idtrack)
size_type size() const noexcept
Returns the number of elements in the collection.
const std::string & viewString()
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
MuonType muonType() const