Changeset 3140 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 02/13/04 15:28:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHBlindPixels.cc
r2173 r3140 35 35 #include "MMcEvt.hxx" 36 36 #include "MBlindPixels.h" 37 #include "MPed estalCam.h"37 #include "MPedPhotCam.h" 38 38 #include "MParList.h" 39 39 #include "MBinning.h" … … 85 85 } 86 86 87 fPed = (MPedestalCam*)plist->FindObject("MPedestalCam"); 88 if (!fPed) 87 88 fPedPhot = (MPedPhotCam*)plist->FindObject("MPedPhotCam"); 89 if (!fPedPhot) 89 90 { 90 *fLog << err << "MPed estalCam not found... aborting." << endl;91 *fLog << err << "MPedPhotCam not found... aborting." << endl; 91 92 return kFALSE; 92 93 } 93 94 94 95 95 96 // Get Theta Binning … … 102 103 103 104 // Get binning for pixel number 104 const UInt_t npix1 = fPed ->GetSize()+1;105 const UInt_t npix1 = fPedPhot->GetSize()+1; 105 106 106 107 MBinning binspix("BinningPixel"); … … 166 167 167 168 // FIXME: Slow. 168 const UInt_t npix = fPed ->GetSize();169 const UInt_t npix = fPedPhot->GetSize(); 169 170 170 171 UInt_t nb = 0; -
trunk/MagicSoft/Mars/mhist/MHBlindPixels.h
r2128 r3140 9 9 #endif 10 10 11 class MPed estalCam;11 class MPedPhotCam; 12 12 class MMcEvt; 13 13 class MParList; … … 17 17 { 18 18 private: 19 MPed estalCam *fPed; //!19 MPedPhotCam *fPedPhot; //! 20 20 MMcEvt *fMcEvt; //! 21 21 -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
r2798 r3140 95 95 MBinning binst; 96 96 MBinning binsd; 97 binsd.SetEdges(100, - 5, 20);98 binsb.SetEdges(100, 0, 5);97 binsd.SetEdges(100, -10, 20); 98 binsb.SetEdges(100, 0, 10); 99 99 binst.SetEdgesCos(10, 0, 90); 100 100 … … 166 166 167 167 // Get binning for pixel number 168 const UInt_t npix1 = fPed->GetSize()+1; 169 168 //const UInt_t npix1 = fPed->GetSize()+1; 169 //*fLog << "npix1 = " << npix1 << endl; 170 //MBinning binspix("BinningPixel"); 171 //binspix.SetEdges(npix1, -0.5, npix1-0.5); 172 // the above gives npix1 = 1; therefore : 170 173 MBinning binspix("BinningPixel"); 171 binspix.SetEdges( npix1, -0.5, npix1-0.5);174 binspix.SetEdges(578, -0.5, 577.5); 172 175 173 176 // Set binnings in histograms … … 191 194 { 192 195 Double_t theta = fMcEvt ? fMcEvt->GetTelescopeTheta()*kRad2Deg : 0; 193 Double_t mysig = fSigmabar->Calc(*fCam, *fPed, *fEvt); 196 fSigmabar->Calc(*fCam, *fPed, *fEvt); 197 Double_t mysig = fSigmabar->GetSigmabarInner(); 198 199 //*fLog << "theta, mysig = " << theta << ", " << mysig << endl; 194 200 195 201 fSigmaTheta.Fill(theta, mysig); … … 211 217 const Double_t sigma = pix.GetRms(); 212 218 213 fSigmaPixTheta.Fill(theta, (Double_t)id, sigma );219 fSigmaPixTheta.Fill(theta, (Double_t)id, sigma*sqrt(ratio)); 214 220 215 221 const Double_t diff = sigma*sigma*ratio - mysig*mysig;
Note:
See TracChangeset
for help on using the changeset viewer.