1 |
/** |
2 |
* \file TrkProcess.h |
3 |
* \author Elena Vannuccini |
4 |
*/ |
5 |
#ifndef trkprocess_h |
6 |
#define trkprocess_h |
7 |
|
8 |
#include <TrkStruct.h> |
9 |
#include <TrkLevel0.h> |
10 |
|
11 |
#include <TString.h> |
12 |
#include <TSystem.h> |
13 |
#include <iostream> |
14 |
|
15 |
|
16 |
|
17 |
/** |
18 |
* \brief Class to handle input parameters for tracker data processing |
19 |
* |
20 |
*/ |
21 |
// ================================================================== |
22 |
|
23 |
class TrkProcess{ |
24 |
|
25 |
private: |
26 |
|
27 |
public: |
28 |
|
29 |
ULong64_t idrun; |
30 |
Bool_t get1; |
31 |
Bool_t full1; |
32 |
Bool_t get2; |
33 |
Bool_t geth; |
34 |
TString frame1; |
35 |
TString frame2; |
36 |
TString frameh; |
37 |
Bool_t ifroot1; |
38 |
Bool_t ifroot2; |
39 |
Bool_t ifrooth; |
40 |
Bool_t standalone; |
41 |
// Bool_t DEBUG; |
42 |
// Bool_t VERBOSE; |
43 |
TString file1; |
44 |
TString file2; |
45 |
TString outdir; |
46 |
TString pfolder; |
47 |
cDbg dbg_mode; |
48 |
// int F77err; |
49 |
Int_t ostatus; ///< output status |
50 |
|
51 |
TrkProcess(); |
52 |
|
53 |
TrkProcess(ULong64_t run, TFile *f2); |
54 |
|
55 |
void SetDebugMode() {dbg_mode.SetDebug(); dbg_=dbg_mode;}; |
56 |
void SetVerboseMode(){dbg_mode.SetVerbose(); dbg_=dbg_mode;}; |
57 |
void SetWarningMode(){dbg_mode.SetWarning(); dbg_=dbg_mode;}; |
58 |
|
59 |
bool DebugMode(){return dbg_mode.debug;}; |
60 |
bool WarningMode(){return dbg_mode.warning;}; |
61 |
bool VerboseMode(){return dbg_mode.verbose;}; |
62 |
|
63 |
void HandleCustomPar(int ncustom, char* vcustom[]); |
64 |
|
65 |
void ProcessEvent(TrkLevel0*); |
66 |
|
67 |
void Dump(); |
68 |
|
69 |
|
70 |
}; |
71 |
|
72 |
|
73 |
#endif |
74 |
|
75 |
|