Changeset 17202 for trunk/Mars/melectronics
- Timestamp:
- 10/06/13 13:30:11 (11 years ago)
- Location:
- trunk/Mars/melectronics
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/melectronics/MAvalanchePhotoDiode.cc
r17200 r17202 71 71 // apd.IncreaseTime(dtend); 72 72 // 73 // // Now you can access the afterpulses by73 // // Now you can excess the afterpulses by 74 74 // TIter Next(&a->GetListOfAfterpulses()); 75 75 // Afterpulse *ap = 0; … … 94 94 #include "MLog.h" 95 95 #include "MLogManip.h" 96 #include "Afterpulse.h"97 96 98 97 ClassImp(APD); -
trunk/Mars/melectronics/MAvalanchePhotoDiode.h
r17200 r17202 122 122 }; 123 123 124 class Afterpulse : public TObject 125 { 126 private: 127 UInt_t fCellIndex; // Index of G-APD cell the afterpulse belongs to 128 129 Float_t fTime; // Time at which the afterpulse avalanch broke through 130 Float_t fAmplitude; // Amplitude (crosstalk!) the pulse produced 131 132 Int_t Compare(const TObject *obj) const 133 { 134 return static_cast<const Afterpulse*>(obj)->fTime>fTime ? -1 : 1; 135 } 136 137 Bool_t IsSortable() const { return kTRUE; } 138 139 public: 140 Afterpulse(UInt_t idx, Float_t t) : fCellIndex(idx), fTime(t), fAmplitude(0) { } 141 142 UInt_t GetCellIndex() const { return fCellIndex; } 143 144 Float_t GetTime() const { return fTime; } 145 Float_t GetAmplitude() const { return fAmplitude; } 146 147 Float_t Process(APD &apd) 148 { 149 // Do not process afterpulses twice (e.g. HitRelative + IncreaseTime) 150 // This should not happen anyway 151 // if (fAmplitude>0) 152 // return fAmplitude; 153 154 const UInt_t nx = apd.GetNumCellsX()+2; 155 156 const UInt_t x = fCellIndex%nx; 157 const UInt_t y = fCellIndex/nx; 158 159 fAmplitude = apd.HitCellImp(x, y, fTime); 160 161 return fAmplitude; 162 } 163 ClassDef(Afterpulse, 1) // An Afterpulse object 164 }; 165 124 166 #endif -
trunk/Mars/melectronics/Makefile
r17200 r17202 22 22 23 23 SRCFILES = MAvalanchePhotoDiode.cc \ 24 Afterpulse.cc \25 24 MAnalogSignal.cc \ 26 25 MAnalogChannels.cc \
Note:
See TracChangeset
for help on using the changeset viewer.