/[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.8 by pam-fi, Fri Feb 16 14:56:01 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 47  TrkProcess::TrkProcess(ULong64_t run, TF Line 48  TrkProcess::TrkProcess(ULong64_t run, TF
48  //    DEBUG = false;  //    DEBUG = false;
49  //    VERBOSE = false;  //    VERBOSE = false;
50      dbg_mode.SetWarning();      dbg_mode.SetWarning();
51      get1 = 0;      get1  = 0;
52        full1 = 0;
53      get2 = 1;      get2 = 1;
54      geth = 0;      geth = 0;
55      standalone = false;      standalone = false;
# Line 94  void TrkProcess::HandleCustomPar(int ncu Line 96  void TrkProcess::HandleCustomPar(int ncu
96          }            }  
97          // -----------------------------------------------------//              // -----------------------------------------------------//    
98          if (!strcmp(vcustom[i], "--get1") || !strcmp(vcustom[i], "--get-level1") ){          if (!strcmp(vcustom[i], "--get1") || !strcmp(vcustom[i], "--get-level1") ){
99              get1 = 1;              get1  = 1;  
100                full1 = 0;
101                continue;
102            }  
103            // -----------------------------------------------------//    
104            if (!strcmp(vcustom[i], "--get1-full") || !strcmp(vcustom[i], "--get-level1-full") ){
105                get1  = 1;      
106                full1 = 1;
107              continue;              continue;
108          }            }  
109          // -----------------------------------------------------//              // -----------------------------------------------------//    
# Line 159  void TrkProcess::HandleCustomPar(int ncu Line 168  void TrkProcess::HandleCustomPar(int ncu
168      else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false;      else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false;
169      else    throw -201;      else    throw -201;
170    
171        if(get1 && !get2)full1=true;
172    
173      ostatus = 0;      ostatus = 0;
174    
175  };  };
# Line 171  void TrkProcess::HandleCustomPar(int ncu Line 182  void TrkProcess::HandleCustomPar(int ncu
182  void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){  void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){
183    
184      // fill Level0 common from Level0 object      // fill Level0 common from Level0 object
185      l0_event->GetCommonVar(&level0event_);  //    l0_event->GetCommonVar(&level0event_);
186        l0_event->GetLevel0Struct();
187      // process the event Level0->Level1->Level2      // process the event Level0->Level1->Level2
188      int F77err = 0;      int F77err = 0;
189      //      //
190      reductionflight_(&F77err);      reductionflight_(&F77err);
191      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;  
192      //      //
193      if(get2) analysisflight_();      int pfa=0;
194  //    if(F77err < 0)throw F77err;      if(get2) analysisflight_(&pfa);
 //    else if(F77err > 0 && WarningMode())cout<<" WARNING ("<<F77err<<") - TrkCore - @ Level2 reduction "<<endl;  
195      //      //
196      ostatus = F77err;      ostatus = F77err;
197            
# Line 193  void TrkProcess::Dump(){ Line 202  void TrkProcess::Dump(){
202      cout <<endl<< "Tracker process parameters: "<< endl;      cout <<endl<< "Tracker process parameters: "<< endl;
203      cout << " idRun           " << idrun << endl;      cout << " idRun           " << idrun << endl;
204      cout << " get level1      " << get1 << endl;      cout << " get level1      " << get1 << endl;
205        cout << " full level1     " << full1 << endl;
206      cout << " get level2      " << get2 << endl;      cout << " get level2      " << get2 << endl;
207      cout << " get hough       " << geth << endl;      cout << " get hough       " << geth << endl;
208      cout << " frame1          " << frame1 << endl;      cout << " frame1          " << frame1 << endl;

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

  ViewVC Help
Powered by ViewVC 1.1.23