Changeset 4565
- Timestamp:
- 08/10/04 16:32:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4563 r4565 19 19 20 20 -*-*- END OF LINE -*-*- 21 22 2004/08/10: Florian Goebel 23 24 * mpedestal/MPedCalcFromLoGain.[h,cc] 25 - add SetPedContainerName() to change name 26 of output container 27 - fix bug affecting behaviour when running twice 28 over the same run 29 - change format of "Format" 30 - change default value for fgMaxHiGainVar to 40 21 31 22 32 2004/08/10: Nadia Tonello -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
r4556 r4565 153 153 const Byte_t MPedCalcFromLoGain::fgHiGainWindowSize = 12; 154 154 const Byte_t MPedCalcFromLoGain::fgLoGainWindowSize = 14; 155 const Byte_t MPedCalcFromLoGain::fgMaxHiGainVar = 20;155 const Byte_t MPedCalcFromLoGain::fgMaxHiGainVar = 40; 156 156 157 157 // -------------------------------------------------------------------------- … … 173 173 : fWindowSizeHiGain(fgHiGainWindowSize), 174 174 fWindowSizeLoGain(fgLoGainWindowSize), 175 fGeom(NULL) 175 fGeom(NULL), fPedContainerName("MPedestalCam") 176 176 { 177 177 fName = name ? name : "MPedCalcFromLoGain"; … … 260 260 { 261 261 *fLog << warn << GetDescriptor() 262 << Form(" %s%2i%s%2i%s%2i%s",": Hi Gain window size: ",(int)fWindowSizeHiGain,263 " is bigger than available range: [",(int)fHiGainFirst,",",(int)fHiGainLast,"]") << endl;262 << Form(": Hi Gain window size: %2i is bigger than available range: [%2i,%2i]", 263 (int)fWindowSizeHiGain, (int)fHiGainFirst, (int)fHiGainLast) << endl; 264 264 *fLog << warn << GetDescriptor() 265 265 << ": Will set window size to: " << (int)availhirange << endl; … … 270 270 { 271 271 *fLog << warn << GetDescriptor() 272 << Form(" %s%2i%s%2i%s%2i%s",": Lo Gain window size: ",(int)fWindowSizeLoGain,273 " is bigger than available range: [",(int)fLoGainFirst,",",(int)fLoGainLast,"]") << endl;272 << Form(": Lo Gain window size: %2i is bigger than available range: [%2i,%2i]", 273 (int)fWindowSizeLoGain, (int)fLoGainFirst, (int)fLoGainLast) << endl; 274 274 *fLog << warn << GetDescriptor() 275 275 << ": Will set window size to: " << (int)availlorange << endl; … … 322 322 } 323 323 324 fPedestals = (MPedestalCam*)pList->FindCreateObj("MPedestalCam"); 324 *fLog << " searching for the container " << fPedContainerName << endl; 325 326 fPedestals = (MPedestalCam*)pList->FindCreateObj( AddSerialNumber("MPedestalCam"),fPedContainerName); 325 327 if (!fPedestals) 328 { 329 *fLog << err << fPedContainerName << " can not be created" << endl; 326 330 return kFALSE; 331 } 332 327 333 328 334 return kTRUE; … … 356 362 *fLog << endl; 357 363 *fLog << warn << GetDescriptor() 358 << Form("%s%2i%s%2i%s%2i%s",": Selected Lo Gain FADC Window [", 359 (int)fLoGainFirst,",",lastdesired, 360 "] ranges out of the available limits: [0,",lastavailable,"].") << endl; 364 << Form(": Selected Lo Gain FADC Window [%2i,%2i] ranges out of the available limits: [0,%2i].", 365 (int)fLoGainFirst, lastdesired, lastavailable) << endl; 361 366 *fLog << GetDescriptor() << ": Will reduce the upper edge to " << (int)(fLoGainLast - diff) << endl; 362 367 SetRange(fHiGainFirst, fHiGainLast, fLoGainFirst, fLoGainLast-diff); … … 371 376 *fLog << endl; 372 377 *fLog << warn << GetDescriptor() 373 << Form("%s%2i%s%2i%s%2i%s",": Selected Hi Gain Range [", 374 (int)fHiGainFirst,",",lastdesired, 375 "] ranges out of the available limits: [0,",lastavailable,"].") << endl; 378 << Form(": Selected Hi Gain Range [%2i,%2i] ranges out of the available limits: [0,%2i].", 379 (int)fHiGainFirst, lastdesired, lastavailable) << endl; 376 380 *fLog << warn << GetDescriptor() 377 << Form(" %s%2i%s",": Will possibly use ",diff," samples from the Low-Gain for the High-Gain range")381 << Form(": Will possibly use %2i samples from the Low-Gain for the High-Gain range", diff) 378 382 << endl; 379 383 fHiGainLast -= diff; … … 389 393 *fLog << endl; 390 394 *fLog << warn << GetDescriptor() 391 << Form("%s%2i%s%2i%s",": Selected Hi Gain FADC Window size ", 392 (int)fWindowSizeHiGain, 393 " ranges out of the available limits: [0,",lastavailable,"].") << endl; 395 << Form(": Selected Hi Gain FADC Window size %2i ranges out of the available limits: [0,%2i].", 396 (int)fWindowSizeHiGain, lastavailable) << endl; 394 397 *fLog << warn << GetDescriptor() 395 << Form(" %s%2i%s",": Will use ",diff," samples from the Low-Gain for the High-Gain extraction")398 << Form(": Will use %2i samples from the Low-Gain for the High-Gain extraction", diff) 396 399 << endl; 397 400 … … 510 513 } 511 514 512 if (fPedestalUpdate && (fNumEventsUsed[idx] == fNumEventsDump)) {515 if (fPedestalUpdate && (fNumEventsUsed[idx] >= fNumEventsDump)) { 513 516 514 517 const ULong_t n = fNumEventsDump; … … 597 600 } 598 601 602 fSumx.Reset(); 603 fSumx2.Reset(); 604 fSumAB0.Reset(); 605 fSumAB1.Reset(); 606 fNumEventsUsed.Reset(); 607 fTotalCounter.Reset(); 608 599 609 return kTRUE; 600 610 } -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.h
r4556 r4565 35 35 36 36 Bool_t fPedestalUpdate; 37 38 MGeomCam*fGeom; // Camera geometry 39 37 38 MGeomCam *fGeom; // Camera geometry 39 TString fPedContainerName; // name of the 'MPedestalCam' container 40 40 41 TArrayI fNumEventsUsed; // Number of events used for pedestal calc for each pixel 41 42 TArrayI fTotalCounter; // Counter for dumping values to Pedestal Container … … 44 45 TArrayD fSumAB0; // sum of ABFlag=0 slices 45 46 TArrayD fSumAB1; // sum of ABFlag=1 slices 47 46 48 47 49 Int_t PreProcess (MParList *pList); … … 60 62 void SetPedestalUpdate(Bool_t pedupdate) {fPedestalUpdate = pedupdate;} 61 63 64 void SetPedContainerName(const char *name) { fPedContainerName = name; } 65 62 66 TArrayI *GetNumEventsUsed() {return &fNumEventsUsed;}; 63 67
Note:
See TracChangeset
for help on using the changeset viewer.