/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkParams.h
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/inc/TrkParams.h

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

revision 1.1 by pam-fi, Fri Feb 16 14:56:00 2007 UTC revision 1.3 by pam-fi, Mon Mar 19 17:24:54 2007 UTC
# Line 19  Line 19 
19  /**  /**
20   * \brief Class to store tracker parameter information   * \brief Class to store tracker parameter information
21   *   *
22     * Tracker parameters include calibration parameters (PED, SIG and BAD) and
23     * other parameters.
24     * The first can be either those evaluated online or default values.
25     * The second are labelled according to the DB convention:
26     *
27     * type  description
28     * -----------------
29     * 1     field
30     * 2     adc-to-mip
31     * 3     charge-correlation
32     * 4     p.f.a. (eta)
33     * 5     alignment
34     * 6     VA1 mask
35     * 7     default calibration
36     *
37     * TrkParams::SetCalib(...) and TrkParams::Set(...) methods allow to set
38     * required parameters, from an input path, from the DB (for a given input
39     * run id) and from environment variable PAM_CALIB.
40     * TrkParams::LoadCalib() and TrkParams::Load() methods load parameters into
41     * F77 common.
42     *
43     * Tracker libraries (TrkLevel0, TrkLevel1 and TrkLevel2) implement automatic
44     * setting (eother from DB or from environment variables) and loading of parameters.
45     * If one needs to load custom parameters, it is enough to call TrkParams::Set(...)
46     * with proper arguments. All the methods are static, and can be used as standalone functions.
47     *
48     * For example:
49     *
50     * TrkParams::Set("/param-path/new-mip-param/",2);
51     *
52     * After this instruction (to be called once), new adc-to-mip conversion parameters
53     * will be loaded automatically (once) and used until the next set instruction
54   */   */
55  class TrkParams : public TObject {  class TrkParams : public TObject {
56    
# Line 52  public: Line 84  public:
84      static Bool_t SetCalib( GL_RUN* , TSQLServer*  );      static Bool_t SetCalib( GL_RUN* , TSQLServer*  );
85      static Bool_t LoadCalib( );      static Bool_t LoadCalib( );
86      static Bool_t CalibIsLoaded(){ return calibload; };      static Bool_t CalibIsLoaded(){ return calibload; };
87        static UInt_t ValidateTrkCalib( CalibTrk1Event* );
88      static void FillFCalibFrom(TFile* , Int_t , Int_t );//full      static void FillFCalibFrom(TFile* , Int_t , Int_t );//full
89      static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated      static void FillTCalibFrom(TFile* , Int_t , Int_t );//truncated
90      static void FillTCalibFrom(TString path);      static void FillTCalibFrom(TString path);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23