source: trunk/MagicSoft/Mars/melectronics/MAvalanchePhotoDiode.h@ 9251

Last change on this file since 9251 was 9242, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 906 bytes
Line 
1#ifndef MARS_MAvalanchePhotoDiode
2#define MARS_MAvalanchePhotoDiode
3
4#ifndef ROOT_TH2
5#include <TH2.h>
6#endif
7
8class APD : public TObject
9{
10private:
11 TH2F fHist;
12
13 Float_t fCrosstalkProb; // Probability that a converted photon creates another one in a neighboring cell
14 Float_t fDeadTime; // Deadtime of a single cell after a hit
15 Float_t fRecoveryTime; // Recoverytime after Deadtime (1-exp(-t/fRecoveryTime)
16
17 Float_t HitCellImp(Int_t x, Int_t y, Float_t t=0);
18
19public:
20 APD(Int_t n, Float_t prob=0, Float_t dt=0, Float_t rt=0);
21
22 Float_t HitCell(Int_t x, Int_t y, Float_t t=0);
23 Float_t HitRandomCell(Float_t t=0);
24
25 void FillEmpty(Float_t t=0);
26 void FillRandom(Float_t rate, Float_t t=0);
27
28 Int_t CountDeadCells(Float_t t=0) const;
29 Int_t CountRecoveringCells(Float_t t=0) const;
30
31 ClassDef(APD, 1) // An object representing a Geigermode APD
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.