Changeset 9261 for trunk/MagicSoft/Mars/melectronics
- Timestamp:
- 01/25/09 14:32:11 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/melectronics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/melectronics/MAvalanchePhotoDiode.cc
r9243 r9261 165 165 case 2: if (y<fHist.GetNbinsY()) n += HitCellImp(x, y+1, t); break; 166 166 case 3: if (y>1) n += HitCellImp(x, y-1, t); break; 167 /*168 case 0: x++; if (x>fHist.GetNbinsX()) continue; break;169 case 1: x--; if (x<1) continue; break;170 case 2: y++; if (y>fHist.GetNbinsY()) continue; break;171 case 3: y--; if (y<1) continue; break;*/172 167 } 173 168 174 169 // In the unlikely case the calculated direction is out-of-range, 175 170 // i.e. <0 or >3, we would just try to fill the same cell again which 176 177 //n += HitCellImp(x, y, t);178 171 } 179 172 … … 236 229 for (int i=0; i<n; i++) 237 230 fHist.GetArray()[i] = tm; 231 232 fHist.SetEntries(1); 238 233 } 239 234 -
trunk/MagicSoft/Mars/melectronics/MAvalanchePhotoDiode.h
r9242 r9261 6 6 #endif 7 7 8 class APD : public TObject 8 class APD : public TObject // FIXME: Derive from TH2? 9 9 { 10 10 private: … … 29 29 Int_t CountRecoveringCells(Float_t t=0) const; 30 30 31 Float_t GetCellContent(Int_t x, Int_t y) const { return fHist.GetBinContent(x, y); } 32 Int_t GetNumCellsX() const { return fHist.GetNbinsX(); } 33 34 Float_t GetCrosstalkProb() const { return fCrosstalkProb; } 35 Float_t GetDeadTime() const { return fDeadTime; } 36 Float_t GetRecoveryTime() const { return fRecoveryTime; } 37 38 void Draw(Option_t *o="") { fHist.Draw(o); } 39 void DrawCopy(Option_t *o="") { fHist.DrawCopy(o); } 40 31 41 ClassDef(APD, 1) // An object representing a Geigermode APD 32 42 };
Note:
See TracChangeset
for help on using the changeset viewer.