|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/SystemOfUnits.h"
47 return StatusCode::SUCCESS;
58 ATH_CHECK( previousDecisionsHandle.isValid() );
60 ATH_MSG_DEBUG(
"Running with " << previousDecisionsHandle->size() <<
" previous decisions" );
61 if( previousDecisionsHandle->size()!=1 ) {
62 ATH_MSG_ERROR(
"Previous decision handle size is not 1. It is" << previousDecisionsHandle->size() );
63 return StatusCode::FAILURE;
65 const Decision * previousDecision = previousDecisionsHandle->at(0);
70 for(
auto decisionID: previousDecisionIDs) {
ATH_MSG_DEBUG(
" " << decisionID ); }
75 auto outputDecisions = outputHandle.
ptr();
81 ATH_MSG_DEBUG (
"Track handle size: " << trackHandle->size() <<
"..." );
85 std::vector<float> mnt_pt;
90 unsigned int itrk_passed = 0;
91 std::vector<IDCalibHypoTool::IDCalibHypoInfo> IDCalibHypoInputs;
107 IDCalibHypoInputs.push_back( hypoInfo );
109 ATH_MSG_DEBUG(
"nr tracks = " << trackContainer->size() <<
" -> selected nr = " << itrk_passed );
118 while(
it != outputDecisions->end()) {
121 it = outputDecisions->erase(
it);
132 return StatusCode::SUCCESS;
JetConstituentVector::iterator iterator
Group
Properties of a chain group.
xAOD::TrigCompositeContainer DecisionContainer
ToolHandleArray< IDCalibHypoTool > m_hypoTools
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()
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 SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & decisionOutput() const
methods for derived classes to access handles of the base class output other read/write handles may b...
bool isValid() const
Test to see if the link can be dereferenced.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
ToolHandle< GenericMonitoringTool > m_monTool
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 StatusCode execute(const EventContext &context) const override
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Header file to be included by clients of the Monitored infrastructure.
xAOD::TrigCompositeAuxContainer DecisionAuxContainer
const std::string & featureString()
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
xAOD::TrigComposite Decision
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
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...
IDCalibHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)
bool allFailed(const Decision *d)
return true if there is no positive decision stored
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
virtual StatusCode initialize() override
Class describing a TrackParticle.
const std::string & viewString()
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey