Changeset 6038
- Timestamp:
- 01/27/05 10:44:51 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6037 r6038 29 29 enabled the calibration of data with interlaced calibration events 30 30 31 * msignal/MArrivalTime.[h,cc] 32 * mcalib/MCalibrateRelTime.cc 33 - removed Error of calibrated arrival time, as agreed on the last 34 software calibration meeting yesterday 31 35 32 36 2005/01/27 Thomas Bretz … … 39 43 40 44 * star.rc: 41 - according to Daniel M. we have agreed to ch enge the default45 - according to Daniel M. we have agreed to change the default 42 46 cleaning level to adapt it roughly to the new pedestal 43 47 -
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc
r5947 r6038 160 160 161 161 const Float_t offset = pix.GetTimeOffset(); 162 const Float_t precision = pix.GetTimePrecision();163 162 164 163 MArrivalTimePix &sig = (*fSignals)[pixidx]; 165 164 166 165 Float_t signal; 167 Float_t sigerr;168 166 169 167 if (sig.IsLoGainUsed()) 170 { 171 signal = sig.GetArrivalTimeLoGain(); 172 sigerr = sig.GetArrivalTimeLoGainError(); 173 } 168 signal = sig.GetArrivalTimeLoGain(); 174 169 else 175 { 176 signal = sig.GetArrivalTimeHiGain(); 177 sigerr = sig.GetArrivalTimeHiGainError(); 178 } 170 signal = sig.GetArrivalTimeHiGain(); 179 171 180 172 const Float_t time = signal - offset; 181 const Float_t err = sigerr*sigerr + precision*precision;182 173 183 174 fArrivalTime->SetTime(pixidx, time); 184 fArrivalTime->SetTimeErr(pixidx, err>0 ? TMath::Sqrt(err) : 0);185 175 186 176 } /* for (UInt_t pixidx=0; pixidx<npix; pixidx++) */ -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6037 r6038 61 61 #include "MCalibrationChargePINDiode.h" 62 62 #include "MCalibrationHiLoCam.h" 63 #include "MCalibrationPatternDecode.h" 63 64 64 65 #include "MCalibrationChargeCalc.h" … … 393 394 394 395 // Check for interleaved events 395 MTriggerPatternDecode decode; 396 MCalibrationPatternDecode caldec; 397 MTriggerPatternDecode decode; 396 398 397 399 MFTriggerPattern ftp; … … 606 608 MTaskList tlist2; 607 609 610 tlist2.AddToList(&caldec); 608 611 tlist2.AddToList(&decode); 609 612 tlist2.AddToList(&apply); -
trunk/MagicSoft/Mars/msignal/MArrivalTime.cc
r5143 r6038 64 64 { 65 65 fData.Reset(-1); 66 fDataErr.Reset(-1);67 66 } 68 67 … … 70 69 { 71 70 fData.Set(i); 72 fDataErr.Set(i);73 71 } 74 72 … … 82 80 } 83 81 84 85 // -------------------------------------------------------------------------86 //87 // Set the arrival time error in one pixel88 //89 void MArrivalTime::SetTimeErr(const Int_t i, const Float_t t)90 {91 fDataErr[i] = t;92 }93 82 94 83 void MArrivalTime::Print(Option_t *o) const -
trunk/MagicSoft/Mars/msignal/MArrivalTime.h
r4828 r6038 22 22 private: 23 23 TArrayF fData; // Stores the calibrated arrival times 24 TArrayF fDataErr; // Stores the calibrated arrival time errors25 24 26 25 public: … … 35 34 36 35 void SetTime(const Int_t i, const Float_t time); 37 void SetTimeErr(const Int_t i, const Float_t timeerr); 38 36 39 37 const TArrayF &GetData() const { return fData; } 40 const TArrayF &GetDataErr() const { return fDataErr; }41 38 42 39 Double_t operator[](int i) { return fData[i]; } … … 52 49 void DrawPixelContent(Int_t num) const; 53 50 54 ClassDef(MArrivalTime, 1) // class for an event containing the arrival times51 ClassDef(MArrivalTime, 2) // class for an event containing the arrival times 55 52 }; 56 53
Note:
See TracChangeset
for help on using the changeset viewer.