Changeset 7109 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 05/30/05 18:12:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpedestal
- Files:
-
- 2 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 -
trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.h
r4609 r7109 14 14 class MPedPhotPix; 15 15 class MBadPixelsCam; 16 class MPedestalCam; 16 17 17 18 class MPedPhotCam : public MParContainer, public MCamEvent … … 22 23 TClonesArray *fSectors; //-> Array of MPedPhotPix, one per camera sector 23 24 25 void InitArrays(const char *name=NULL, const char *title=NULL); 26 24 27 // void InitSize(const UInt_t i); 25 28 void InitAreas(const UInt_t i); … … 28 31 public: 29 32 MPedPhotCam(const char *name=NULL, const char *title=NULL); 33 MPedPhotCam(const MPedestalCam &pcam); 30 34 ~MPedPhotCam(); 31 35
Note:
See TracChangeset
for help on using the changeset viewer.