4 #include <AugerEvent.h>
6 #include <fwk/CentralConfig.h>
7 #include <utl/Reader.h>
8 #include <utl/config.h>
21 EventSelector::~EventSelector() {}
27 CentralConfig::GetInstance()->
GetTopBranch(
"EventSelector");
31 if (child.GetName() ==
"selectEventId")
35 fSelectIds.push_back(
id);
36 cout <<
"EventSelector: selecting ID " <<
id <<
"\n";
40 if (fSelectIds.size() == 0)
41 cout <<
"EventSelector: empty select vector, so selecting all event IDs\n";
50 string id = header.
GetId();
52 cout <<
"Event id = '" << header.
GetId() <<
"\' ";
54 bool selected=idSelected(
id);
58 cout <<
"skipped ...\n";
64 cout <<
"selected ...\n";
70 EventSelector::idSelected(std::string
id)
72 if (fSelectIds.size() == 0)
75 for(vector<string>::const_iterator i=fSelectIds.begin();
76 i!=fSelectIds.end(); ++i)
78 if (*i ==
id)
return true;
85 EventSelector::Finish()
Branch GetTopBranch() const
void Init()
Initialise the registry.
Branch GetNextSibling() const
Get next sibling of this branch.
Class representing a document branch.
void GetData(bool &b) const
Overloads of the GetData member template function.
ResultFlag
Flag returned by module methods to the RunController.
Branch GetFirstChild() const
Get first child of this Branch.