Changeset 6276 for trunk/MagicSoft/Mars
- Timestamp:
- 02/07/05 09:25:42 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6265 r6276 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2005/02/07 Thomas Bretz 24 25 * mbase/MFilter.cc: 26 - use paranthesis around ClassName in GetRule 27 28 * mdata/MDataFormula.h: 29 - fixed a wrong comment in variable description 30 31 * mhist/MHCamEvent.[h,cc], mhist/MHCamera.[h,cc], 32 mjobs/MJCalibrateSignal.cc, 33 mjobs/MJCalibrateSignalFromOutside.cc: 34 - to make sure there are no missunderstandings we have to 35 replace all occurances of 'Variance' by 'SqrtVariance' 36 (it was not my decision) 37 38 22 39 23 40 2005/02/04 Markus Gaug -
trunk/MagicSoft/Mars/mbase/MFilter.cc
r6253 r6276 95 95 TString MFilter::GetRule() const 96 96 { 97 return ClassName(); //"<GetRule n/a for " + fName + ">";97 return Form("(%s)", ClassName()); //"<GetRule n/a for " + fName + ">"; 98 98 } 99 99 -
trunk/MagicSoft/Mars/mdata/MDataFormula.h
r3666 r6276 17 17 private: 18 18 TFormula *fFormula; // TFormula 19 TOrdCollection fMembers; // Container for the filters19 TOrdCollection fMembers; // List of arguments 20 20 21 21 TString Parse(const char *rule); -
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r6032 r6276 33 33 // ===== 34 34 // 35 // To plot the varianceinstead of the rms use:36 // MHCamEvent::SetBit(MHCamera::k Variance);35 // To plot sqrt(variance) instead of the rms use: 36 // MHCamEvent::SetBit(MHCamera::kSqrtVariance); 37 37 // or 38 // MHCamEvent::Enable Variance()38 // MHCamEvent::EnableSqrtVariance() 39 39 // 40 40 // To count how often a certain pixel is above or below a threshold do: … … 127 127 // use this to display the variance instead of the rms. 128 128 // 129 void MHCamEvent::Enable Variance(Bool_t b)130 { 131 b ? SetBit(MHCamera::k Variance) : ResetBit(MHCamera::kVariance);129 void MHCamEvent::EnableSqrtVariance(Bool_t b) 130 { 131 b ? SetBit(MHCamera::kSqrtVariance) : ResetBit(MHCamera::kSqrtVariance); 132 132 } 133 133 … … 173 173 fSum->SetYTitle("a.u."); 174 174 fSum->SetBit(MHCamera::kProfile); 175 if (TestBit(MHCamera::k Variance))176 fSum->SetBit(MHCamera::k Variance);175 if (TestBit(MHCamera::kSqrtVariance)) 176 fSum->SetBit(MHCamera::kSqrtVariance); 177 177 178 178 fSum->SetXTitle("Pixel Idx"); … … 301 301 MHCamera *cam = new MHCamera(*fSum->GetGeometry()); 302 302 cam->SetName(Form("%s;err", fName.Data())); 303 cam->SetTitle(fSum->TestBit(MHCamera::k Variance)?"Variance":"Root Mean Squared (rms)");303 cam->SetTitle(fSum->TestBit(MHCamera::kSqrtVariance)?"Sqrt(Variance)":"Root Mean Squared (rms)"); 304 304 cam->SetYTitle(fSum->GetYaxis()->GetTitle()); 305 305 cam->SetCamContent(*fSum, 1); -
trunk/MagicSoft/Mars/mhist/MHCamEvent.h
r5560 r6276 50 50 51 51 void SetThreshold(Float_t f, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; } 52 void Enable Variance(Bool_t b=kTRUE);52 void EnableSqrtVariance(Bool_t b=kTRUE); 53 53 54 54 ClassDef(MHCamEvent, 1) // Histogram to sum camera events -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r5807 r6276 329 329 // ------------------------------------------------------------------------ 330 330 // 331 // Return the variance of all entries which are used if all=kFALSE and331 // Return the sqrt variance of all entries which are used if all=kFALSE and 332 332 // of all entries if all=kTRUE if sector<0. If sector>=0 only 333 333 // entries with match the given sector are taken into account. … … 1155 1155 { 1156 1156 Double_t rc = 0; 1157 if (TestBit(k Variance) && GetEntries()>0) // error on the mean1157 if (TestBit(kSqrtVariance) && GetEntries()>0) // error on the mean 1158 1158 { 1159 1159 const Double_t error = fSumw2.fArray[bin]/GetEntries(); -
trunk/MagicSoft/Mars/mhist/MHCamera.h
r6058 r6276 40 40 public: 41 41 enum { 42 kProfile = BIT(18), // FIXME: When changing change max/min!43 kFreezed = BIT(19),44 kNoLegend = BIT(20),45 k Variance = BIT(21)42 kProfile = BIT(18), // FIXME: When changing change max/min! 43 kFreezed = BIT(19), 44 kNoLegend = BIT(20), 45 kSqrtVariance = BIT(21) 46 46 }; 47 47 private: -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6246 r6276 553 553 MHCamEvent evt8(0, "Conv", "Calibration Conv. Factors;;[phe/fadc cnts]"); 554 554 555 evt0.Enable Variance();556 evt1.Enable Variance();557 evt2.Enable Variance();555 evt0.EnableSqrtVariance(); 556 evt1.EnableSqrtVariance(); 557 evt2.EnableSqrtVariance(); 558 558 // evt3.EnableVariance(); 559 evt4.Enable Variance();560 evt5.Enable Variance();561 evt7.Enable Variance();562 evt8.Enable Variance();559 evt4.EnableSqrtVariance(); 560 evt5.EnableSqrtVariance(); 561 evt7.EnableSqrtVariance(); 562 evt8.EnableSqrtVariance(); 563 563 564 564 MFillH fill0(&evt0, "MPedestalFundamental", "FillPedFLG"); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignalFromOutside.cc
r5866 r6276 346 346 MHCamEvent evt8(0, "HiLoConv", "Ratio Hi-Lo Gain Signal;;Ratio [1]"); 347 347 348 evt0.Enable Variance();349 evt1.Enable Variance();350 evt2.Enable Variance();351 evt3.Enable Variance();352 evt4.Enable Variance();353 evt5.Enable Variance();354 evt7.Enable Variance();355 evt8.Enable Variance();348 evt0.EnableSqrtVariance(); 349 evt1.EnableSqrtVariance(); 350 evt2.EnableSqrtVariance(); 351 evt3.EnableSqrtVariance(); 352 evt4.EnableSqrtVariance(); 353 evt5.EnableSqrtVariance(); 354 evt7.EnableSqrtVariance(); 355 evt8.EnableSqrtVariance(); 356 356 357 357 MFillH fill0(&evt0, "MPedestalFundamental", "FillPedFLG");
Note:
See TracChangeset
for help on using the changeset viewer.