Changeset 2135 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 05/23/03 17:30:31 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.cc
r1557 r2135 118 118 Bool_t MCerPhotAnal::Process() 119 119 { 120 fCerPhotEvt->InitSize(fRawEvt->GetNumPixels());120 //fCerPhotEvt->InitSize(fRawEvt->GetNumPixels()); 121 121 122 122 MRawEvtPixelIter pixel(fRawEvt); … … 201 201 } 202 202 203 fCerPhotEvt->FixSize(); 203 204 fCerPhotEvt->SetReadyToSave(); 204 205 -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r1965 r2135 164 164 Bool_t MCerPhotCalc::Process() 165 165 { 166 fCerPhotEvt->InitSize(fRawEvt->GetNumPixels());166 //fCerPhotEvt->InitSize(fRawEvt->GetNumPixels()); 167 167 168 168 MRawEvtPixelIter pixel(fRawEvt); … … 212 212 } 213 213 214 fCerPhotEvt->FixSize(); 214 215 fCerPhotEvt->SetReadyToSave(); 215 216 -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r2052 r2135 75 75 { 76 76 fNumPixels = 0; 77 fPixels->Delete(); 77 //fPixels->Delete(); 78 } 79 80 void MCerPhotEvt::FixSize() 81 { 82 if (fPixels->GetEntriesFast() == (Int_t)fNumPixels) 83 return; 84 85 fPixels->ExpandCreateFast(fNumPixels); 78 86 } 79 87 -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r2052 r2135 23 23 24 24 UInt_t GetNumPixels() const { return fNumPixels; } 25 void InitSize(UInt_t num) { fPixels->Expand(num); }25 //void InitSize(UInt_t num) { fPixels->Expand(num); } 26 26 27 27 void AddPixel(Int_t id, Float_t nph, Float_t er) … … 29 29 new ((*fPixels)[fNumPixels++]) MCerPhotPix(id, nph, er); 30 30 } 31 32 void FixSize(); 31 33 32 34 //Bool_t AddEvent(const MCerPhotEvt &evt); -
trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc
r1965 r2135 209 209 fPedCam->InitSize(num); 210 210 211 const Float_t size0 = (*fGeom)[0].GetR() * (*fGeom)[0].GetR();212 213 211 for (int i=0; i<num; i++) 214 212 { 215 MPedestalPix &pix = (*fPedCam)[i]; 216 const MGeomPix &pixgeom = (*fGeom)[i]; 213 MPedestalPix &pix = (*fPedCam)[i]; 217 214 218 215 const Float_t pedrms = pix.GetSigma(); 219 const Float_t size = pixgeom.GetR()*pixgeom.GetR()/size0; 220 216 const Float_t ratio = fGeom->GetPixRatio(i); 221 217 const Float_t ampl = fFadc->GetAmplitud(); 222 218 223 pix.SetSigma(sqrt(pedrms*pedrms + dnsbpix*ampl*ampl* size));219 pix.SetSigma(sqrt(pedrms*pedrms + dnsbpix*ampl*ampl*ratio)); 224 220 } 225 221 -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r1544 r2135 82 82 Int_t MPedestalCam::GetSize() const 83 83 { 84 return fArray->GetEntries ();84 return fArray->GetEntriesFast(); 85 85 } 86 86
Note:
See TracChangeset
for help on using the changeset viewer.