ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Attributes | List of all members
Trig::ConfigurationAccess Class Referenceabstract

#include <ConfigurationAccess.h>

Inheritance diagram for Trig::ConfigurationAccess:
Collaboration diagram for Trig::ConfigurationAccess:

Public Member Functions

 ConfigurationAccess ()
 
virtual ~ConfigurationAccess ()
 
std::vector< std::string > getListOfTriggers (const Trig::ChainGroup *chaingroup) const
 
std::vector< std::string > getListOfTriggers (const std::string &triggerNames=".*") const
 
std::vector< std::string > getListOfStreams (const Trig::ChainGroup *chaingroup) const
 
std::vector< std::string > getListOfStreams (const std::string &triggerNames=".*") const
 
std::vector< std::string > getListOfGroups (const Trig::ChainGroup *chaingroup) const
 
std::vector< std::string > getListOfGroups (const std::string &triggerNames=".*") const
 
std::vector< std::vector< std::string > > getListOfTriggerElements (const Trig::ChainGroup *chaingroup) const
 
std::vector< std::vector< std::string > > getListOfTriggerElements (const std::string &triggerNames=".*") const
 
float getPrescale (const Trig::ChainGroup *chaingroup, unsigned int condition=TrigDefs::Physics) const
 
float getPrescale (const std::string &triggerNames="EF._*", unsigned int condition=TrigDefs::Physics) const
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void configurationUpdate (const TrigConf::HLTChainList *confChains, const TrigConf::CTPConfig *confItems)
 

Private Member Functions

virtual Trig::CacheGlobalMemorycgm ()=0
 
virtual const Trig::CacheGlobalMemorycgm () const =0
 

Static Private Attributes

static asg::AsgTool *s_logger ATLAS_THREAD_SAFE {nullptr}
 

Detailed Description

Definition at line 36 of file ConfigurationAccess.h.

Constructor & Destructor Documentation

◆ ConfigurationAccess()

Trig::ConfigurationAccess::ConfigurationAccess ( )

Definition at line 21 of file ConfigurationAccess.cxx.

21 {}

◆ ~ConfigurationAccess()

Trig::ConfigurationAccess::~ConfigurationAccess ( )
virtual

Definition at line 23 of file ConfigurationAccess.cxx.

23 {}

Member Function Documentation

◆ cgm() [1/2]

virtual const Trig::CacheGlobalMemory* Trig::ConfigurationAccess::cgm ( ) const
privatepure virtual

Implemented in Trig::TrigDecisionToolCore.

◆ cgm() [2/2]

virtual Trig::CacheGlobalMemory* Trig::ConfigurationAccess::cgm ( )
privatepure virtual

Implemented in Trig::TrigDecisionToolCore.

◆ configurationUpdate()

void Trig::ConfigurationAccess::configurationUpdate ( const TrigConf::HLTChainList confChains,
const TrigConf::CTPConfig confItems 
)
protected

Definition at line 26 of file ConfigurationAccess.cxx.

27  {
28  // this is the update method which is called whenever a lower level element has changed
29  // or needs to be changed
30  cgm()->update(confChains, ctp);
31 }

◆ getListOfGroups() [1/2]

std::vector< std::string > Trig::ConfigurationAccess::getListOfGroups ( const std::string &  triggerNames = ".*") const

Definition at line 67 of file ConfigurationAccess.cxx.

67  {
69  return getListOfGroups(g);
70 }

◆ getListOfGroups() [2/2]

std::vector< std::string > Trig::ConfigurationAccess::getListOfGroups ( const Trig::ChainGroup chaingroup) const

Definition at line 63 of file ConfigurationAccess.cxx.

63  {
64  return chaingroup->getListOfGroups();
65 }

◆ getListOfStreams() [1/2]

std::vector< std::string > Trig::ConfigurationAccess::getListOfStreams ( const std::string &  triggerNames = ".*") const

Definition at line 54 of file ConfigurationAccess.cxx.

54  {
56  return getListOfStreams(g);
57 }

◆ getListOfStreams() [2/2]

std::vector< std::string > Trig::ConfigurationAccess::getListOfStreams ( const Trig::ChainGroup chaingroup) const

Definition at line 50 of file ConfigurationAccess.cxx.

50  {
51  return chaingroup->getListOfStreams();
52 }

◆ getListOfTriggerElements() [1/2]

std::vector< std::vector< std::string > > Trig::ConfigurationAccess::getListOfTriggerElements ( const std::string &  triggerNames = ".*") const

Definition at line 80 of file ConfigurationAccess.cxx.

80  {
83 }

◆ getListOfTriggerElements() [2/2]

std::vector< std::vector< std::string > > Trig::ConfigurationAccess::getListOfTriggerElements ( const Trig::ChainGroup chaingroup) const

Definition at line 76 of file ConfigurationAccess.cxx.

76  {
77  return chaingroup->getListOfTriggerElements();
78 }

◆ getListOfTriggers() [1/2]

std::vector< std::string > Trig::ConfigurationAccess::getListOfTriggers ( const std::string &  triggerNames = ".*") const

Definition at line 41 of file ConfigurationAccess.cxx.

41  {
43  return getListOfTriggers(g);
44 }

◆ getListOfTriggers() [2/2]

std::vector< std::string > Trig::ConfigurationAccess::getListOfTriggers ( const Trig::ChainGroup chaingroup) const

Definition at line 37 of file ConfigurationAccess.cxx.

37  {
38  return chaingroup->getListOfTriggers();
39 }

◆ getPrescale() [1/2]

float Trig::ConfigurationAccess::getPrescale ( const std::string &  triggerNames = "EF._*",
unsigned int  condition = TrigDefs::Physics 
) const

Definition at line 94 of file ConfigurationAccess.cxx.

◆ getPrescale() [2/2]

float Trig::ConfigurationAccess::getPrescale ( const Trig::ChainGroup chaingroup,
unsigned int  condition = TrigDefs::Physics 
) const

Definition at line 88 of file ConfigurationAccess.cxx.

90 {
91  return chainGroup->getPrescale(condition);
92 }

◆ msg() [1/2]

MsgStream& Trig::Logger::msg ( ) const
inlineinherited

Definition at line 29 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Logger.h.

29  {
30  if (s_logger) return s_logger->msg();
31  else throw std::runtime_error("TrigDecisionTool Logger not initialized.");
32  }

◆ msg() [2/2]

MsgStream& Trig::Logger::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 33 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Logger.h.

33 { return msg() << lvl; }

◆ msgLvl()

bool Trig::Logger::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 34 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Logger.h.

34 { return s_logger && s_logger->msgLvl(lvl); }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

asg::AsgTool* s_logger Trig::Logger::ATLAS_THREAD_SAFE {nullptr}
inlinestaticprivateinherited

The documentation for this class was generated from the following files:
Trig::CacheGlobalMemory::createChainGroup
const Trig::ChainGroup * createChainGroup(const std::vector< std::string > &patterns, const std::string &alias="", TrigDefs::Group props=TrigDefs::Group::Default) const
creates new chain group
Definition: CacheGlobalMemory.cxx:54
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
Trig::ConfigurationAccess::getListOfTriggerElements
std::vector< std::vector< std::string > > getListOfTriggerElements(const Trig::ChainGroup *chaingroup) const
Definition: ConfigurationAccess.cxx:76
LArG4GenerateShowerLib.condition
condition
Definition: LArG4GenerateShowerLib.py:19
Trig::ConfigurationAccess::cgm
virtual Trig::CacheGlobalMemory * cgm()=0
Trig::ConfigurationAccess::getListOfTriggers
std::vector< std::string > getListOfTriggers(const Trig::ChainGroup *chaingroup) const
Definition: ConfigurationAccess.cxx:37
Trig::convertStringToVector
std::vector< std::string > convertStringToVector(const std::string &triggerNames)
makes a split of list of chains into the vector of chains
Definition: TDTUtilities.cxx:41
Trig::ChainGroup::getListOfGroups
std::vector< std::string > getListOfGroups() const
Definition: ChainGroup.cxx:487
Trig::ChainGroup::getListOfStreams
std::vector< std::string > getListOfStreams() const
Definition: ChainGroup.cxx:472
Trig::ConfigurationAccess::getListOfGroups
std::vector< std::string > getListOfGroups(const Trig::ChainGroup *chaingroup) const
Definition: ConfigurationAccess.cxx:63
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
Trig::Logger::msg
MsgStream & msg() const
Definition: Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Logger.h:29
Trig::ChainGroup
Definition: ChainGroup.h:51
TriggerTest.ctp
ctp
Retrieve trigger EDM objects.
Definition: TriggerTest.py:14
Trig::ConfigurationAccess::getListOfStreams
std::vector< std::string > getListOfStreams(const Trig::ChainGroup *chaingroup) const
Definition: ConfigurationAccess.cxx:50
Trig::ConfigurationAccess::getPrescale
float getPrescale(const Trig::ChainGroup *chaingroup, unsigned int condition=TrigDefs::Physics) const
Definition: ConfigurationAccess.cxx:88
Trig::CacheGlobalMemory::update
void update(const TrigConf::HLTChainList *confChains, const TrigConf::CTPConfig *ctp)
Updates configuration of the chain groups (i.e.
Definition: CacheGlobalMemory.cxx:109
Trig::ChainGroup::getListOfTriggerElements
std::vector< std::vector< std::string > > getListOfTriggerElements() const
Definition: ChainGroup.cxx:555
Trig::ChainGroup::getListOfTriggers
std::vector< std::string > getListOfTriggers() const
Definition: ChainGroup.cxx:467