Changeset 17200 for trunk/Mars/melectronics
- Timestamp:
- 10/06/13 12:08:11 (11 years ago)
- Location:
- trunk/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars
-
Property svn:ignore
set to
merpp
ganymed
sponde
mars
readraw
showlog
mars-config
MCint.cc
readcorsika
MCint.h
readdaq
ceres
MDep.d
callisto
showplot
star
-
Property svn:ignore
set to
-
trunk/Mars/melectronics
-
Property svn:ignore
set to
ElectronicsDep.d
ElectronicsCint.cc
ElectronicsCint.h
-
Property svn:ignore
set to
-
trunk/Mars/melectronics/ElectronicsLinkDef.h
r9473 r17200 6 6 7 7 #pragma link C++ class APD+; 8 #pragma link C++ class Afterpulse; 8 9 #pragma link C++ class MAnalogSignal+; 9 10 #pragma link C++ class MDigitalSignal+; -
trunk/Mars/melectronics/MAvalanchePhotoDiode.cc
r17018 r17200 71 71 // apd.IncreaseTime(dtend); 72 72 // 73 // // Now you can excess the afterpulses by73 // // Now you can access 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" 96 97 97 98 ClassImp(APD); -
trunk/Mars/melectronics/MAvalanchePhotoDiode.h
r10115 r17200 122 122 }; 123 123 124 class Afterpulse : public TObject125 {126 private:127 UInt_t fCellIndex; // Index of G-APD cell the afterpulse belongs to128 129 Float_t fTime; // Time at which the afterpulse avalanch broke through130 Float_t fAmplitude; // Amplitude (crosstalk!) the pulse produced131 132 Int_t Compare(const TObject *obj) const133 {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 anyway151 // 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 };164 165 124 #endif -
trunk/Mars/melectronics/Makefile
r9518 r17200 22 22 23 23 SRCFILES = MAvalanchePhotoDiode.cc \ 24 Afterpulse.cc \ 24 25 MAnalogSignal.cc \ 25 26 MAnalogChannels.cc \
Note:
See TracChangeset
for help on using the changeset viewer.