Changeset 1051 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 11/08/01 10:49:49 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 6 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++)
Note:
See TracChangeset
for help on using the changeset viewer.