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