Changeset 7099 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 05/27/05 16:33:19 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r7098 r7099 635 635 { 636 636 SetNameWeightsFile(GetEnvValue(env, prefix, "WeightsFile", "")); 637 *fLog << all << "**********> " << fNameWeightsFile << endl;638 637 rc = kTRUE; 639 638 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
r6840 r7099 17 17 class TH2F; 18 18 class MPedestalPix; 19 class MCalibrationPattern; 20 19 21 class MExtractTimeAndChargeDigitalFilter : public MExtractTimeAndCharge 20 22 { 21 23 private: 22 23 24 static const Byte_t fgHiGainFirst; //! Default for fHiGainFirst (now set to: 0) 24 25 static const Byte_t fgHiGainLast; //! Default for fHiGainLast (now set to:14) … … 34 35 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.7) 35 36 static const Float_t fgLoGainStartShift; //! Default for fLoGainStartShift (now set to -1.8) 37 38 MCalibrationPattern *fCalibPattern; //! Calibration DM pattern 36 39 37 40 MArrayF fHiGainSignal; //! Need fast access to the signals in a float way … … 59 62 MArrayF fTimeWeightsLoGain; //! Time weights Low-Gain (from weights file) 60 63 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 63 67 Int_t fRandomIter; //! Counter used to randomize weights for noise calculation 64 68 65 Bool_t InitArrays(); 69 // MExtractTimeAndChargeDigitalFilter 70 void CalcBinningResArrays(); 71 Bool_t ReadAutomaticWeightsFile(); 66 72 67 void CalcBinningResArrays(); 73 // MExtractTimeAndCharge 74 Bool_t InitArrays(); 75 76 // MTask 77 Int_t PreProcess(MParList *pList); 68 78 69 79 protected: 70 71 Int_t 80 // MParContainer 81 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 72 82 73 83 public: 84 MExtractTimeAndChargeDigitalFilter(const char *name=NULL, const char *title=NULL); 85 ~MExtractTimeAndChargeDigitalFilter() { } 74 86 75 MExtractTimeAndChargeDigitalFilter(const char *name=NULL, const char *title=NULL); 76 ~MExtractTimeAndChargeDigitalFilter() { } 87 Bool_t ReadWeightsFile(TString filename); 77 88 78 89 Bool_t WriteWeightsFile(TString filename, … … 80 91 TH1F *shapelo=NULL, TH2F *autocorrlo=NULL ); 81 92 82 Bool_t ReadWeightsFile(TString filename);83 93 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; } 85 96 86 97 void SetBinningResolution(const Int_t rh=fgBinningResolutionHiGain, const Int_t rl=fgBinningResolutionLoGain) { … … 100 111 const char* GetNameWeightsFile() const { return fNameWeightsFile.Data(); } 101 112 102 void Print(Option_t *o="") const; 103 104 Bool_t IsWeightsSet() const { return fWeightsSet; } 113 void Print(Option_t *o="") const; //*MENU* 105 114 106 115 void FindTimeAndChargeHiGain(Byte_t *firstused, Byte_t *logain, Float_t &sum, Float_t &dsum, -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r7061 r7099 157 157 const Float_t MExtractTimeAndChargeSpline::fgResolution = 0.05; 158 158 const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain = 0.5; 159 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain = 1.5;159 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain = 0.5; 160 160 const Float_t MExtractTimeAndChargeSpline::fgLoGainStretch = 1.5; 161 161 const Float_t MExtractTimeAndChargeSpline::fgOffsetLoGain = 1.7; // 5 ns -
trunk/MagicSoft/Mars/msignal/Makefile
r6856 r7099 20 20 # 21 21 INCLUDES = -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 23 24 24 25 # mgui (MCamEvent): MExtractSignalCam
Note:
See TracChangeset
for help on using the changeset viewer.