/[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.6 by pam-fi, Thu Oct 26 16:22:37 2006 UTC revision 1.10 by pam-fi, Mon May 14 11:03:06 2007 UTC
# Line 12  TrkProcess::TrkProcess(){ Line 12  TrkProcess::TrkProcess(){
12            
13      idrun = 0;      idrun = 0;
14      dbg_mode.SetNone();      dbg_mode.SetNone();
15      get1 = 0;      get1  = 0;
16      geth = 0;      full1 = 0;
17      get2 = 1;      geth  = 0;
18        get2  = 1;
19      standalone = false;      standalone = false;
20      frame2 = "root";      frame2 = "root";
21      frame1 = "root";      frame1 = "root";
# Line 34  TrkProcess::TrkProcess(){ Line 35  TrkProcess::TrkProcess(){
35      file2 = "";      file2 = "";
36            
37      ostatus = 0;      ostatus = 0;
38    
39        TrkParams::SetTrackingMode();
40        TrkParams::SetPrecisionFactor();
41        TrkParams::SetStepMin();  
42        TrkParams::SetPFA();
43  };  };
44                    
45  /**  /**
# Line 47  TrkProcess::TrkProcess(ULong64_t run, TF Line 53  TrkProcess::TrkProcess(ULong64_t run, TF
53  //    DEBUG = false;  //    DEBUG = false;
54  //    VERBOSE = false;  //    VERBOSE = false;
55      dbg_mode.SetWarning();      dbg_mode.SetWarning();
56      get1 = 0;      get1  = 0;
57        full1 = 0;
58      get2 = 1;      get2 = 1;
59      geth = 0;      geth = 0;
60      standalone = false;      standalone = false;
# Line 78  TrkProcess::TrkProcess(ULong64_t run, TF Line 85  TrkProcess::TrkProcess(ULong64_t run, TF
85    
86      ostatus = 0;      ostatus = 0;
87                    
88        TrkParams::SetTrackingMode();
89        TrkParams::SetPrecisionFactor();
90        TrkParams::SetStepMin();  
91        TrkParams::SetPFA();
92    
93  };  };
94  /**  /**
95   * Set processing variables according to input custom parameters   * Set processing variables according to input custom parameters
# Line 94  void TrkProcess::HandleCustomPar(int ncu Line 106  void TrkProcess::HandleCustomPar(int ncu
106          }            }  
107          // -----------------------------------------------------//              // -----------------------------------------------------//    
108          if (!strcmp(vcustom[i], "--get1") || !strcmp(vcustom[i], "--get-level1") ){          if (!strcmp(vcustom[i], "--get1") || !strcmp(vcustom[i], "--get-level1") ){
109              get1 = 1;              get1  = 1;  
110                full1 = 0;
111                continue;
112            }  
113            // -----------------------------------------------------//    
114            if (!strcmp(vcustom[i], "--get1-full") || !strcmp(vcustom[i], "--get-level1-full") ){
115                get1  = 1;      
116                full1 = 1;
117              continue;              continue;
118          }            }  
119          // -----------------------------------------------------//              // -----------------------------------------------------//    
# Line 159  void TrkProcess::HandleCustomPar(int ncu Line 178  void TrkProcess::HandleCustomPar(int ncu
178      else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false;      else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false;
179      else    throw -201;      else    throw -201;
180    
181        if(get1 && !get2)full1=true;
182    
183      ostatus = 0;      ostatus = 0;
184    
185  };  };
# Line 171  void TrkProcess::HandleCustomPar(int ncu Line 192  void TrkProcess::HandleCustomPar(int ncu
192  void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){  void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){
193    
194      // fill Level0 common from Level0 object      // fill Level0 common from Level0 object
195      l0_event->GetCommonVar(&level0event_);  //    l0_event->GetCommonVar(&level0event_);
196        l0_event->GetLevel0Struct();
197      // process the event Level0->Level1->Level2      // process the event Level0->Level1->Level2
198      int F77err = 0;      int F77err = 0;
199      //      //
200      reductionflight_(&F77err);      reductionflight_(&F77err);
201      if(F77err < 0)throw F77err;      if(F77err < 0)throw F77err;
     //    else if(F77err > 0 && WarningMode())cout<<" WARNING ("<<F77err<<") - TrkCore - Level1 reduction (CN computation failure, ...)"<<endl;  
202      //      //
203      if(get2) analysisflight_();  //    int pfa=0; //<<< ETA
204  //    if(F77err < 0)throw F77err;  //    int pfa=14;//<<< COG4
205  //    else if(F77err > 0 && WarningMode())cout<<" WARNING ("<<F77err<<") - TrkCore - @ Level2 reduction "<<endl;  //    if(get2) analysisflight_(&pfa);
206        if(get2) analysisflight_();
207      //      //
208      ostatus = F77err;      ostatus = F77err;
209            
# Line 193  void TrkProcess::Dump(){ Line 214  void TrkProcess::Dump(){
214      cout <<endl<< "Tracker process parameters: "<< endl;      cout <<endl<< "Tracker process parameters: "<< endl;
215      cout << " idRun           " << idrun << endl;      cout << " idRun           " << idrun << endl;
216      cout << " get level1      " << get1 << endl;      cout << " get level1      " << get1 << endl;
217        cout << " full level1     " << full1 << endl;
218      cout << " get level2      " << get2 << endl;      cout << " get level2      " << get2 << endl;
219      cout << " get hough       " << geth << endl;      cout << " get hough       " << geth << endl;
220      cout << " frame1          " << frame1 << endl;      cout << " frame1          " << frame1 << endl;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23