23 act.fActionId = ACT_NEXTEV;
24 std::cout<<
"[next \'return\'; quit \'q\'; prev \'p\'; go to ev \'e\'; rerun \'r\': ] ";
26 if(p ==
'q') { getchar(); act.fActionId = ACT_QUIT; }
27 if(p ==
'p') { getchar(); act.fActionId = ACT_PREVEV; }
28 if(p ==
'e') { getchar(); std::cout<<
"Event Number: "; std::cin>>act.fEventNumber; act.fActionId = ACT_GOTOEV; getchar();}
29 if(p ==
'r') { getchar(); act.fActionId = ACT_RERUN;}
38 const std::vector<QBaseModule*>& modList = GetModulesList();
39 for(
size_t m = 0; m < modList.size(); m++) {
40 std::string moduleName = modList.at(m)->GetName();
41 std::map<std::string, QVdt*> params = GetModuleParameters(moduleName, 0);
42 Error(
"Parameters for %s %d",moduleName.c_str(), params.size());
43 std::map<std::string, QVdt*>::iterator p = params.begin();
44 while(p != params.end()) {
45 switch(p->second->GetType()) {
47 Info(
"\"%s\": %d",p->first.c_str(), (p->second)->GetInt());
50 Info(
"\"%s\": %f",p->first.c_str(), (p->second)->GetDouble());
53 Info(
"\"%s\": %s",p->first.c_str(), (p->second)->GetString().c_str());
58 Warn(
"Cannot handle parameter of type %c",
char(p->second->GetType()));
74 Info(
"****************************************");
#define REGISTER_MODULE(clazz)
one-line description of your module
Action Do(Diana::QEventAssembler &eva)
Do method.
Action Init(Diana::QEventAssembler &eva)
Init method.
Action Done()
Done method.
class to store ActionId and fEventNumber (in case fActionId=ACT_GOTOEV)
Visitor class of QEvent that provides full handling of QEvent.
QEvent & GetEvent()
Get the QEvent.
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
Raw event: bolometer channel, trigger positions and types.
const int & GetChannelId() const
Get ChannelId.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...