Changeset 3904 for trunk/MagicSoft
- Timestamp:
- 04/30/04 13:21:40 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3903 r3904 21 21 22 22 * mcalib/MHCalibrationCam.[h,cc] 23 * mcalib/MHCalibrationRelTimeCam.[h,cc]24 * mcalib/MHCalibrationChargeCam.[h,cc]25 23 - retrieve the used run numbers in order to store them in teh 26 24 histogram titles to help transparency of the displays -
trunk/MagicSoft/Mars/mcalib/MHCalibrationCam.cc
r3903 r3904 498 498 fRunNumbers[fRunNumbers.GetSize()-1] = fRunHeader->GetRunNumber(); 499 499 500 return ReInitHists(pList); 501 } 500 if (!ReInitHists(pList)) 501 return kFALSE; 502 503 if (!fRunHeader) 504 return kTRUE; 505 506 for (Int_t i=0; i<fHiGainArray->GetEntries(); i++) 507 { 508 TH1F *h = (*this)[i].GetHGausHist(); 509 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," ")); 510 } 511 512 for (Int_t i=0; i<fLoGainArray->GetEntries(); i++) 513 { 514 TH1F *h = (*this)(i).GetHGausHist(); 515 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," ")); 516 } 517 518 for (Int_t j=0; j<nareas; j++) 519 { 520 TH1F *h = GetAverageHiGainArea(j).GetHGausHist(); 521 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," ")); 522 } 523 524 for (Int_t j=0; j<nareas; j++) 525 { 526 TH1F *h = GetAverageLoGainArea(j).GetHGausHist(); 527 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," ")); 528 } 529 530 for (Int_t j=0; j<nsectors; j++) 531 { 532 TH1F *h = GetAverageHiGainSector(j).GetHGausHist(); 533 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," ")); 534 } 535 536 for (Int_t j=0; j<nsectors; j++) 537 { 538 TH1F *h = GetAverageLoGainSector(j).GetHGausHist(); 539 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," ")); 540 } 541 542 return kTRUE; 543 } 544 502 545 503 546 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc
r3903 r3904 194 194 } 195 195 196 if (fRunHeader)197 for (Int_t i=0; i<npixels; i++)198 {199 TH1F *h = (*this)[i].GetHGausHist();200 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));201 }202 196 203 197 if (fLoGainArray->GetEntries()==0) … … 212 206 } 213 207 214 if (fRunHeader)215 for (Int_t i=0; i<npixels; i++)216 {217 TH1F *h = (*this)(i).GetHGausHist();218 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));219 }220 208 221 209 if (fAverageHiGainAreas->GetEntries()==0) … … 236 224 } 237 225 238 if (fRunHeader)239 for (Int_t j=0; j<nareas; j++)240 {241 TH1F *h = GetAverageHiGainArea(j).GetHGausHist();242 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));243 }244 245 226 if (fAverageLoGainAreas->GetEntries()==0) 246 227 { … … 259 240 } 260 241 } 261 262 if (fRunHeader)263 for (Int_t j=0; j<nareas; j++)264 {265 TH1F *h = GetAverageLoGainArea(j).GetHGausHist();266 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));267 }268 242 269 243 if (fAverageHiGainSectors->GetEntries()==0) … … 284 258 } 285 259 286 if (fRunHeader)287 for (Int_t j=0; j<nsectors; j++)288 {289 TH1F *h = GetAverageHiGainSector(j).GetHGausHist();290 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));291 }292 293 260 if (fAverageLoGainSectors->GetEntries()==0) 294 261 { … … 309 276 } 310 277 311 if (fRunHeader)312 for (Int_t j=0; j<nsectors; j++)313 {314 TH1F *h = GetAverageLoGainSector(j).GetHGausHist();315 h->SetTitle( Form("%s%i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));316 }317 318 278 return kTRUE; 319 279 }
Note:
See TracChangeset
for help on using the changeset viewer.