|
ATLAS Offline Software
|
Go to the documentation of this file.
36 ATH_MSG_ERROR(
"either track Key name or track count key name is undefined " );
37 return StatusCode::FAILURE;
43 return StatusCode::SUCCESS;
51 if( not previousDecisionsHandle.isValid() ) {
53 return StatusCode::SUCCESS;
56 if (previousDecisionsHandle->size() == 0) {
58 return StatusCode::SUCCESS;
59 }
else if (previousDecisionsHandle->size() > 1) {
60 ATH_MSG_ERROR(
"Found " << previousDecisionsHandle->size() <<
" previous decisions.");
61 return StatusCode::FAILURE;
64 ATH_MSG_DEBUG(
"Running with "<< previousDecisionsHandle->size() <<
" implicit ReadHandles for previous decisions. Looking for :"<<
viewString());
66 std::vector<int> counts(
m_min_pt.size());
76 ATH_MSG_DEBUG (
"track handle size: " << trackHandle->size() <<
"..." );
78 int ntrks = trackHandle->size();
86 const double xi2 = 0.0;
87 const float abs_d0 = std::fabs(
d0);
96 auto trackCountContainer = std::make_unique< xAOD::TrigCompositeContainer>();
97 auto trackCountContainerAux = std::make_unique< xAOD::TrigCompositeAuxContainer>();
98 trackCountContainer->setStore(trackCountContainerAux.get());
101 trackCountContainer->push_back(trackCount);
113 for(
long unsigned int i=0;
i<counts.size();
i++){
134 ATH_CHECK(trackCountHandle.
record( std::move( trackCountContainer ), std::move( trackCountContainerAux ) ) );
137 return StatusCode::SUCCESS;
Gaudi::Property< std::vector< float > > m_min_pt
bool setDetail(const std::string &name, const TYPE &value)
Set an TYPE detail on the object.
Gaudi::Property< std::vector< float > > m_max_d0
Group
Properties of a chain group.
xAOD::TrigCompositeContainer DecisionContainer
TrigComposite_v1 TrigComposite
Declare the latest version of the class.
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.
const std::string & hypoAlgNodeName()
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)
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::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
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::WriteHandleKey< xAOD::TrigCompositeContainer > m_trackCountKey
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
virtual StatusCode initialize() override
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.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Class used to describe composite objects in the HLT.
xAOD::TrigCompositeAuxContainer DecisionAuxContainer
ElementLink implementation for ROOT usage.
const std::string & featureString()
std::string to_string(const DetectorType &type)
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
Gaudi::Property< std::vector< float > > m_min_d0
ToolHandle< GenericMonitoringTool > m_monTool
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey
ToolHandleArray< FastTrackFinderLRTHypoTool > m_hypoTools
Gaudi::Property< std::vector< float > > m_max_xi2
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
std::set< DecisionID > DecisionIDContainer
FastTrackFinderLRTHypoAlg()
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
LinkInfo< T > findLink(const Decision *start, const std::string &linkName, const bool suppressMultipleLinksWarning=false)
Perform a recursive search for ElementLinks of type T and name 'linkName', starting from Decision obj...
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Class describing a TrackParticle.
Declare a monitored scalar variable.
virtual StatusCode execute(const EventContext &context) const override
const std::string & viewString()