ATLAS Offline Software
Trigger
TrigAnalysis
TrigDecisionTool
Root
ConfigurationAccess.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/**********************************************************************************
6
* @Project: TrigDecisionTool
7
* @Package: TrigDecisionTool
8
* @Class : DecisionAnalysis
9
*
10
* @brief access to information about the trigger configuration
11
*
12
* @author Michael Begel <michael.begel@cern.ch> - Brookhaven National Laboratory
13
*
14
***********************************************************************************/
15
#include <string>
16
#include <vector>
17
18
#include "
TrigDecisionTool/ConfigurationAccess.h
"
19
#include "
TrigDecisionTool/TDTUtilities.h
"
20
21
Trig::ConfigurationAccess::ConfigurationAccess
() {}
22
23
Trig::ConfigurationAccess::~ConfigurationAccess
() {}
24
25
26
void
Trig::ConfigurationAccess::configurationUpdate
(
const
TrigConf::HLTChainList
* confChains,
27
const
TrigConf::CTPConfig
*
ctp
) {
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
}
32
33
//
34
// Triggers
35
//
36
37
std::vector< std::string >
Trig::ConfigurationAccess::getListOfTriggers
(
const
Trig::ChainGroup
* chaingroup)
const
{
38
return
chaingroup->
getListOfTriggers
();
39
}
40
41
std::vector< std::string >
Trig::ConfigurationAccess::getListOfTriggers
(
const
std::string& triggerNames)
const
{
42
const
Trig::ChainGroup
*
g
= cgm()->createChainGroup(
Trig::convertStringToVector
(triggerNames));
43
return
getListOfTriggers(
g
);
44
}
45
46
//
47
// Streams
48
//
49
50
std::vector< std::string >
Trig::ConfigurationAccess::getListOfStreams
(
const
Trig::ChainGroup
* chaingroup)
const
{
51
return
chaingroup->
getListOfStreams
();
52
}
53
54
std::vector< std::string >
Trig::ConfigurationAccess::getListOfStreams
(
const
std::string& triggerNames)
const
{
55
const
Trig::ChainGroup
*
g
= cgm()->createChainGroup(
Trig::convertStringToVector
(triggerNames));
56
return
getListOfStreams(
g
);
57
}
58
59
//
60
// Groups
61
//
62
63
std::vector< std::string >
Trig::ConfigurationAccess::getListOfGroups
(
const
Trig::ChainGroup
* chaingroup)
const
{
64
return
chaingroup->
getListOfGroups
();
65
}
66
67
std::vector< std::string >
Trig::ConfigurationAccess::getListOfGroups
(
const
std::string& triggerNames)
const
{
68
const
Trig::ChainGroup
*
g
= cgm()->createChainGroup(
Trig::convertStringToVector
(triggerNames));
69
return
getListOfGroups(
g
);
70
}
71
72
//
73
// Trigger Elements
74
//
75
76
std::vector< std::vector< std::string > >
Trig::ConfigurationAccess::getListOfTriggerElements
(
const
Trig::ChainGroup
* chaingroup)
const
{
77
return
chaingroup->
getListOfTriggerElements
();
78
}
79
80
std::vector< std::vector< std::string > >
Trig::ConfigurationAccess::getListOfTriggerElements
(
const
std::string& triggerNames)
const
{
81
const
Trig::ChainGroup
*
g
= cgm()->createChainGroup(
Trig::convertStringToVector
(triggerNames));
82
return
getListOfTriggerElements(
g
);
83
}
84
//
85
// Prescale
86
//
87
88
float
Trig::ConfigurationAccess::getPrescale
(
const
Trig::ChainGroup
* chainGroup,
89
unsigned
int
condition
)
const
90
{
91
return
chainGroup->
getPrescale
(
condition
);
92
}
93
94
float
Trig::ConfigurationAccess::getPrescale
(
const
std::string&
chain
,
95
unsigned
int
condition
)
const
96
97
{
98
const
Trig::ChainGroup
*
g
= cgm()->createChainGroup(
Trig::convertStringToVector
(
chain
));
99
return
getPrescale(
g
,
condition
);
100
}
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
Trig::ConfigurationAccess::configurationUpdate
void configurationUpdate(const TrigConf::HLTChainList *confChains, const TrigConf::CTPConfig *confItems)
Definition:
ConfigurationAccess.cxx:26
LArG4GenerateShowerLib.condition
condition
Definition:
LArG4GenerateShowerLib.py:19
TDTUtilities.h
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
ConfigurationAccess.h
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
TrigConf::HLTChainList
list of all HLT chains in a trigger menu
Definition:
HLTChainList.h:56
python.CaloCondTools.g
g
Definition:
CaloCondTools.py:15
Trig::ChainGroup
Definition:
ChainGroup.h:51
Trig::ConfigurationAccess::ConfigurationAccess
ConfigurationAccess()
Definition:
ConfigurationAccess.cxx:21
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::~ConfigurationAccess
virtual ~ConfigurationAccess()
Definition:
ConfigurationAccess.cxx:23
Trig::ConfigurationAccess::getPrescale
float getPrescale(const Trig::ChainGroup *chaingroup, unsigned int condition=TrigDefs::Physics) const
Definition:
ConfigurationAccess.cxx:88
Trig::ChainGroup::getPrescale
float getPrescale(unsigned int condition=TrigDefs::Physics) const
returns prescale factor for chain group with single chain in returns real prescale factor for real ch...
Definition:
ChainGroup.cxx:407
TrigConf::CTPConfig
Definition:
CTPConfig.h:27
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
Generated on Thu Nov 7 2024 21:12:25 for ATLAS Offline Software by
1.8.18