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.6 |
#define NPARMAX 20 |
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-ts |
1.10 |
Bool_t gete; //Extended tracking |
36 |
|
|
Bool_t getn; //Nuclei |
37 |
|
|
Int_t extAlgID;//alg ID |
38 |
pam-fi |
1.2 |
TString frame1; |
39 |
pam-ts |
1.10 |
TString frame2; |
40 |
|
|
TString frameh; |
41 |
|
|
TString framee; |
42 |
pam-fi |
1.2 |
Bool_t ifroot1; |
43 |
|
|
Bool_t ifroot2; |
44 |
pam-fi |
1.3 |
Bool_t ifrooth; |
45 |
pam-fi |
1.9 |
Bool_t ifroote; |
46 |
pam-fi |
1.2 |
Bool_t standalone; |
47 |
|
|
// Bool_t DEBUG; |
48 |
|
|
// Bool_t VERBOSE; |
49 |
|
|
TString file1; |
50 |
|
|
TString file2; |
51 |
|
|
TString outdir; |
52 |
|
|
TString pfolder; |
53 |
pam-fi |
1.6 |
// cDbg dbg_mode; |
54 |
pam-fi |
1.2 |
// int F77err; |
55 |
|
|
Int_t ostatus; ///< output status |
56 |
pam-fi |
1.6 |
|
57 |
pam-fi |
1.8 |
UInt_t nskip; ///< n.event to be skipped |
58 |
|
|
|
59 |
pam-fi |
1.6 |
Int_t npar; |
60 |
|
|
Int_t partype[NPARMAX]; |
61 |
|
|
TString parpath[NPARMAX]; |
62 |
mocchiut |
1.1 |
|
63 |
pam-ts |
1.10 |
Bool_t watch; |
64 |
|
|
|
65 |
|
|
|
66 |
mocchiut |
1.1 |
TrkProcess(); |
67 |
pam-fi |
1.2 |
|
68 |
mocchiut |
1.1 |
TrkProcess(ULong64_t run, TFile *f2); |
69 |
pam-fi |
1.2 |
|
70 |
pam-fi |
1.6 |
/* void SetDebugMode() {TrkParams::SetDebugMode(); dbg_mode.SetDebug(); dbg_=dbg_mode;}; */ |
71 |
|
|
/* void SetVerboseMode(){TrkParams::SetVerboseMode(); dbg_mode.SetVerbose(); dbg_=dbg_mode;}; */ |
72 |
|
|
/* void SetWarningMode(){TrkParams::SetWarningMode();dbg_mode.SetWarning(); dbg_=dbg_mode;}; */ |
73 |
|
|
|
74 |
|
|
/* bool DebugMode(){return dbg_mode.debug;}; */ |
75 |
|
|
/* bool WarningMode(){return dbg_mode.warning;}; */ |
76 |
|
|
/* bool VerboseMode(){return dbg_mode.verbose;}; */ |
77 |
pam-fi |
1.2 |
|
78 |
pam-fi |
1.7 |
int HandleCustomPar(int ncustom, char* vcustom[]); |
79 |
pam-fi |
1.2 |
|
80 |
|
|
void ProcessEvent(TrkLevel0*); |
81 |
|
|
|
82 |
mocchiut |
1.1 |
void Dump(); |
83 |
pam-fi |
1.7 |
void PrintHelp(); |
84 |
pam-fi |
1.2 |
|
85 |
mocchiut |
1.1 |
}; |
86 |
|
|
|
87 |
|
|
|
88 |
|
|
#endif |
89 |
|
|
|
90 |
|
|
|