1 |
mocchiut |
1.1 |
/** |
2 |
|
|
* \file TrkProcess.h |
3 |
|
|
* \author Elena Vannuccini |
4 |
|
|
*/ |
5 |
|
|
#ifndef trkprocess_h |
6 |
|
|
#define trkprocess_h |
7 |
|
|
|
8 |
pam-fi |
1.2 |
#include <TrkStruct.h> |
9 |
|
|
#include <TrkLevel0.h> |
10 |
|
|
|
11 |
mocchiut |
1.1 |
#include <TString.h> |
12 |
|
|
#include <TSystem.h> |
13 |
|
|
#include <iostream> |
14 |
|
|
|
15 |
pam-fi |
1.4 |
|
16 |
pam-fi |
1.2 |
|
17 |
mocchiut |
1.1 |
/** |
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 |
pam-fi |
1.2 |
|
29 |
mocchiut |
1.1 |
ULong64_t idrun; |
30 |
pam-fi |
1.2 |
Bool_t get1; |
31 |
pam-fi |
1.4 |
Bool_t full1; |
32 |
pam-fi |
1.2 |
Bool_t get2; |
33 |
pam-fi |
1.3 |
Bool_t geth; |
34 |
pam-fi |
1.2 |
TString frame1; |
35 |
|
|
TString frame2; |
36 |
pam-fi |
1.3 |
TString frameh; |
37 |
pam-fi |
1.2 |
Bool_t ifroot1; |
38 |
|
|
Bool_t ifroot2; |
39 |
pam-fi |
1.3 |
Bool_t ifrooth; |
40 |
pam-fi |
1.2 |
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 |
mocchiut |
1.1 |
|
51 |
|
|
TrkProcess(); |
52 |
pam-fi |
1.2 |
|
53 |
mocchiut |
1.1 |
TrkProcess(ULong64_t run, TFile *f2); |
54 |
pam-fi |
1.2 |
|
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 |
mocchiut |
1.1 |
void Dump(); |
68 |
|
|
|
69 |
pam-fi |
1.2 |
|
70 |
mocchiut |
1.1 |
}; |
71 |
|
|
|
72 |
|
|
|
73 |
|
|
#endif |
74 |
|
|
|
75 |
|
|
|