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 |
// extern "C" { |
16 |
// extern struct cTrkCalib pedsigbad_; |
17 |
// extern struct cTrkLevel0 level0event_; |
18 |
// extern struct cTrkLevel1 level1event_; |
19 |
// extern struct cTrkLevel2 level2event_; |
20 |
// extern struct cPath path_; |
21 |
// extern struct cBPath bpath_; |
22 |
// extern struct cDbg dbg_; |
23 |
// // int fillpedsigfromdefault_(); |
24 |
// int readmipparam_(); |
25 |
// int readchargeparam_(); |
26 |
// int readvkmask_(); |
27 |
// int readalignparam_(); |
28 |
// int readetaparam_(); |
29 |
// void reductionflight_(int*); |
30 |
// int analysisflight_(); |
31 |
// } |
32 |
|
33 |
/** |
34 |
* \brief Class to handle input parameters for tracker data processing |
35 |
* |
36 |
*/ |
37 |
// ================================================================== |
38 |
|
39 |
class TrkProcess{ |
40 |
|
41 |
private: |
42 |
|
43 |
public: |
44 |
|
45 |
ULong64_t idrun; |
46 |
Bool_t get1; |
47 |
Bool_t get2; |
48 |
TString frame1; |
49 |
TString frame2; |
50 |
Bool_t ifroot1; |
51 |
Bool_t ifroot2; |
52 |
Bool_t standalone; |
53 |
// Bool_t DEBUG; |
54 |
// Bool_t VERBOSE; |
55 |
TString file1; |
56 |
TString file2; |
57 |
TString outdir; |
58 |
TString pfolder; |
59 |
cDbg dbg_mode; |
60 |
// int F77err; |
61 |
Int_t ostatus; ///< output status |
62 |
|
63 |
TrkProcess(); |
64 |
|
65 |
TrkProcess(ULong64_t run, TFile *f2); |
66 |
|
67 |
void SetDebugMode() {dbg_mode.SetDebug(); dbg_=dbg_mode;}; |
68 |
void SetVerboseMode(){dbg_mode.SetVerbose(); dbg_=dbg_mode;}; |
69 |
void SetWarningMode(){dbg_mode.SetWarning(); dbg_=dbg_mode;}; |
70 |
|
71 |
bool DebugMode(){return dbg_mode.debug;}; |
72 |
bool WarningMode(){return dbg_mode.warning;}; |
73 |
bool VerboseMode(){return dbg_mode.verbose;}; |
74 |
|
75 |
void HandleCustomPar(int ncustom, char* vcustom[]); |
76 |
|
77 |
void ProcessEvent(TrkLevel0*); |
78 |
|
79 |
void Dump(); |
80 |
|
81 |
|
82 |
}; |
83 |
|
84 |
|
85 |
#endif |
86 |
|
87 |
|