Ignore:
Timestamp:
01/25/09 14:32:11 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/melectronics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/melectronics/MAvalanchePhotoDiode.cc

    r9243 r9261  
    165165        case 2: if (y<fHist.GetNbinsY()) n += HitCellImp(x, y+1, t); break;
    166166        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;*/
    172167        }
    173168
    174169        // In the unlikely case the calculated direction is out-of-range,
    175170        // i.e. <0 or >3, we would just try to fill the same cell again which
    176 
    177         //n += HitCellImp(x, y, t);
    178171    }
    179172
     
    236229    for (int i=0; i<n; i++)
    237230        fHist.GetArray()[i] = tm;
     231
     232    fHist.SetEntries(1);
    238233}
    239234
  • trunk/MagicSoft/Mars/melectronics/MAvalanchePhotoDiode.h

    r9242 r9261  
    66#endif
    77
    8 class APD : public TObject
     8class APD : public TObject  // FIXME: Derive from TH2?
    99{
    1010private:
     
    2929    Int_t CountRecoveringCells(Float_t t=0) const;
    3030
     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
    3141    ClassDef(APD, 1) // An object representing a Geigermode APD
    3242};
Note: See TracChangeset for help on using the changeset viewer.