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

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

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

revision 1.11 by pam-fi, Fri Aug 17 14:36:05 2007 UTC revision 1.15 by pam-fi, Fri Aug 31 15:00:10 2007 UTC
# Line 24  UInt_t       TrkParams::trkparamtype[] = Line 24  UInt_t       TrkParams::trkparamtype[] =
24  GL_PARAM     TrkParams::gl[]           = {GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM()};  GL_PARAM     TrkParams::gl[]           = {GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM()};
25  TString      TrkParams::glpath[]       = {"","","","","","",""};  TString      TrkParams::glpath[]       = {"","","","","","",""};
26  Bool_t       TrkParams::glload[]       = {false,false,false,false,false,false,false};  Bool_t       TrkParams::glload[]       = {false,false,false,false,false,false,false};
 cDbg         TrkParams::dbg_mode       = {0,0,0};  
27  // ----------------  // ----------------
28  // other parameters  // other parameters
29  // ----------------  // ----------------
30  int    TrkParams::init__pfa            = 14;//COG4  cDbg   TrkParams::init__dbg_mode       = {0,0,0};
31    //int    TrkParams::init__pfa            = 14;//COG4
32    int    TrkParams::init__pfa            = 5;//ETAL
33  int    TrkParams::init__mini_trackmode = 0;  int    TrkParams::init__mini_trackmode = 0;
34  int    TrkParams::init__mini_istepmin  = 3;  int    TrkParams::init__mini_istepmin  = 5; //3;
35  double TrkParams::init__mini_fact      = 100.;  double TrkParams::init__mini_fact      = 1.e4; //100.;
36    float  TrkParams::init__pfa_e234ax[]   = {0.,10.,10.,15.,15.,90.};
37    float  TrkParams::init__pfa_e234ay[]   = {0.,20.,90.,90.,90.,90.};
38    
39  TrkParams::TrkParams(){  TrkParams::TrkParams(){
40    
# Line 670  Bool_t TrkParams::Set( GL_RUN* glrun , T Line 673  Bool_t TrkParams::Set( GL_RUN* glrun , T
673          gl[index]     = q4;          gl[index]     = q4;
674          glpath[index] = q4.PATH+q4.NAME;          glpath[index] = q4.PATH+q4.NAME;
675          glload[index] = false;          glload[index] = false;
676          if(TrkParams::VerboseMode())cout << "<< set TrkParams type "<<type<<" >> (from DB) "<<endl;          if(TrkParams::VerboseMode())
677                cout << "<< set TrkParams type "<<type<<" from DB << RUN "<<glrun->ID<<endl;
678          return true;          return true;
679    
680      }      }
# Line 690  Bool_t TrkParams::Set( TString path , UI Line 694  Bool_t TrkParams::Set( TString path , UI
694    
695      gl[index].TYPE= type;      gl[index].TYPE= type;
696      glpath[index] = path;      glpath[index] = path;
697      if(TrkParams::VerboseMode())cout << "<< set TrkParams type "<<type<<" >> (from input) "<<endl;      if(TrkParams::VerboseMode())
698            cout << "<< set TrkParams type "<<type<<" from path << "<<path<<endl;
699      glload[index] = false;      glload[index] = false;
700    
701  //    return TrkParams::Load(type);  //    return TrkParams::Load(type);
# Line 959  void TrkParams::SetStepMin(int istepmin) Line 964  void TrkParams::SetStepMin(int istepmin)
964  };  };
965    
966  /**  /**
967     * Fill F77 commons with PFA settings
968     */
969    void TrkParams::SetPFA(){
970        sw_.pfaid = init__pfa;    
971        for(int i=0; i<6; i++){
972            pfa_.e234ax[i] = init__pfa_e234ax[i];
973            pfa_.e234ay[i] = init__pfa_e234ay[i];
974        }
975    };
976    /**
977   * \brief Set p.f.a.   * \brief Set p.f.a.
978   *   *
979   * Implemented algorythms:   * Implemented algorythms:
# Line 979  void TrkParams::SetPFA(int pfaid){ Line 994  void TrkParams::SetPFA(int pfaid){
994      SetPFA();      SetPFA();
995  };  };
996  /**  /**
997     * \brief Set p.f.a. angular intervals
998     *
999     * This methods allows to set these amgular intervals to apply ETA2,ETA3 or ETA4
1000     * algorythm, in case ETA or ETAL is chosen (see TrkParams::SetPFA(int pfaid)).
1001     * @param v Pointer to a vector of 12 components, which represent the
1002     * angular limits for ETA2,ETA3 and ETA4, for x and y views, respectivelly.
1003     *
1004     */
1005    void TrkParams::SetPFA(float *v){
1006        for(int i=0; i<6; i++){
1007            init__pfa_e234ax[i]  = v[i];
1008            init__pfa_e234ay[i]  = v[i+6];
1009        }
1010        SetPFA();
1011    };
1012    
1013    
1014    /**
1015   * \brief Get spatial resolution.   * \brief Get spatial resolution.
1016   *   *
1017   * Method to retrieve the spatial resolution associated with the   * Method to retrieve the spatial resolution associated with the
# Line 1000  float TrkParams::GetResolution(int view, Line 1033  float TrkParams::GetResolution(int view,
1033    
1034    
1035    
1036    
1037  ClassImp(TrkParams);  ClassImp(TrkParams);

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

  ViewVC Help
Powered by ViewVC 1.1.23