Changeset 1051
- Timestamp:
- 11/08/01 10:49:49 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r1048 r1051 117 117 const MPedestalPix &ped = (*fPedestals)[pixid]; 118 118 119 const Float_t nphot = (Float_t)pixel.GetSumHiGain FadcSamples() - ped.GetMean();119 const Float_t nphot = (Float_t)pixel.GetSumHiGainSamples() - ped.GetMean(); 120 120 121 121 fCerPhotEvt->AddPixel(pixid, nphot, ped.GetMeanRms()); -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r1048 r1051 30 30 31 31 #include <TCanvas.h> 32 #include <TClonesArray.h>33 32 34 33 #include "MLog.h" 35 34 #include "MHexagon.h" 36 #include "MCerPhotPix.h"37 35 38 36 ClassImp(MCerPhotEvt); … … 47 45 fTitle = title ? title : "(Number of Photon)-Event Information"; 48 46 49 fPixels = new TClonesArray 47 fPixels = new TClonesArray("MCerPhotPix", 0); 50 48 } 51 49 … … 66 64 // delete geom; 67 65 // disp->DrawPhotNum(this); 68 }69 70 // --------------------------------------------------------------------------71 //72 // add a new pixel to the list and increase the number73 // of valid pixels in the list by one74 //75 void MCerPhotEvt::AddPixel(Int_t id, Float_t nph, Float_t err)76 {77 // TClonesArray -> 'operator new with placement' should be used78 79 // fPixels->ExpandCreate(fNumPixels);80 new ((*fPixels)[fNumPixels++]) MCerPhotPix(id, nph, err);81 66 } 82 67 -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r1048 r1051 5 5 #include <TClonesArray.h> 6 6 #endif 7 #ifndef MARS_M ParContainer8 #include "M ParContainer.h"7 #ifndef MARS_MCerPhotPix 8 #include "MCerPhotPix.h" 9 9 #endif 10 10 … … 24 24 void InitSize(UInt_t num) { fPixels->Expand(num); } 25 25 26 void AddPixel(Int_t id, Float_t nph, Float_t err); 26 void AddPixel(Int_t id, Float_t nph, Float_t err) 27 { 28 new ((*fPixels)[fNumPixels++]) MCerPhotPix(id, nph, err); 29 } 30 27 31 28 32 Bool_t IsPixelExisting(Int_t id) const; -
trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
r1035 r1051 63 63 { 64 64 if (run->GetRunType() != kRTMonteCarlo) 65 { 66 *fLog << "No Monte Carlo File - MMcPedestalCopy skipped." << endl; 65 67 return kTRUE; 68 } 66 69 } 67 70 -
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r1010 r1051 87 87 while (pixel.Next()) 88 88 { 89 Byte_t *ptr = pixel.GetHiGain FadcSamples();89 Byte_t *ptr = pixel.GetHiGainSamples(); 90 90 const Byte_t *end = ptr + fRawEvt->GetNumHiGainSamples(); 91 91 -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r1003 r1051 49 49 // 50 50 // TClonesArray: The 'new operator with placement' must be used 51 // FIXME: Use ExpandCraete instead 51 52 // 52 53 for (int i=0; i<577; i++) -
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r1036 r1051 390 390 391 391 //*fLog << "Branch " << bname << " autodel: " << (int)branch->IsAutoDelete() << endl; 392 branch->SetAutoDelete();392 //branch->SetAutoDelete(); 393 393 394 394 num++; -
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
r1030 r1051 149 149 // Map the window, set up the layout, etc. 150 150 // 151 SetWMSizeHints(450, 400, 1000, 1000, 10, 10 ); // set the smallest and biggest size of the Main frame152 153 151 MapSubwindows(); 154 152 -
trunk/MagicSoft/Mars/mhist/MHFadcCam.cc
r1030 r1051 102 102 103 103 for (Int_t i=0; i<nhisamples; i++) 104 FillHi(id, pixel.GetHiGain FadcSamples()[i]);104 FillHi(id, pixel.GetHiGainSamples()[i]); 105 105 106 106 if (!pixel.HasLoGain()) … … 108 108 109 109 for (Int_t i=0; i<nlosamples; i++) 110 FillLo(id, pixel.GetLoGain FadcSamples()[i]);110 FillLo(id, pixel.GetLoGainSamples()[i]); 111 111 } 112 112
Note:
See TracChangeset
for help on using the changeset viewer.