#include <StationSelector.h>
|
| bool | select (const std::string &name) |
Definition at line 17 of file StationSelector.h.
◆ StationIterator
◆ StationMap
◆ StationSelector() [1/2]
| MuonGM::StationSelector::StationSelector |
( |
const MYSQL & | mysql, |
|
|
const std::string & | filename ) |
Definition at line 20 of file StationSelector.cxx.
20 {
21 std::ifstream from;
24 while (from.getline(buffer, 200)) {
25 std::istringstream
line(buffer);
29 }
30
31 for (
const auto& [name, station] : mysql.
stationMap()) {
34 }
35 }
const StationMap & stationMap() const
std::vector< std::string > m_selector
bool select(const std::string &name)
◆ StationSelector() [2/2]
| MuonGM::StationSelector::StationSelector |
( |
const MYSQL & | mysql, |
|
|
std::vector< std::string > | s ) |
Definition at line 37 of file StationSelector.cxx.
39 for (
const auto& [name, station] : mysql.
stationMap()) {
42 }
43 }
StationMap::const_iterator StationIterator
◆ begin()
◆ end()
◆ select()
| bool MuonGM::StationSelector::select |
( |
const std::string & | name | ) |
|
|
private |
Definition at line 48 of file StationSelector.cxx.
48 {
52 selFlag = 1;
53 }
54
55 if (selFlag == 1) {
58
59 if (
sel.size() <=
name.size()) {
60 bool myflag = true;
61 for (
unsigned int i = 0;
i <
sel.size();
i++) {
63 continue;
64 if (
sel[i] != name[i]) {
65 myflag = false;
66 break;
67 }
68 }
69
70 if (myflag)
71 return myflag;
72 }
73 }
74 return false;
75 } else if (selFlag == 2) {
78
80 continue;
81
82 bool myflag = true;
83 for (
unsigned int i = 0;
i <
sel.size();
i++) {
85 continue;
86 if (
sel[i] != name[i]) {
87 myflag = false;
88 break;
89 }
90 }
91
92 if (myflag) {
93 log << MSG::INFO <<
" StationSelector: removing station " <<
name <<
endmsg;
94 return false;
95 }
96 }
97
98 return true;
99 }
100
101 return true;
102 }
static std::atomic< int > m_selectType
IMessageSvc * getMessageSvc(bool quiet=false)
◆ SetSelectionType()
| void MuonGM::StationSelector::SetSelectionType |
( |
int | t | ) |
|
|
static |
◆ m_selector
| std::vector<std::string> MuonGM::StationSelector::m_selector {} |
|
private |
◆ m_selectType
| std::atomic< int > MuonGM::StationSelector::m_selectType = 0 |
|
staticprivate |
◆ m_theMap
The documentation for this class was generated from the following files: