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