Changeset 2798
- Timestamp:
- 01/14/04 09:09:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2797 r2798 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 8 2004/01/14: Wolfgang Wittek 9 10 * macros/ONOFFAnalysis.C 11 - current version 12 13 * mhist/MHSigmaTheta.[h,cc] 14 - replace MPedestalCam by MPedPhotCam 15 16 * manalysis/MPad.[h,cc] 17 MSigmabar.[h,cc] 18 MSigmabarCalc.[h,cc] 19 MCT1PadONOFF.[h,cc] 20 MCT1PadSchweizer.[h,cc] 21 MPadding.[h,cc] 22 - replace MPedestalCam by MPedPhotCam 23 24 * manalysis/MPedPhotPix.[h,cc] 25 - uncomment SetRms() 26 27 6 28 2004/01/13: Markus Gaug 7 29 -
trunk/MagicSoft/Mars/macros/ONOFFAnalysis.C
r2777 r2798 197 197 198 198 // Job A : 199 // - produce MHSigmaTheta plots for ON and OFFdata199 // - produce MHSigmaTheta plots for ON, OFF and MC data 200 200 // - write out (or read in) these MHSigmaTheta plots 201 201 // - read ON (or OFF or MC) data … … 289 289 // Job A 290 290 //========= 291 // read ON data file 292 293 // - produce the 2D-histogram "sigmabar versus Theta" 294 // (SigmaTheta_ON.root) for ON data 295 // (to be used for the padding of the MC gamma data) 296 297 // - write a file of ON events (ON1.root) 291 292 // - produce the histograms "sigmabar versus Theta", etc. 293 // for ON, OFF and MC data (to be used for the padding) 294 // 295 // - write root file of padded ON (OFF, MC) events (ON1.root, ...) 298 296 // (after the standard cuts, before the g/h separation) 299 // (to be used together with the corresponding MC gamma file (MC1.root)300 // for the optimization of the g/h separation)301 297 302 298 … … 304 300 { 305 301 gLog << "=====================================================" << endl; 306 gLog << "Macro MagicAnalysis : Start of Job A" << endl;302 gLog << "Macro ONOFFAnalysis : Start of Job A" << endl; 307 303 gLog << "" << endl; 308 gLog << "Macro MagicAnalysis : JobA, WPad, RPad, Wout = "304 gLog << "Macro ONOFFAnalysis : JobA, WPad, RPad, Wout = " 309 305 << (JobA ? "kTRUE" : "kFALSE") << ", " 310 306 << (WPad ? "kTRUE" : "kFALSE") << ", " … … 318 314 TString fileON = onfile; 319 315 TString fileOFF = offfile; 320 gLog << "fileON, fileOFF = " << fileON << ", " << fileOFF << endl; 316 TString fileMC = mcfile; 317 gLog << "fileON, fileOFF, fileMC = " << fileON << ", " 318 << fileOFF << ", " << fileMC << endl; 321 319 322 320 // name of file to conatin the histograms for the padding … … 353 351 // generate histograms to be used in the padding 354 352 // 355 // read ON and OFFdata files353 // read ON, OFF and MC data files 356 354 // generate (or read in) the padding histograms for ON and OFF data 357 355 // and merge these histograms … … 526 524 527 525 //----------------------------------------- 526 // MC events 527 528 gLog << "------------" << endl; 529 gLog << "MC events :" << endl; 530 gLog << "------------" << endl; 531 532 MTaskList tlistmc; 533 MParList plistmc; 534 535 MReadMarsFile readMC("Events", fileMC); 536 read.DisableAutoScheme(); 537 // MCT1ReadPreProc readMC(fileMC); 538 539 MFSelBasic selthetamc; 540 selthetamc.SetCuts(-100.0, 29.5, 35.5); 541 MContinue contthetamc(&selthetamc); 542 543 MBlindPixelCalc blindmc; 544 blindmc.SetUseBlindPixels(); 545 546 MFSelBasic selbasicmc; 547 MContinue contbasicmc(&selbasicmc); 548 549 MHBlindPixels blindMC("BlindPixelsMC"); 550 MFillH fillblindMC("BlindPixelsMC[MHBlindPixels]", "MBlindPixels"); 551 fillblindMC.SetName("FillBlindMC"); 552 553 MSigmabarCalc sigbarcalcmc; 554 555 MHSigmaTheta sigthMC("SigmaThetaMC"); 556 MFillH fillsigthetaMC ("SigmaThetaMC[MHSigmaTheta]", "MMcEvt"); 557 fillsigthetaMC.SetName("FillSigThetaMC"); 558 559 //***************************** 560 // entries in MParList 561 562 plistmc.AddToList(&tlistmc); 563 InitBinnings(&plistmc); 564 plistmc.AddToList(&blindMC); 565 plistmc.AddToList(&sigthMC); 566 567 568 //***************************** 569 // entries in MTaskList 570 571 tlistmc.AddToList(&readMC); 572 //tlistmc.AddToList(&contthetamc); 573 574 tlistmc.AddToList(&blindmc); 575 576 tlistmc.AddToList(&contbasicmc); 577 tlistmc.AddToList(&fillblindMC); 578 tlistmc.AddToList(&sigbarcalcmc); 579 tlistmc.AddToList(&fillsigthetaMC); 580 581 MProgressBar barmc; 582 MEvtLoop evtloopmc; 583 evtloopmc.SetParList(&plistmc); 584 evtloopmc.SetProgressBar(&barmc); 585 586 Int_t maxeventsmc = -1; 587 //Int_t maxeventsmc = 20000; 588 if ( !evtloopmc.Eventloop(maxeventsmc) ) 589 return; 590 591 tlistmc.PrintStatistics(0, kTRUE); 592 593 blindMC.DrawClone(); 594 sigthMC.DrawClone(); 595 596 // save the histograms for the padding 597 TH2D *sigthmc = sigthMC.GetSigmaTheta(); 598 TH3D *sigpixthmc = sigthMC.GetSigmaPixTheta(); 599 TH3D *diffpixthmc = sigthMC.GetDiffPixTheta(); 600 601 TH2D *blindidthmc = blindMC.GetBlindId(); 602 TH2D *blindnthmc = blindMC.GetBlindN(); 603 604 605 //----------------------------------------- 528 606 529 607 gLog << "End of generating the padding histograms" << endl; … … 762 840 763 841 764 gLog << "Macro MagicAnalysis : End of Job A" << endl;842 gLog << "Macro ONOFFAnalysis : End of Job A" << endl; 765 843 gLog << "===================================================" << endl; 766 844 } … … 786 864 { 787 865 gLog << "=====================================================" << endl; 788 gLog << "Macro MagicAnalysis : Start of Job B_RF_UP" << endl;866 gLog << "Macro ONOFFAnalysis : Start of Job B_RF_UP" << endl; 789 867 790 868 gLog << "" << endl; 791 gLog << "Macro MagicAnalysis : JobB_RF_UP, RTrainRF, CTrainRF, RTree, WRF = "869 gLog << "Macro ONOFFAnalysis : JobB_RF_UP, RTrainRF, CTrainRF, RTree, WRF = " 792 870 << (JobB_RF_UP ? "kTRUE" : "kFALSE") << ", " 793 871 << (RTrainRF ? "kTRUE" : "kFALSE") << ", " … … 1290 1368 1291 1369 gLog << "" << endl; 1292 gLog << "Macro MagicAnalysis : matrix of training events for gammas written onto file "1370 gLog << "Macro ONOFFAnalysis : matrix of training events for gammas written onto file " 1293 1371 << NameGammas << endl; 1294 1372 … … 1302 1380 1303 1381 gLog << "" << endl; 1304 gLog << "Macro MagicAnalysis : matrix of training events for hadrons written onto file "1382 gLog << "Macro ONOFFAnalysis : matrix of training events for hadrons written onto file " 1305 1383 << NameHadrons << endl; 1306 1384 … … 1369 1447 gLog << "" << endl; 1370 1448 gLog << "========================================================" << endl; 1371 gLog << "Macro MagicAnalysis : start growing trees" << endl;1449 gLog << "Macro ONOFFAnalysis : start growing trees" << endl; 1372 1450 1373 1451 MTaskList tlist2; … … 1654 1732 } 1655 1733 1656 gLog << "Macro MagicAnalysis : End of Job B_RF_UP" << endl;1734 gLog << "Macro ONOFFAnalysis : End of Job B_RF_UP" << endl; 1657 1735 gLog << "=======================================================" << endl; 1658 1736 } … … 1674 1752 { 1675 1753 gLog << "=====================================================" << endl; 1676 gLog << "Macro MagicAnalysis : Start of Job B_SC_UP" << endl;1754 gLog << "Macro ONOFFAnalysis : Start of Job B_SC_UP" << endl; 1677 1755 1678 1756 gLog << "" << endl; 1679 gLog << "Macro MagicAnalysis : JobB_SC_UP, CMatrix, RMatrix, WOptimize, RTest, WSC = "1757 gLog << "Macro ONOFFAnalysis : JobB_SC_UP, CMatrix, RMatrix, WOptimize, RTest, WSC = " 1680 1758 << (JobB_SC_UP ? "kTRUE" : "kFALSE") << ", " 1681 1759 << (CMatrix ? "kTRUE" : "kFALSE") << ", " … … 2230 2308 2231 2309 2232 gLog << "Macro MagicAnalysis : End of Job B_SC_UP" << endl;2310 gLog << "Macro ONOFFAnalysis : End of Job B_SC_UP" << endl; 2233 2311 gLog << "=======================================================" << endl; 2234 2312 } … … 2249 2327 { 2250 2328 gLog << "=====================================================" << endl; 2251 gLog << "Macro MagicAnalysis : Start of Job C" << endl;2329 gLog << "Macro ONOFFAnalysis : Start of Job C" << endl; 2252 2330 2253 2331 gLog << "" << endl; 2254 gLog << "Macro MagicAnalysis : JobC = "2332 gLog << "Macro ONOFFAnalysis : JobC = " 2255 2333 << (JobC ? "kTRUE" : "kFALSE") << endl; 2256 2334 … … 2458 2536 DeleteBinnings(&pliston); 2459 2537 2460 gLog << "Macro MagicAnalysis : End of Job C" << endl;2538 gLog << "Macro ONOFFAnalysis : End of Job C" << endl; 2461 2539 gLog << "===================================================" << endl; 2462 2540 } … … 2477 2555 { 2478 2556 gLog << "=====================================================" << endl; 2479 gLog << "Macro MagicAnalysis : Start of Job D" << endl;2557 gLog << "Macro ONOFFAnalysis : Start of Job D" << endl; 2480 2558 2481 2559 gLog << "" << endl; 2482 gLog << "Macro MagicAnalysis : JobD = "2560 gLog << "Macro ONOFFAnalysis : JobD = " 2483 2561 << (JobD ? "kTRUE" : "kFALSE") << endl; 2484 2562 … … 2698 2776 DeleteBinnings(&pliston); 2699 2777 2700 gLog << "Macro MagicAnalysis : End of Job D" << endl;2778 gLog << "Macro ONOFFAnalysis : End of Job D" << endl; 2701 2779 gLog << "=======================================================" << endl; 2702 2780 } … … 2723 2801 { 2724 2802 gLog << "=====================================================" << endl; 2725 gLog << "Macro MagicAnalysis : Start of Job E_XX" << endl;2803 gLog << "Macro ONOFFAnalysis : Start of Job E_XX" << endl; 2726 2804 2727 2805 gLog << "" << endl; 2728 gLog << "Macro MagicAnalysis : JobE_XX, CCollArea, OEEst, WEX = "2806 gLog << "Macro ONOFFAnalysis : JobE_XX, CCollArea, OEEst, WEX = " 2729 2807 << (JobE_XX ? "kTRUE" : "kFALSE") << ", " 2730 2808 << (CCollArea?"kTRUE" : "kFALSE") << ", " … … 2951 3029 // Optimization of energy estimator 2952 3030 // 2953 gLog << "Macro MagicAnalysis.C : calling MagicEEst" << endl;3031 gLog << "Macro ONOFFAnalysis.C : calling MagicEEst" << endl; 2954 3032 2955 3033 TString inpath(""); … … 2960 3038 howMany, maxhadronness, maxalpha, maxdist, 2961 3039 binsE, binsTheta); 2962 gLog << "Macro MagicAnalysis.C : returning from MagicEEst" << endl;3040 gLog << "Macro ONOFFAnalysis.C : returning from MagicEEst" << endl; 2963 3041 } 2964 3042 … … 2972 3050 gLog << "================================================================" 2973 3051 << endl; 2974 gLog << "Macro MagicAnalysis.C : read parameters of energy estimator and migration matrix from file '"3052 gLog << "Macro ONOFFAnalysis.C : read parameters of energy estimator and migration matrix from file '" 2975 3053 << energyParName << "'" << endl; 2976 3054 TFile enparam(energyParName); … … 3307 3385 } 3308 3386 3309 gLog << "Macro Analysis : End of Job E_XX" << endl;3387 gLog << "Macro ONOFFAnalysis : End of Job E_XX" << endl; 3310 3388 gLog << "=======================================================" << endl; 3311 3389 } -
trunk/MagicSoft/Mars/manalysis/MCT1PadONOFF.cc
r2437 r2798 85 85 #include "MCerPhotEvt.h" 86 86 87 #include "MPedestalCam.h" 88 #include "MPedestalPix.h" 87 #include "MPedPhotCam.h" 88 #include "MPedPhotPix.h" 89 89 90 #include "MBlindPixels.h" 90 91 … … 910 911 } 911 912 912 fPed = (MPed estalCam*)pList->FindObject("MPedestalCam");913 fPed = (MPedPhotCam*)pList->FindObject("MPedPhotCam"); 913 914 if (!fPed) 914 915 { 915 *fLog << err << "MPed estalCam not found... aborting." << endl;916 *fLog << err << "MPedPhotCam not found... aborting." << endl; 916 917 return kFALSE; 917 918 } … … 1014 1015 continue; 1015 1016 1016 fEvt->AddPixel(i, 0.0, (*fPed)[i].Get PedestalRms());1017 fEvt->AddPixel(i, 0.0, (*fPed)[i].GetRms()); 1017 1018 } 1018 1019 … … 1038 1039 // Int_t j = pix.GetPixId(); 1039 1040 1040 // MPed estalPix &ppix = fPed->operator[](j);1041 // ppix.Set MeanRms(0.0);1041 // MPedPhotPix &ppix = fPed->operator[](j); 1042 // ppix.SetRms(0.0); 1042 1043 //} 1043 1044 //$$$$$$$$$$$$$$$$$$$$$$$$$$ … … 1404 1405 Double_t ratioArea = 1.0 / fCam->GetPixRatio(j); 1405 1406 1406 MPed estalPix &ppix = (*fPed)[j];1407 Double_t oldsigma = ppix.Get PedestalRms();1407 MPedPhotPix &ppix = (*fPed)[j]; 1408 Double_t oldsigma = ppix.GetRms(); 1408 1409 Double_t oldsigma2 = oldsigma*oldsigma; 1409 1410 … … 1602 1603 1603 1604 Double_t newsigma = sqrt( oldsigma2 + addSig2 ); 1604 ppix.Set PedestalRms( newsigma );1605 ppix.SetRms( newsigma ); 1605 1606 1606 1607 fHSigmaPedestal->Fill( oldsigma, newsigma ); -
trunk/MagicSoft/Mars/manalysis/MCT1PadONOFF.h
r2206 r2798 16 16 class MGeomCam; 17 17 class MCerPhotEvt; 18 class MPed estalCam;18 class MPedPhotCam; 19 19 class MMcEvt; 20 20 class MSigmabar; … … 32 32 MSigmabar *fSigmabar; 33 33 MMcEvt *fMcEvt; 34 MPed estalCam *fPed;34 MPedPhotCam *fPed; 35 35 MBlindPixels *fBlinds; 36 36 -
trunk/MagicSoft/Mars/manalysis/MCT1PadSchweizer.cc
r2255 r2798 84 84 #include "MCerPhotEvt.h" 85 85 86 #include "MPedestalCam.h" 87 #include "MPedestalPix.h" 86 #include "MPedPhotCam.h" 87 #include "MPedPhotPix.h" 88 88 89 #include "MBlindPixels.h" 89 90 … … 197 198 } 198 199 199 fPed = (MPed estalCam*)pList->FindObject("MPedestalCam");200 fPed = (MPedPhotCam*)pList->FindObject("MPedPhotCam"); 200 201 if (!fPed) 201 202 { 202 *fLog << err << "MPed estalCam not found... aborting." << endl;203 *fLog << err << "MPedPhotCam not found... aborting." << endl; 203 204 return kFALSE; 204 205 } … … 293 294 continue; 294 295 295 fEvt->AddPixel(i, 0.0, (*fPed)[i].Get PedestalRms());296 fEvt->AddPixel(i, 0.0, (*fPed)[i].GetRms()); 296 297 } 297 298 … … 316 317 // Int_t j = pix.GetPixId(); 317 318 318 // MPed estalPix &ppix = fPed->operator[](j);319 // ppix.Set MeanRms(0.0);319 // MPedPhotPix &ppix = fPed->operator[](j); 320 // ppix.SetRms(0.0); 320 321 //} 321 322 //$$$$$$$$$$$$$$$$$$$$$$$$$$ … … 543 544 Double_t ratioArea = 1.0 / fCam->GetPixRatio(j); 544 545 545 MPed estalPix &ppix = (*fPed)[j];546 Double_t oldsigma = ppix.Get PedestalRms();546 MPedPhotPix &ppix = (*fPed)[j]; 547 Double_t oldsigma = ppix.GetRms(); 547 548 Double_t oldsigma2 = oldsigma*oldsigma; 548 549 … … 706 707 707 708 Double_t newsigma = sqrt(oldsigma2 + addSig2); 708 ppix.Set PedestalRms(newsigma);709 ppix.SetRms(newsigma); 709 710 710 711 fHSigmaPedestal->Fill(oldsigma, newsigma); -
trunk/MagicSoft/Mars/manalysis/MCT1PadSchweizer.h
r2206 r2798 16 16 class MGeomCam; 17 17 class MCerPhotEvt; 18 class MPed estalCam;18 class MPedPhotCam; 19 19 class MMcEvt; 20 20 class MSigmabar; … … 29 29 MSigmabar *fSigmabar; 30 30 MMcEvt *fMcEvt; 31 MPed estalCam *fPed;31 MPedPhotCam *fPed; 32 32 MBlindPixels *fBlinds; 33 33 -
trunk/MagicSoft/Mars/manalysis/MPad.cc
r2777 r2798 76 76 #include "MCerPhotEvt.h" 77 77 78 #include "MPedestalCam.h" 79 #include "MPedestalPix.h" 78 #include "MPedPhotCam.h" 79 #include "MPedPhotPix.h" 80 80 81 #include "MBlindPixels.h" 81 82 … … 1477 1478 } 1478 1479 1479 fPed = (MPed estalCam*)pList->FindObject("MPedestalCam");1480 fPed = (MPedPhotCam*)pList->FindObject("MPedPhotCam"); 1480 1481 if (!fPed) 1481 1482 { 1482 *fLog << err << "MPad : MPed estalCam not found... aborting."1483 *fLog << err << "MPad : MPedPhotCam not found... aborting." 1483 1484 << endl; 1484 1485 return kFALSE; … … 1600 1601 continue; 1601 1602 1602 fEvt->AddPixel(i, 0.0, (*fPed)[i].Get PedestalRms());1603 fEvt->AddPixel(i, 0.0, (*fPed)[i].GetRms()); 1603 1604 } 1604 1605 … … 1989 1990 Double_t ratioArea = 1.0 / fCam->GetPixRatio(j); 1990 1991 1991 MPed estalPix &ppix = (*fPed)[j];1992 Double_t oldsigma_phot = ppix.Get PedestalRms();1992 MPedPhotPix &ppix = (*fPed)[j]; 1993 Double_t oldsigma_phot = ppix.GetRms(); 1993 1994 Double_t oldsigma = oldsigma_phot * fPEperPhoton; 1994 1995 Double_t oldsigma2 = oldsigma*oldsigma; … … 2140 2141 Double_t newsigma = sqrt( oldsigma2 + addSig2 ); 2141 2142 Double_t newsigma_phot = newsigma / fPEperPhoton; 2142 ppix.Set PedestalRms( newsigma_phot );2143 ppix.SetRms( newsigma_phot ); 2143 2144 2144 2145 fHSigmaPedestal->Fill( oldsigma_phot, newsigma_phot ); -
trunk/MagicSoft/Mars/manalysis/MPad.h
r2777 r2798 16 16 class MGeomCam; 17 17 class MCerPhotEvt; 18 class MPed estalCam;18 class MPedPhotCam; 19 19 class MMcEvt; 20 20 class MSigmabar; … … 32 32 MSigmabar *fSigmabar; 33 33 MMcEvt *fMcEvt; 34 MPed estalCam*fPed;34 MPedPhotCam *fPed; 35 35 MBlindPixels *fBlinds; 36 36 -
trunk/MagicSoft/Mars/manalysis/MPadding.cc
r2206 r2798 93 93 #include "MCerPhotPix.h" 94 94 95 #include "MPed estalCam.h"96 #include "MPed estalPix.h"95 #include "MPedPhotCam.h" 96 #include "MPedPhotPix.h" 97 97 98 98 ClassImp(MPadding); … … 239 239 } 240 240 241 fPed = (MPed estalCam*)pList->FindObject("MPedestalCam");241 fPed = (MPedPhotCam*)pList->FindObject("MPedPhotCam"); 242 242 if (!fPed) 243 243 { 244 *fLog << err << dbginf << "MPed estalCam not found... aborting." << endl;244 *fLog << err << dbginf << "MPedPhotCam not found... aborting." << endl; 245 245 return kFALSE; 246 246 } … … 443 443 pix.SetErrorPhot( newerror ); 444 444 445 MPed estalPix &ppix = (*fPed)[i];446 447 ppix.Set MeanRms(0);448 449 const Double_t oldsigma = ppix.Get MeanRms();445 MPedPhotPix &ppix = (*fPed)[i]; 446 447 ppix.SetRms(0); 448 449 const Double_t oldsigma = ppix.GetRms(); 450 450 const Double_t newsigma = sqrt( oldsigma*oldsigma + quadraticDiff*area ); 451 ppix.Set MeanRms( newsigma );451 ppix.SetRms( newsigma ); 452 452 453 453 fHSigmaPedestal->Fill( oldsigma, newsigma ); -
trunk/MagicSoft/Mars/manalysis/MPadding.h
r2206 r2798 10 10 class MGeomCam; 11 11 class MCerPhotEvt; 12 class MPed estalCam;12 class MPedPhotCam; 13 13 class MMcEvt; 14 class MPedestalCam;15 14 class MSigmabar; 16 15 class MParList; … … 23 22 MSigmabar *fSigmabar; 24 23 MMcEvt *fMcEvt; 25 MPed estalCam*fPed;24 MPedPhotCam *fPed; 26 25 27 26 Int_t fRunType; -
trunk/MagicSoft/Mars/manalysis/MPedPhotPix.h
r2630 r2798 21 21 22 22 //void SetMean(Float_t f) { fMean = f; } 23 //void SetRms(Float_t f) { fRms = f; }23 void SetRms(Float_t f) { fRms = f; } 24 24 void Set(Float_t m, Float_t r) { fMean = m; fRms = r; } 25 25 -
trunk/MagicSoft/Mars/manalysis/MSigmabar.cc
r2255 r2798 50 50 #include "MCerPhotPix.h" 51 51 52 #include "MPed estalCam.h"53 #include "MPed estalPix.h"52 #include "MPedPhotCam.h" 53 #include "MPedPhotPix.h" 54 54 55 55 ClassImp(MSigmabar); … … 95 95 // determination of sector to which a respective pixel belongs 96 96 // 97 Float_t MSigmabar::Calc(const MGeomCam &geom, const MPed estalCam &ped,97 Float_t MSigmabar::Calc(const MGeomCam &geom, const MPedPhotCam &ped, 98 98 const MCerPhotEvt &evt) 99 99 { … … 154 154 155 155 // count only those pixels which have a sigma != 0.0 156 const Float_t sigma = ped[idx].Get PedestalRms();156 const Float_t sigma = ped[idx].GetRms(); 157 157 158 158 if ( sigma <= 0 ) -
trunk/MagicSoft/Mars/manalysis/MSigmabar.h
r2103 r2798 9 9 class MParList; 10 10 class MCerPhotEvt; 11 class MPed estalCam;11 class MPedPhotCam; 12 12 13 13 class MSigmabar : public MParContainer … … 44 44 // void SetSigmabarOuter(Float_t f) { fSigmabarOuter = f; } 45 45 46 Float_t Calc(const MGeomCam &geom, const MPed estalCam &ped, const MCerPhotEvt &evt);46 Float_t Calc(const MGeomCam &geom, const MPedPhotCam &ped, const MCerPhotEvt &evt); 47 47 48 48 ClassDef(MSigmabar, 1) // Storage Container for Sigmabar -
trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.cc
r2470 r2798 35 35 // Input Containers: 36 36 // MGeomCam 37 // MPed estalCam37 // MPedPhotCam 38 38 // MRawRunHeader 39 39 // MMcEvt (FIXME: Must be replaced by a 'real-data' container) … … 53 53 54 54 #include "MGeomCam.h" 55 #include "MPed estalCam.h"55 #include "MPedPhotCam.h" 56 56 57 57 #include "MSigmabar.h" … … 90 90 } 91 91 92 fPed = (MPed estalCam*)pList->FindObject(AddSerialNumber("MPedestalCam"));92 fPed = (MPedPhotCam*)pList->FindObject(AddSerialNumber("MPedPhotCam")); 93 93 if (!fPed) 94 94 { 95 *fLog << err << "MPed estalCam not found... aborting." << endl;95 *fLog << err << "MPedPhotCam not found... aborting." << endl; 96 96 return kFALSE; 97 97 } -
trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.h
r2209 r2798 14 14 #endif 15 15 16 #ifndef MARS_MPed estalCam17 #include "MPed estalCam.h"16 #ifndef MARS_MPedPhotCam 17 #include "MPedPhotCam.h" 18 18 #endif 19 19 … … 36 36 MCerPhotEvt *fEvt; 37 37 MGeomCam *fCam; 38 MPed estalCam *fPed;38 MPedPhotCam *fPed; 39 39 MRawRunHeader *fRun; 40 40 MSigmabar *fSig; -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
r2254 r2798 47 47 #include "MGeomCam.h" 48 48 49 #include "MPed estalCam.h"50 #include "MPed estalPix.h"49 #include "MPedPhotCam.h" 50 #include "MPedPhotPix.h" 51 51 52 52 #include "MCerPhotEvt.h" … … 117 117 *fLog << warn << "MMcEvt not found... aborting." << endl; 118 118 119 fPed = (MPed estalCam*)plist->FindObject("MPedestalCam");119 fPed = (MPedPhotCam*)plist->FindObject("MPedPhotCam"); 120 120 if (!fPed) 121 121 { 122 *fLog << err << "MPed estalCam not found... aborting." << endl;122 *fLog << err << "MPedPhotCam not found... aborting." << endl; 123 123 return kFALSE; 124 124 } … … 204 204 205 205 const Int_t id = cerpix.GetPixId(); 206 const MPed estalPix &pix = (*fPed)[id];206 const MPedPhotPix &pix = (*fPed)[id]; 207 207 208 208 // ratio is the area of pixel 0 209 209 // divided by the area of the current pixel 210 210 const Double_t ratio = fCam->GetPixRatio(id); 211 const Double_t sigma = pix.Get PedestalRms();211 const Double_t sigma = pix.GetRms(); 212 212 213 213 fSigmaPixTheta.Fill(theta, (Double_t)id, sigma); -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.h
r2522 r2798 16 16 class MGeomCam; 17 17 class MCerPhotEvt; 18 class MPedestalCam;19 18 class MMcEvt; 20 class MPed estalCam;19 class MPedPhotCam; 21 20 class MSigmabar; 22 21 class MParList; … … 27 26 private: 28 27 const MGeomCam *fCam; //! 29 MPed estalCam*fPed; //!28 MPedPhotCam *fPed; //! 30 29 MCerPhotEvt *fEvt; //! 31 30 MSigmabar *fSigmabar; //!
Note:
See TracChangeset
for help on using the changeset viewer.