Changeset 1048 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 11/07/01 11:50:28 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCT1ReadAscii.cc
r1011 r1048 232 232 // too the list with it's id, number of photons and error 233 233 // 234 fNphot->InitSize(127); 235 234 236 for (Int_t i = 0; i<127; i++ ) 235 237 { -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r1032 r1048 45 45 #include "MLogManip.h" 46 46 47 #include "MRawEvt PixelIter.h"47 #include "MRawEvtData.h" // MRawEvtData::GetNumPixels 48 48 #include "MCerPhotEvt.h" 49 49 #include "MPedestalPix.h" 50 50 #include "MPedestalCam.h" 51 #include "MRawEvtPixelIter.h" 51 52 52 53 ClassImp(MCerPhotCalc); … … 65 66 AddToBranchList("fHiGainFadcSamples"); 66 67 AddToBranchList("fLoGainFadcSamples"); 67 68 68 } 69 69 … … 108 108 Bool_t MCerPhotCalc::Process() 109 109 { 110 fCerPhotEvt->InitSize(fRawEvt->GetNumPixels()); 111 110 112 MRawEvtPixelIter pixel(fRawEvt); 111 112 113 while (pixel.Next()) 113 114 { 114 115 115 const UInt_t pixid = pixel.GetPixelId(); 116 116 -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r1032 r1048 47 47 fTitle = title ? title : "(Number of Photon)-Event Information"; 48 48 49 fPixels = new TClonesArray ("MCerPhotPix", 577); 50 51 // 52 // FIXME: is this really necessary? 53 // 54 Reset(); 49 fPixels = new TClonesArray ("MCerPhotPix", 0); 55 50 } 56 51 … … 82 77 // TClonesArray -> 'operator new with placement' should be used 83 78 84 fPixels->ExpandCreate(fNumPixels);79 // fPixels->ExpandCreate(fNumPixels); 85 80 new ((*fPixels)[fNumPixels++]) MCerPhotPix(id, nph, err); 86 81 } … … 93 88 { 94 89 fNumPixels = 0; 95 //fPixels->Delete();90 fPixels->Delete(); 96 91 } 97 92 -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r1032 r1048 22 22 23 23 UInt_t GetNumPixels() const { return fNumPixels; } 24 void InitSize(UInt_t num) { fPixels->Expand(num); } 25 24 26 void AddPixel(Int_t id, Float_t nph, Float_t err); 25 27 … … 31 33 Float_t GetNumPhotonsMax() const; 32 34 33 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels-> At(i)); }34 MCerPhotPix &operator[](int i) const { return *(MCerPhotPix*)(fPixels-> At(i)); }35 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->UncheckedAt(i)); } 36 MCerPhotPix &operator[](int i) const { return *(MCerPhotPix*)(fPixels->UncheckedAt(i)); } 35 37 36 38 void Reset(); -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.h
r1014 r1048 23 23 ~MPedestalCam(); 24 24 25 void InitSize(const UInt_t i) { fArray->ExpandCreate Fast(i); }25 void InitSize(const UInt_t i) { fArray->ExpandCreate(i); } 26 26 27 MPedestalPix &operator[](Int_t i) { return *(MPedestalPix*)fArray-> At(i); }28 MPedestalPix &operator[](Int_t i) const { return *(MPedestalPix*)fArray-> At(i); }27 MPedestalPix &operator[](Int_t i) { return *(MPedestalPix*)fArray->UncheckedAt(i); } 28 MPedestalPix &operator[](Int_t i) const { return *(MPedestalPix*)fArray->UncheckedAt(i); } 29 29 30 30 ClassDef(MPedestalCam, 1) // Storage Container for all pedestal information of the camera
Note:
See TracChangeset
for help on using the changeset viewer.