36 , fVarString(var_list)
76Int_t THaDebugModule::THaDebugModule::ParseList()
82 Int_t nopt = fVarString.GetNOptions();
84 for(
Int_t i = 0; i < nopt; i++ ) {
85 const char* opt = fVarString.
GetOption(i);
86 if( !strcmp(opt,
"NOSTOP") )
95 while(
TObject* obj = next() ) {
97 if( s.
Index(re) != kNPOS ) {
107 while(
TObject* obj = next() ) {
109 if( s.
Index(re) != kNPOS ) {
111 fVars.push_back(obj);
118 "Global variable or cut %s not found. Skipped.", opt);
137 cout <<
"Test name: " <<
fTestExpr <<
" (undefined)\n";
139 cout <<
"Number of variables: " <<
fVars.size() << endl;
140 for(
const auto* obj:
fVars ) {
141 cout << obj->GetName() <<
" ";
146 cout <<
"Test name: " <<
fTestExpr << endl;
147 cout <<
"(Module not initialized)\n";
155 cout <<
"======>>>>>> Event " << (
UInt_t) evdata.
GetEvNum() << endl;
183 for(
const auto& var:
fVars ) {
184 const char* opt =
"";
185 if( var->IsA()->InheritsFrom(
"THaVar") )
200 cout <<
"RETURN: continue, H: run 100 events, R: run to end, F: finish quietly, Q: quit\n";
203 while( !cin.eof() && cin.get(
c) && !strchr(
"\nqQhHrRfF",
c) ) {}
205 while( !cin.eof() && cin.get() !=
'\n' ) {}
206 if( tolower(
c) ==
'q' )
208 else if( tolower(
c) ==
'h' ) {
212 }
else if( tolower(
c) ==
'r' )
214 else if( tolower(
c) ==
'f' ) {
R__EXTERN class THaVarList * gHaVars
R__EXTERN class THaCutList * gHaCuts
const THashList * GetCutList() const
virtual void Print(Option_t *opt="") const
std::vector< const TObject * > fVars
void PrintEvNum(const THaEvData &) const
THaDebugModule(const char *var_list, const char *test="")
virtual ~THaDebugModule()
virtual Int_t Process(const THaEvData &evdata)
virtual void Print(Option_t *opt="") const
void Print(Option_t *option="") const override
virtual Option_t * GetOption() const
R__ALWAYS_INLINE Bool_t IsZombie() const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const