/[PAMELA software]/DarthVader/TrackerLevel2/src/TrkProcess.cpp
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/src/TrkProcess.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by pam-fi, Tue Nov 27 11:43:50 2007 UTC revision 1.15 by mocchiut, Wed Mar 6 14:18:33 2013 UTC
# Line 36  TrkProcess::TrkProcess(){ Line 36  TrkProcess::TrkProcess(){
36            
37      ostatus = 0;      ostatus = 0;
38    
39      npar=0;      npar = 0;
40    
41        nskip = 0;
42    
43  //     TrkParams::SetTrackingMode();  //     TrkParams::SetTrackingMode();
44  //     TrkParams::SetPrecisionFactor();  //     TrkParams::SetPrecisionFactor();
# Line 90  TrkProcess::TrkProcess(ULong64_t run, TF Line 92  TrkProcess::TrkProcess(ULong64_t run, TF
92            
93      npar=0;      npar=0;
94                    
95        nskip = 0;
96    
97  //     TrkParams::SetTrackingMode();  //     TrkParams::SetTrackingMode();
98  //     TrkParams::SetPrecisionFactor();  //     TrkParams::SetPrecisionFactor();
99  //     TrkParams::SetStepMin();    //     TrkParams::SetStepMin();  
# Line 104  int TrkProcess::HandleCustomPar(int ncus Line 108  int TrkProcess::HandleCustomPar(int ncus
108    
109      for (int i=0; i< ncustom; i++){      for (int i=0; i< ncustom; i++){
110    
111          cout << "Handling Parameter " << i+1  << " of " << ncustom << ": "  << vcustom[i] << endl;
112    
113            // -----------------------------------------------------//
114            if (!strcmp(vcustom[i], "--simu")){
115                cout << "Setting DarthVader to use Simulated Data\n";
116                TrkParams::SetSimuFlag(kTRUE);
117                continue;
118            }  
119          // -----------------------------------------------------//          // -----------------------------------------------------//
120          if (!strcmp(vcustom[i], "-processFolder")){          if (!strcmp(vcustom[i], "-processFolder")){
121              if (++i >= ncustom) throw -3;              if (++i >= ncustom) throw -3;
# Line 165  int TrkProcess::HandleCustomPar(int ncus Line 177  int TrkProcess::HandleCustomPar(int ncus
177              continue;              continue;
178          }            }  
179          // -----------------------------------------------------//              // -----------------------------------------------------//    
180            if (!strcmp(vcustom[i], "-skip")){
181                if (++i >= ncustom)throw -3;
182                nskip = atoi(vcustom[i]);
183                continue;
184            }  
185            // -----------------------------------------------------//    
186          if ( atoi(vcustom[i]) < 0){          if ( atoi(vcustom[i]) < 0){
187              if (++i >= ncustom)throw -3;              if (++i >= ncustom)throw -3;
188              partype[npar]=-1*atoi(vcustom[i-1]);              partype[npar]=-1*atoi(vcustom[i-1]);
# Line 241  void TrkProcess::Dump(){ Line 259  void TrkProcess::Dump(){
259      cout << "   tracker-processing input-parameters   "<< endl;      cout << "   tracker-processing input-parameters   "<< endl;
260      cout << " |-------------------------------------| "<<endl;      cout << " |-------------------------------------| "<<endl;
261      cout << "   idRun           " << idrun << endl;      cout << "   idRun           " << idrun << endl;
262        cout << "                   (skip " << nskip <<" events)"<< endl;    
263      cout << "   get level1      " << get1 << endl;      cout << "   get level1      " << get1 << endl;
264      cout << "   full level1     " << full1 << endl;      cout << "   full level1     " << full1 << endl;
265      cout << "   get level2      " << get2 << endl;      cout << "   get level2      " << get2 << endl;
# Line 285  void TrkProcess::PrintHelp(){ Line 304  void TrkProcess::PrintHelp(){
304      printf( "\n --verbose, -v                  : verbose mode ");            printf( "\n --verbose, -v                  : verbose mode ");      
305      printf( "\n --debug, -d                    : debug mode ");      printf( "\n --debug, -d                    : debug mode ");
306      printf( "\n --warning, -w                  : warning mode ");            printf( "\n --warning, -w                  : warning mode ");      
307        printf( "\n -skip NEV                      : skip first NEV events from each run ");        
308  //    printf( "\n --standalone, -s   : standalone mode (without RunInfo) ... but it might not work \n");          //    printf( "\n --standalone, -s   : standalone mode (without RunInfo) ... but it might not work \n");        
309  //    printf( "\n -host HOST         : Name for the host                                      [default mysql://localhost/pamelaprod ]");  //    printf( "\n -host HOST         : Name for the host                                      [default mysql://localhost/pamelaprod ]");
310  //    printf( "\n -user USER         : Username for the DB                                    [default anonymous] ");  //    printf( "\n -user USER         : Username for the DB                                    [default anonymous] ");

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23