ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
ViewCreatorFSROITool Class Reference

#include <ViewCreatorFSROITool.h>

Inheritance diagram for ViewCreatorFSROITool:
Collaboration diagram for ViewCreatorFSROITool:

Public Member Functions

 ViewCreatorFSROITool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~ViewCreatorFSROITool ()=default
 
virtual StatusCode initialize () override
 
virtual StatusCode attachROILinks (TrigCompositeUtils::DecisionContainer &decisions, const EventContext &ctx) const override
 Tool interface method. More...
 

Public Attributes

SG::WriteHandleKey< TrigRoiDescriptorCollectionm_roisWriteHandleKey
 ROI Write Handle key for the FS ROI colletion. More...
 
ToolHandle< IRoiUpdaterToolm_roiupdater { this, "RoiUpdater", "", "Roi Updater" }
 

Detailed Description

Tool to create an output collection containing a single Full Scan ROI descriptor.

Every Decision Object passed to the tool in decisions is set to use this FS ROI.

Definition at line 21 of file ViewCreatorFSROITool.h.

Constructor & Destructor Documentation

◆ ViewCreatorFSROITool()

ViewCreatorFSROITool::ViewCreatorFSROITool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 11 of file ViewCreatorFSROITool.cxx.

12  : base_class(type, name, parent)
13  {}

◆ ~ViewCreatorFSROITool()

virtual ViewCreatorFSROITool::~ViewCreatorFSROITool ( )
virtualdefault

Member Function Documentation

◆ attachROILinks()

StatusCode ViewCreatorFSROITool::attachROILinks ( TrigCompositeUtils::DecisionContainer decisions,
const EventContext &  ctx 
) const
overridevirtual

Tool interface method.

Definition at line 25 of file ViewCreatorFSROITool.cxx.

25  {
26 
28 
29  if ( m_roiupdater.empty() ) {
30  roisWriteHandle->push_back( new TrigRoiDescriptor( RoiDescriptor::FULLSCAN ) );
31  }
32  else {
33  roisWriteHandle->push_back( m_roiupdater->execute( ctx ) );
34  }
35 
36  const ElementLink<TrigRoiDescriptorCollection> roiEL = ElementLink<TrigRoiDescriptorCollection>( *roisWriteHandle, /*index =*/ 0, ctx );
37 
38  for ( Decision* outputDecision : decisions ) {
39  outputDecision->setObjectLink( roiString(), roiEL );
40  }
41 
42  return StatusCode::SUCCESS;
43 }

◆ initialize()

StatusCode ViewCreatorFSROITool::initialize ( )
overridevirtual

Definition at line 16 of file ViewCreatorFSROITool.cxx.

16  {
18 
19  if ( !m_roiupdater.empty() ) ATH_CHECK( m_roiupdater.retrieve() );
20 
21  return StatusCode::SUCCESS;
22 }

Member Data Documentation

◆ m_roisWriteHandleKey

SG::WriteHandleKey< TrigRoiDescriptorCollection > ViewCreatorFSROITool::m_roisWriteHandleKey
Initial value:
{this,"RoisWriteHandleKey","",
"Name of the ROI collection produced by this tool."}

ROI Write Handle key for the FS ROI colletion.

Definition at line 38 of file ViewCreatorFSROITool.h.

◆ m_roiupdater

ToolHandle<IRoiUpdaterTool> ViewCreatorFSROITool::m_roiupdater { this, "RoiUpdater", "", "Roi Updater" }

Definition at line 41 of file ViewCreatorFSROITool.h.


The documentation for this class was generated from the following files:
ViewCreatorFSROITool::m_roisWriteHandleKey
SG::WriteHandleKey< TrigRoiDescriptorCollection > m_roisWriteHandleKey
ROI Write Handle key for the FS ROI colletion.
Definition: ViewCreatorFSROITool.h:38
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
TrigCompositeUtils::createAndStoreNoAux
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Creates and right away records the Container CONT with the key.
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
xAOD::decisions
decisions
Definition: TrigComposite_v1.cxx:101
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
SG::WriteHandle< TrigRoiDescriptorCollection >
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RoiDescriptor::FULLSCAN
static constexpr bool FULLSCAN
convenient
Definition: RoiDescriptor.h:45
TrigCompositeUtils::roiString
const std::string & roiString()
Definition: TrigCompositeUtilsRoot.cxx:876
TrigRoiDescriptor
Athena::TPCnvVers::Current TrigRoiDescriptor
Definition: TrigSteeringEventTPCnv.cxx:68
ViewCreatorFSROITool::m_roiupdater
ToolHandle< IRoiUpdaterTool > m_roiupdater
Definition: ViewCreatorFSROITool.h:41