|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GaudiKernel/MsgStream.h"
15 #include "GaudiKernel/StatusCode.h"
16 #include "GaudiKernel/ITHistSvc.h"
25 #include "CLHEP/Units/SystemOfUnits.h"
62 return StatusCode::SUCCESS;
89 ATH_MSG_DEBUG(
"Selecting barrel muon RoI clusters with |eta|< " << etaMid <<
" and >= " << nRoIBarrel <<
" RoIs");
90 ATH_MSG_DEBUG(
"and endcap muon RoI clusters with |eta| > : " << etaMid <<
"and >= " <<nRoIEndCap <<
" RoIs");
95 ATH_CHECK( previousDecisionsHandle.isValid() );
96 ATH_MSG_DEBUG(
"Running with "<< previousDecisionsHandle->size() <<
" previous decisions");
102 if (previousDecisionsHandle->size() == 0) {
103 ATH_MSG_DEBUG(
"No incoming decision objects, nothing to do");
104 return StatusCode::SUCCESS;
110 auto compCont = compContHdl.get();
112 if (compCont->size() == 0) {
113 ATH_MSG_DEBUG(
"No reconstructed muon-roi-cluster summary object, nothing to do");
114 return StatusCode::SUCCESS;
115 }
else if (compCont->size() > 1) {
116 ATH_MSG_ERROR(
"This HypoAlg is only expecting exactly one reconstructed muon cluster object, but MuonCluster reconstruction has output " << compCont->size() <<
". Cannot currently deal with this.");
117 return StatusCode::FAILURE;
131 for (
const Decision* previousDecision : *previousDecisionsHandle) {
150 return StatusCode::SUCCESS;
Group
Properties of a chain group.
ToolHandle< GenericMonitoringTool > m_monTool
xAOD::TrigCompositeContainer DecisionContainer
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::vector< ALFA_RawDataCollection_p1 > t1
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...
MuonClusterHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
virtual StatusCode execute(const EventContext &ctx) const override
method to execute.
Handle class for recording to StoreGate.
virtual StatusCode initialize() override
method to initialize.
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.
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_outputCompositesKey
xAOD::TrigCompositeAuxContainer DecisionAuxContainer
ElementLink implementation for ROOT usage.
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.
std::vector< ALFA_RawDataContainer_p1 > t2
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...
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.
Declare a monitored scalar variable.
Handle class for reading from StoreGate.
~MuonClusterHypoAlg()
Destructor.
ToolHandleArray< MuonClusterHypoTool > m_hypoTools
const std::string & viewString()