/[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.11 by pam-fi, Mon Aug 20 16:07:16 2007 UTC revision 1.12 by pam-fi, Tue Aug 28 13:26:45 2007 UTC
# Line 98  TrkProcess::TrkProcess(ULong64_t run, TF Line 98  TrkProcess::TrkProcess(ULong64_t run, TF
98  /**  /**
99   * Set processing variables according to input custom parameters   * Set processing variables according to input custom parameters
100   */       */    
101  void TrkProcess::HandleCustomPar(int ncustom, char *vcustom[]){  int TrkProcess::HandleCustomPar(int ncustom, char *vcustom[]){
102    
103      for (int i=0; i< ncustom; i++){      for (int i=0; i< ncustom; i++){
104    
# Line 157  void TrkProcess::HandleCustomPar(int ncu Line 157  void TrkProcess::HandleCustomPar(int ncu
157              continue;              continue;
158          }            }  
159          // -----------------------------------------------------//              // -----------------------------------------------------//    
160            if (!strcmp(vcustom[i], "-pfa")){
161                if (++i >= ncustom)throw -3;
162                TrkParams::SetPFA(atoi(vcustom[i]));
163                continue;
164            }  
165            // -----------------------------------------------------//    
166          if ( atoi(vcustom[i]) < 0){          if ( atoi(vcustom[i]) < 0){
167              if (++i >= ncustom)throw -3;              if (++i >= ncustom)throw -3;
168              partype[npar]=-1*atoi(vcustom[i-1]);              partype[npar]=-1*atoi(vcustom[i-1]);
# Line 170  void TrkProcess::HandleCustomPar(int ncu Line 176  void TrkProcess::HandleCustomPar(int ncu
176              continue;              continue;
177          }          }
178          // -----------------------------------------------------//              // -----------------------------------------------------//    
179            if (!strcmp(vcustom[i], "--warning") || !strcmp(vcustom[i], "-w")){
180                TrkParams::SetWarningMode();
181                continue;
182            }
183            // -----------------------------------------------------//    
184            if (!strcmp(vcustom[i], "--help") || !strcmp(vcustom[i], "-h")){
185                PrintHelp();
186                return 1;
187            }
188            // -----------------------------------------------------//    
189          else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){          else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){
190              TrkParams::SetDebugMode();              TrkParams::SetDebugMode();
191              continue;              continue;
# Line 192  void TrkProcess::HandleCustomPar(int ncu Line 208  void TrkProcess::HandleCustomPar(int ncu
208    
209      ostatus = 0;      ostatus = 0;
210    
211        return 0;
212    
213  };  };
214  /**  /**
215   * \brief Process Level0 event   * \brief Process Level0 event
# Line 242  void TrkProcess::Dump(){ Line 260  void TrkProcess::Dump(){
260  //     cout << " debug mode      debug   " << dbg_mode.debug << endl << endl;  //     cout << " debug mode      debug   " << dbg_mode.debug << endl << endl;
261            
262  }  }
263    
264    void TrkProcess::PrintHelp(){
265    
266        printf( "\n\n +TRK [ options ] \n \n");
267    //    printf( "\n --version          : Print tracker software version and exit ");      
268        printf( "Options:");
269        printf( "\n --help, -h                     : Print this help and exit ");  
270    //    printf( "\n -idRun RUN         : ID number of the run to be processed (for reprocessing RUN=0) \n");
271    //    printf( "\n -outDir OUTDIR     : Path where to put the LEVEL2 output                    [default ./ ] ");
272    //    printf( "\n -processFolder DIR   : Directory (relative to OUTDIR) for other output files  [default TrackerFolder/ ] ");
273    //    printf( "\n -processFile FILE  : Name of the LEVEL2 output file                         [default RUN.Level2.root]");
274    //    printf( "\n -processFile1 FILE   : Name of the LEVEL1 output file                         [default RUN.Level1.rz]");
275    //    printf( "\n -frame1 FRAME        : type of output for LEVEL1, root/hbook                  [default hbook ] ");
276    //    printf( "\n -frame2 FRAME        : type of output for LEVEL2, root/hbook                  [default root  ] ");            
277        printf( "\n --get1, --get-level1           : get LEVEL1 output (store only cluster associated to tracks) [default (no LEVEL1 output) ]  ");
278        printf( "\n --get1-full, --get-level1-full : get LEVEL1 output (store all clusters)                      [default (no LEVEL1 output) ]  ");
279        printf( "\n --dontget2, --dontget-level2   : do not get LEVEL2 output                                    [default (get LEVEL2 output)]");
280        printf( "\n --geth,, --get-hough           : get Hough-transform output                                  [default (no Hough-t. output) ]  ");
281        printf( "\n -pfa PFAID                     : type of output for LEVEL2, root/hbook                       [default 14 (COG4)  ] ");          
282        printf( "\n -N PATH                        : load parameter of type N=1,2... from PATH                   [default (from DB)  ] ");  
283        printf( "\n --verbose, -v                  : verbose mode ");      
284        printf( "\n --debug, -d                    : debug mode ");
285        printf( "\n --warning, -w                  : warning mode ");      
286    //    printf( "\n --standalone, -s   : standalone mode (without RunInfo) ... but it might not work \n");        
287    //    printf( "\n -host HOST         : Name for the host                                      [default mysql://localhost/pamelaprod ]");
288    //    printf( "\n -user USER         : Username for the DB                                    [default anonymous] ");
289    //    printf( "\n -psw  PSW          : Password for the DB                                    [default (none)]\n \n \n");
290        
291    
292    }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.23