Changeset 2798 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/14/04 09:09:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.