ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCompositeUtils::HasObject Class Reference

Prerequisite object usable with. More...

#include <TrigCompositeUtils.h>

Collaboration diagram for TrigCompositeUtils::HasObject:

Public Member Functions

 HasObject (const std::string &name)
 constructor specifying the link name
bool operator() (const Decision *) const
 checks if the arg TC has link of name specified at construction

Private Attributes

std::string m_name

Detailed Description

Prerequisite object usable with.

See also
filter allowing to find TC having a link to an object of name

Definition at line 284 of file TrigCompositeUtils.h.

Constructor & Destructor Documentation

◆ HasObject()

TrigCompositeUtils::HasObject::HasObject ( const std::string & name)
inline

constructor specifying the link name

Definition at line 289 of file TrigCompositeUtils.h.

289: m_name(name) {}

Member Function Documentation

◆ operator()()

bool TrigCompositeUtils::HasObject::operator() ( const Decision * composite) const

checks if the arg TC has link of name specified at construction

Warning
method for internal consumption within
See also
find function

Definition at line 250 of file TrigCompositeUtilsRoot.cxx.

250 {
251 return composite->hasObjectLink( m_name );
252 }
bool hasObjectLink(const std::string &name, const CLID clid=CLID_NULL) const
Check if a link to an object with a given name and type exists. CLID_NULL to not check type.

Member Data Documentation

◆ m_name

std::string TrigCompositeUtils::HasObject::m_name
private

Definition at line 296 of file TrigCompositeUtils.h.


The documentation for this class was generated from the following files: