Changeset 3339 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 02/27/04 06:52:39 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHBlindPixels.cc
r3140 r3339 35 35 #include "MMcEvt.hxx" 36 36 #include "MBlindPixels.h" 37 #include "MGeomCam.h" 37 38 #include "MPedPhotCam.h" 38 39 #include "MParList.h" … … 78 79 Bool_t MHBlindPixels::SetupFill(const MParList *plist) 79 80 { 81 MGeomCam *fCam = (MGeomCam*)plist->FindObject(AddSerialNumber("MGeomCam")); 82 if (!fCam) 83 { 84 *fLog << err << "MHBlindPixels::SetupFill; MGeomCam not found... aborting." << endl; 85 return kFALSE; 86 } 87 80 88 fMcEvt = (MMcEvt*)plist->FindObject("MMcEvt"); 81 89 if (!fMcEvt) … … 92 100 return kFALSE; 93 101 } 102 fPedPhot->InitSize(fCam->GetNumPixels()); 94 103 95 104 -
trunk/MagicSoft/Mars/mhist/MHBlindPixels.h
r3140 r3339 12 12 class MMcEvt; 13 13 class MParList; 14 14 class MGeomCam; 15 15 16 16 class MHBlindPixels : public MH 17 17 { 18 18 private: 19 MPedPhotCam *fPedPhot; //! 19 MGeomCam *fCam; //! 20 MPedPhotCam *fPedPhot; //! 20 21 MMcEvt *fMcEvt; //! 21 22 -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
r3140 r3339 113 113 Bool_t MHSigmaTheta::SetupFill(const MParList *plist) 114 114 { 115 fCam = (MGeomCam*)plist->FindObject("MGeomCam"); 116 if (!fCam) 117 { 118 *fLog << err << "MGeomCam not found (no geometry information available)... aborting." << endl; 119 return kFALSE; 120 } 121 115 122 fMcEvt = (MMcEvt*)plist->FindObject("MMcEvt"); 116 123 if (!fMcEvt) 117 124 *fLog << warn << "MMcEvt not found... aborting." << endl; 118 125 126 119 127 fPed = (MPedPhotCam*)plist->FindObject("MPedPhotCam"); 120 128 if (!fPed) … … 123 131 return kFALSE; 124 132 } 125 126 fCam = (MGeomCam*)plist->FindObject("MGeomCam"); 127 if (!fCam) 128 { 129 *fLog << err << "MGeomCam not found (no geometry information available)... aborting." << endl; 130 return kFALSE; 131 } 133 fPed->InitSize(fCam->GetNumPixels()); 134 132 135 133 136 fEvt = (MCerPhotEvt*)plist->FindObject("MCerPhotEvt"); … … 166 169 167 170 // Get binning for pixel number 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 : 171 const UInt_t npix1 = fPed->GetSize()+1; 172 *fLog << "npix1 = " << npix1 << endl; 173 173 MBinning binspix("BinningPixel"); 174 binspix.SetEdges( 578, -0.5, 577.5);174 binspix.SetEdges(npix1, -0.5, npix1-0.5); 175 175 176 176 // Set binnings in histograms
Note:
See TracChangeset
for help on using the changeset viewer.