Ignore:
Timestamp:
05/27/05 16:33:19 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc

    r7098 r7099  
    635635    {
    636636        SetNameWeightsFile(GetEnvValue(env, prefix, "WeightsFile", ""));
    637         *fLog << all << "**********> " << fNameWeightsFile << endl;
    638637        rc = kTRUE;
    639638    }
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h

    r6840 r7099  
    1717class TH2F;
    1818class MPedestalPix;
     19class MCalibrationPattern;
     20
    1921class MExtractTimeAndChargeDigitalFilter : public MExtractTimeAndCharge
    2022{
    2123private:
    22 
    2324  static const Byte_t fgHiGainFirst;             //! Default for fHiGainFirst       (now set to: 0)
    2425  static const Byte_t fgHiGainLast;              //! Default for fHiGainLast        (now set to:14)
     
    3435  static const Float_t fgOffsetLoGain;           //! Default for fOffsetLoGain (now set to 1.7)
    3536  static const Float_t fgLoGainStartShift;       //! Default for fLoGainStartShift (now set to -1.8)
     37
     38  MCalibrationPattern  *fCalibPattern;          //! Calibration DM pattern
    3639 
    3740  MArrayF fHiGainSignal;                        //! Need fast access to the signals in a float way
     
    5962  MArrayF fTimeWeightsLoGain;                   //! Time weights Low-Gain (from weights file)
    6063
    61   TString fNameWeightsFile;                     //  Name of the weights file
    62   Bool_t  fWeightsSet;                          //! Flag if weights have alreayd been set
     64  TString fNameWeightsFile;                     // Name of the weights file
     65  Bool_t  fAutomaticWeights;                    // Flag whether weight should be determined automatically
     66  TString fNameWeightsFileSet;                  //! Flag if weights have alreayd been set
    6367  Int_t   fRandomIter;                          //! Counter used to randomize weights for noise calculation
    6468
    65   Bool_t  InitArrays();
     69  // MExtractTimeAndChargeDigitalFilter
     70  void    CalcBinningResArrays();
     71  Bool_t  ReadAutomaticWeightsFile();
    6672
    67   void CalcBinningResArrays();
     73  // MExtractTimeAndCharge
     74  Bool_t InitArrays();
     75
     76  // MTask
     77  Int_t PreProcess(MParList *pList);
    6878
    6979protected:
    70  
    71   Int_t   ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     80  // MParContainer
     81  Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
    7282
    7383public:
     84  MExtractTimeAndChargeDigitalFilter(const char *name=NULL, const char *title=NULL);
     85  ~MExtractTimeAndChargeDigitalFilter() { }
    7486
    75   MExtractTimeAndChargeDigitalFilter(const char *name=NULL, const char *title=NULL); 
    76   ~MExtractTimeAndChargeDigitalFilter() { }
     87  Bool_t ReadWeightsFile(TString filename);
    7788 
    7889  Bool_t WriteWeightsFile(TString filename,
     
    8091                          TH1F *shapelo=NULL, TH2F *autocorrlo=NULL );
    8192
    82   Bool_t ReadWeightsFile(TString filename);
    8393
    84   void SetNameWeightsFile( TString s = fgNameWeightsFile )   { fNameWeightsFile = s; }
     94  void SetNameWeightsFile(TString s="") { fNameWeightsFile = s; fNameWeightsFileSet=""; }
     95  void EnableAutomaticWeights(Bool_t b=kTRUE) { fAutomaticWeights = b; }
    8596
    8697  void SetBinningResolution(const Int_t rh=fgBinningResolutionHiGain, const Int_t rl=fgBinningResolutionLoGain)  {
     
    100111  const char* GetNameWeightsFile() const  { return fNameWeightsFile.Data(); }
    101112
    102   void Print(Option_t *o="") const;
    103 
    104   Bool_t IsWeightsSet() const  { return fWeightsSet;  }
     113  void Print(Option_t *o="") const; //*MENU*
    105114
    106115  void FindTimeAndChargeHiGain(Byte_t *firstused, Byte_t *logain, Float_t &sum, Float_t &dsum,
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r7061 r7099  
    157157const Float_t MExtractTimeAndChargeSpline::fgResolution       = 0.05;
    158158const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain   = 0.5;
    159 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain   = 1.5;
     159const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain   = 0.5;
    160160const Float_t MExtractTimeAndChargeSpline::fgLoGainStretch    = 1.5;
    161161const Float_t MExtractTimeAndChargeSpline::fgOffsetLoGain     = 1.7;  // 5 ns
  • trunk/MagicSoft/Mars/msignal/Makefile

    r6856 r7099  
    2020#
    2121INCLUDES =  -I. -I../mbase -I../mgui -I../mraw -I../manalysis \
    22             -I../mgeom -I../mtools -I../mpedestal -I../mbadpixels
     22            -I../mgeom -I../mtools -I../mpedestal -I../mbadpixels \
     23            -I../mcalib
    2324
    2425# mgui (MCamEvent):         MExtractSignalCam
Note: See TracChangeset for help on using the changeset viewer.