- Timestamp:
- 09/10/04 21:21:27 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r4938 r4942 327 327 pix.SetLast (fgChargeHiGainLast); 328 328 329 pix.GetHGausHist()->SetName ("HChargeHiGainPix"); 330 pix.GetHGausHist()->SetTitle("Signals High Gain Pixel "); 331 329 TH1F *h = pix.GetHGausHist(); 330 331 h->SetName ("HChargeHiGainPix"); 332 h->SetTitle("Signals High Gain Pixel "); 333 h->SetXTitle("Signal [FADC counts]"); 334 h->SetYTitle("Nr. of events"); 335 332 336 pix.GetHAbsTime()->SetName ("HAbsTimeHiGainPix"); 333 337 pix.GetHAbsTime()->SetTitle("Absolute Arrival Times High Gain Pixel "); … … 354 358 pix.SetLast (fgChargeLoGainLast); 355 359 356 pix.GetHGausHist()->SetName ("HChargeLoGainPix"); 357 pix.GetHGausHist()->SetTitle("Signals Low Gain Pixel "); 360 TH1F *h = pix.GetHGausHist(); 361 362 h->SetName ("HChargeLoGainPix"); 363 h->SetTitle("Signals Low Gain Pixel "); 364 h->SetXTitle("Signal [FADC counts]"); 365 h->SetYTitle("Nr. of events"); 358 366 359 367 pix.GetHAbsTime()->SetName ("HAbsTimeLoGainPix"); … … 387 395 388 396 MHCalibrationChargePix &pix = (MHCalibrationChargePix&)GetAverageHiGainArea(j); 389 397 390 398 pix.SetAbsTimeNbins(higainsamples); 391 399 pix.SetAbsTimeFirst(-0.5); … … 395 403 pix.SetFirst(fgChargeHiGainFirst); 396 404 pix.SetLast (fgChargeHiGainLast); 397 398 pix.GetHGausHist()->SetName ("HChargeHiGainAreaIdx"); 399 pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis High Gain Area Idx "); 405 406 TH1F *h = pix.GetHGausHist(); 407 408 h->SetName ("HChargeHiGainAreaIdx"); 409 h->SetXTitle("Signal [FADC counts]"); 410 h->SetYTitle("Nr. of events"); 400 411 401 412 pix.GetHAbsTime()->SetName ("HAbsTimeHiGainAreaIdx"); 402 413 pix.GetHAbsTime()->SetTitle("Absolute Arrival Times average Hi Gain Area Idx "); 403 414 404 415 if (fGeom->InheritsFrom("MGeomCamMagic")) 405 416 { 406 pix.GetHGausHist()->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ",407 417 h->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ", 418 j==0 ? "Inner Pixels " : "Outer Pixels ","High Gain Runs: ")); 408 419 pix.InitBins(); 409 420 pix.SetEventFrequency(fPulserFrequency); … … 411 422 else 412 423 { 424 h->SetTitle("Signals averaged on event-by-event basis High Gain Area Idx "); 413 425 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j); 414 426 } 415 427 } 416 428 } 417 418 429 430 419 431 if (fAverageLoGainAreas->GetEntries()==0 && IsLoGain()) 420 432 { … … 436 448 pix.SetLast(fgChargeLoGainLast); 437 449 438 pix.GetHGausHist()->SetName ("HChargeLoGainAreaIdx"); 439 pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis Low Gain Area Idx "); 450 TH1F *h = pix.GetHGausHist(); 451 452 h->SetName ("HChargeLoGainAreaIdx"); 453 h->SetXTitle("Signal [FADC counts]"); 454 h->SetYTitle("Nr. of events"); 440 455 441 456 pix.GetHAbsTime()->SetName ("HAbsTimeLoGainAreaIdx"); 442 457 pix.GetHAbsTime()->SetTitle("Absolute Arrival Times average Low Gain Area Idx "); 443 444 458 // 445 459 // Adapt the range for the case, the intense blue is used: … … 459 473 if (fGeom->InheritsFrom("MGeomCamMagic")) 460 474 { 461 pix.GetHGausHist()->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ",462 475 h->SetTitle(Form("%s%s%s","Signals averaged on event-by-event basis ", 476 j==0 ? "Inner Pixels " : "Outer Pixels ","Low Gain Runs: ")); 463 477 pix.InitBins(); 464 478 pix.SetEventFrequency(fPulserFrequency); … … 466 480 else 467 481 { 482 h->SetTitle("Signals averaged on event-by-event basis Low Gain Area Idx "); 468 483 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j); 469 484 } … … 490 505 pix.SetLast (fgChargeHiGainLast); 491 506 492 pix.GetHGausHist()->SetName ("HChargeHiGainPix"); 493 pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis HiGain Sector "); 507 TH1F *h = pix.GetHGausHist(); 508 509 h->SetName ("HChargeHiGainSector"); 510 h->SetTitle("Signals averaged on event-by-event basis HiGain Sector "); 511 h->SetXTitle("Signal [FADC counts]"); 512 h->SetYTitle("Nr. of events"); 494 513 495 514 pix.GetHAbsTime()->SetName ("HAbsTimeHiGainPix"); … … 519 538 pix.SetLast (fgChargeLoGainLast); 520 539 521 pix.GetHGausHist()->SetName ("HChargeLoGainPix"); 522 pix.GetHGausHist()->SetTitle("Signals averaged on event-by-event basis LoGain Sector "); 540 TH1F *h = pix.GetHGausHist(); 541 542 h->SetName ("HChargeLoGainSector"); 543 h->SetTitle("Signals averaged on event-by-event basis LoGain Sector "); 544 h->SetXTitle("Signal [FADC counts]"); 545 h->SetYTitle("Nr. of events"); 523 546 524 547 pix.GetHAbsTime()->SetName ("HAbsTimeLoGainPix"); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r4939 r4942 261 261 MHCalibrationPix &pix = GetAverageHiGainArea(j); 262 262 263 pix.SetNbins(fRelTimeNbins* 3);263 pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nareas)); 264 264 pix.SetFirst(fRelTimeFirst); 265 265 pix.SetLast (fRelTimeLast); … … 298 298 MHCalibrationPix &pix = GetAverageLoGainArea(j); 299 299 300 pix.SetNbins(fRelTimeNbins* 3);300 pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nareas)); 301 301 pix.SetFirst(fRelTimeFirst); 302 302 pix.SetLast (fRelTimeLast); … … 335 335 MHCalibrationPix &pix = GetAverageHiGainSector(j); 336 336 337 pix.SetNbins(fRelTimeNbins* 3);337 pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nsectors)); 338 338 pix.SetFirst(fRelTimeFirst); 339 339 pix.SetLast (fRelTimeLast); … … 362 362 MHCalibrationPix &pix = GetAverageLoGainSector(j); 363 363 364 pix.SetNbins(fRelTimeNbins* 3);364 pix.SetNbins(fRelTimeNbins*TMath::Sqrt((Float_t)npixels/nsectors)); 365 365 pix.SetFirst(fRelTimeFirst); 366 366 pix.SetLast (fRelTimeLast);
Note:
See TracChangeset
for help on using the changeset viewer.