HLT chain configuration information.
More...
#include <HLTPrescaleSetCollection.h>
HLT chain configuration information.
Definition at line 25 of file HLTPrescaleSetCollection.h.
◆ HLTPrescaleSetCollection() [1/2]
| TrigConf::HLTPrescaleSetCollection::HLTPrescaleSetCollection |
( |
| ) |
|
default constructor
Definition at line 16 of file HLTPrescaleSetCollection.cxx.
19{}
std::recursive_mutex m_prescaleSetCollection_mutex
Mutex for m_prescaleSetCollection.
std::list< cont > m_prescaleSets
all prescale sets with start lb
◆ ~HLTPrescaleSetCollection()
| HLTPrescaleSetCollection::~HLTPrescaleSetCollection |
( |
| ) |
|
◆ HLTPrescaleSetCollection() [2/2]
Definition at line 25 of file HLTPrescaleSetCollection.cxx.
25 {
26
27 throw std::runtime_error("HLTPrescaleSetCollection::operator= is not implemented");
28}
◆ __str__()
| string HLTPrescaleSetCollection::__str__ |
( |
| ) |
const |
◆ addPrescaleSet() [1/2]
| void TrigConf::HLTPrescaleSetCollection::addPrescaleSet |
( |
const cont & | add_psinfo | ) |
|
|
private |
Definition at line 100 of file HLTPrescaleSetCollection.cxx.
100 {
101
104 if( psinfo_it->lb >= add_psinfo.lb ) break;
105 {
106
107
108
109
110
112 if( (psinfo_it !=
m_prescaleSets.end()) && (psinfo_it->lb == add_psinfo.lb) ) {
113 delete psinfo_it->pss;
114 psinfo_it->pss = add_psinfo.pss;
115
116 psinfo_it->psk = add_psinfo.psk;
117 } else {
119 }
120 }
121}
◆ addPrescaleSet() [2/2]
| void TrigConf::HLTPrescaleSetCollection::addPrescaleSet |
( |
unsigned int | lumiblock, |
|
|
HLTPrescaleSet * | pss ) |
Add prescale set for this lumiblock number.
Definition at line 94 of file HLTPrescaleSetCollection.cxx.
94 {
96}
void addPrescaleSet(unsigned int lumiblock, HLTPrescaleSet *pss)
Add prescale set for this lumiblock number.
◆ clear()
| void HLTPrescaleSetCollection::clear |
( |
| ) |
|
◆ contains()
| bool TrigConf::HLTPrescaleSetCollection::contains |
( |
unsigned int | lumiblock, |
|
|
unsigned int | psk ) |
Check if prescale set with this lumiblock and prescale keys exists.
Definition at line 153 of file HLTPrescaleSetCollection.cxx.
153 {
156 if( psinfo.lb==lumiblock && psinfo.psk==psk ) return true;
157 return false;
158}
◆ operator=()
Definition at line 31 of file HLTPrescaleSetCollection.cxx.
31 {
32
33 throw std::runtime_error("HLTPrescaleSetCollection::operator= is not implemented");
34 return *this;
35}
◆ prescale_keys()
| vector< pair< unsigned int, unsigned int > > TrigConf::HLTPrescaleSetCollection::prescale_keys |
( |
| ) |
const |
Definition at line 125 of file HLTPrescaleSetCollection.cxx.
125 {
126 vector<pair<unsigned int, unsigned int> > lbpsk;
128 lbpsk.push_back(std::make_pair(psinfo.lb,psinfo.psk));
129 return lbpsk;
130}
◆ prescaleSet()
Definition at line 49 of file HLTPrescaleSetCollection.cxx.
49 {
51}
HLTPrescaleSet * thePrescaleSet(unsigned int lumiblock) const
get prescale set for lumiblock and set the internal current lumiblock counter
◆ print()
| void TrigConf::HLTPrescaleSetCollection::print |
( |
const std::string & | indent = "", |
|
|
unsigned int | detail = 1 ) const |
Print the prescale set.
Definition at line 162 of file HLTPrescaleSetCollection.cxx.
162 {
164 if(detail>=1) {
165 unsigned int count_loaded(0);
167 if(psinfo.pss!=0) count_loaded++;
168
169 cout <<
indent <<
"HLTPrescaleSetCollection has " <<
size() <<
" prescale set(s) defined, " << count_loaded <<
" loaded." << endl;
171 cout <<
indent <<
" LB PSK Loaded Name" << endl;
173 cout <<
indent << setw(9) << right << psinfo.lb << setw(9) << right << psinfo.psk <<
" " << (psinfo.pss!=0?
"yes":
" no")
174 << " " << (psinfo.pss!=0?psinfo.pss->name():"") << endl;
175 }
176 if(detail>=2) {
178 psinfo.pss->print(indent+" ", detail);
179 }
180 }
181}
size_t size() const
number of prescale sets
◆ set_prescale_key_to_load()
| void TrigConf::HLTPrescaleSetCollection::set_prescale_key_to_load |
( |
unsigned int | hltpsk | ) |
|
Definition at line 134 of file HLTPrescaleSetCollection.cxx.
134 {
135 vector<pair<unsigned int, unsigned int> > lbnpsk;
136 lbnpsk.push_back(make_pair(0,hltpsk));
138}
void set_prescale_keys_to_load(const std::vector< std::pair< unsigned int, unsigned int > > &)
◆ set_prescale_keys_to_load()
| void TrigConf::HLTPrescaleSetCollection::set_prescale_keys_to_load |
( |
const std::vector< std::pair< unsigned int, unsigned int > > & | lbnpsk | ) |
|
Definition at line 141 of file HLTPrescaleSetCollection.cxx.
141 {
142
143
144
145 for(auto & lbpsk : lbnpsk) {
146 if( !
contains(lbpsk.first, lbpsk.second)) {
148 }
149 }
150}
bool contains(unsigned int lumiblock, unsigned int psk)
Check if prescale set with this lumiblock and prescale keys exists.
◆ setPrescaleSet()
Add prescale set for this lumiblock number.
deletes all prescale sets
Definition at line 81 of file HLTPrescaleSetCollection.cxx.
81 {
82
83
84
85
86
90 return pss;
91}
◆ sets() [1/2]
| std::list< cont > & TrigConf::HLTPrescaleSetCollection::sets |
( |
| ) |
|
|
inline |
◆ sets() [2/2]
| const std::list< cont > & TrigConf::HLTPrescaleSetCollection::sets |
( |
| ) |
const |
|
inline |
◆ size()
| size_t TrigConf::HLTPrescaleSetCollection::size |
( |
| ) |
const |
|
inline |
◆ thePrescaleSet()
get prescale set for lumiblock and set the internal current lumiblock counter
Definition at line 54 of file HLTPrescaleSetCollection.cxx.
54 {
55
57
59 return nullptr;
60
61
63 if(minLB > lumiblock)
64 throw runtime_error("HLTPrescaleSetCollecion access with LBN which is smaller than the first prescale set");
65
66
68
70 if( psinfo.lb > lumiblock ) break;
71 pss = psinfo.pss;
72 }
73
74
75 return pss;
76}
◆ operator<<
◆ m_prescaleSetCollection_mutex
| std::recursive_mutex TrigConf::HLTPrescaleSetCollection::m_prescaleSetCollection_mutex |
|
mutableprivate |
◆ m_prescaleSets
| std::list<cont> TrigConf::HLTPrescaleSetCollection::m_prescaleSets |
|
private |
The documentation for this class was generated from the following files: