Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaDebugModule.h
Go to the documentation of this file.
1#ifndef Podd_THaDebugModule_h_
2#define Podd_THaDebugModule_h_
3
5//
6// THaDebugModule
7//
9
10#include "THaPhysicsModule.h"
11#include "THaPrintOption.h"
12#include <vector>
13
14class THaCut;
15
17
18public:
19 explicit THaDebugModule( const char* var_list, const char* test="" );
20 THaDebugModule( const THaDebugModule& ) = delete;
22 virtual ~THaDebugModule();
23
24 virtual EStatus Init( const TDatime& run_time );
25 virtual void Print( Option_t* opt="" ) const;
26 virtual Int_t Process( const THaEvData& evdata );
27
28protected:
29
30 std::vector<const TObject*> fVars; // Array of pointers to variables
31 THaPrintOption fVarString; // Set of strings with variable/cut names
32 Int_t fFlags; // Current operation mode (see implementation)
33 Int_t fCount; // Event counter
34 TString fTestExpr; // Definition of test to evaluate before printing
35 THaCut* fTest; // Pointer to test object to evaluate
36
37 void PrintEvNum( const THaEvData& ) const;
39
40 ClassDef(THaDebugModule,0) // Physics module for debugging
41};
42
43#endif
int Int_t
const char Option_t
#define ClassDef(name, id)
THaPrintOption fVarString
std::vector< const TObject * > fVars
void PrintEvNum(const THaEvData &) const
THaDebugModule & operator=(const THaDebugModule &)=delete
virtual ~THaDebugModule()
Int_t ParseList()
THaDebugModule(const THaDebugModule &)=delete
virtual Int_t Process(const THaEvData &evdata)
virtual void Print(Option_t *opt="") const