Changeset 7109 for trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc
- Timestamp:
- 05/30/05 18:12:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc
r5807 r7109 55 55 #include "MBadPixelsPix.h" 56 56 57 #include "MPedestalCam.h" 58 #include "MPedestalPix.h" 59 57 60 ClassImp(MPedPhotCam); 58 61 … … 61 64 // -------------------------------------------------------------------------- 62 65 // 63 // Default constructor. Creates a MPedPhotPix object for each pixel 64 // 65 MPedPhotCam::MPedPhotCam(const char *name, const char *title) 66 // Contains the default constructor. Creates a MPedPhotPix object 67 // for each pixel 68 // 69 void MPedPhotCam::InitArrays(const char *name, const char *title) 66 70 { 67 71 fName = name ? name : "MPedPhotCam"; … … 71 75 fAreas = new TClonesArray("MPedPhotPix", 1); 72 76 fSectors = new TClonesArray("MPedPhotPix", 1); 77 } 78 79 // -------------------------------------------------------------------------- 80 // 81 // Default constructor. Creates a MPedPhotPix object for each pixel 82 // 83 MPedPhotCam::MPedPhotCam(const char *name, const char *title) 84 { 85 InitArrays(name, title); 86 } 87 88 // -------------------------------------------------------------------------- 89 // 90 // Initialize the mean, rms and number of events with the values from 91 // the MPedestalCam converted 1:1 92 // 93 MPedPhotCam::MPedPhotCam(const MPedestalCam &p) 94 { 95 const Int_t n = p.GetSize(); 96 97 InitArrays(); 98 InitSize(n); 99 100 for (int i=0; i<n; i++) 101 (*this)[i].Set(p[i].GetPedestal(), p[i].GetPedestalRms(), p[i].GetNumEvents()); 73 102 } 74 103
Note:
See TracChangeset
for help on using the changeset viewer.