Ignore:
Timestamp:
10/06/13 13:30:11 (11 years ago)
Author:
dneise
Message:
in commit 17200 & 17201 I committed accidentally a lot of changes,
that were totally unnecessary. So I reverted back to 17199.
In this revision the svn property svn:ignore is still set, such that 
all the Cint.cc and Cint.h files as well as .d files are ignored.

In addition I changed melectronics/MAvalanchePhotoDiode.h:
I gave the Afterpulse class a ClassDef macro... 
and I added the link pragma into LinkDef.h file.
So now one can easier write test macros for the APD class,
without the need to compile the macro.

Sorry for the hubbub.
Location:
trunk/Mars/melectronics
Files:
2 deleted
3 edited

Legend:

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

    r17200 r17202  
    7171//        apd.IncreaseTime(dtend);
    7272//
    73 //        // Now you can access the afterpulses by
     73//        // Now you can excess the afterpulses by
    7474//        TIter Next(&a->GetListOfAfterpulses());
    7575//        Afterpulse *ap = 0;
     
    9494#include "MLog.h"
    9595#include "MLogManip.h"
    96 #include "Afterpulse.h"
    9796
    9897ClassImp(APD);
  • trunk/Mars/melectronics/MAvalanchePhotoDiode.h

    r17200 r17202  
    122122};
    123123
     124class Afterpulse : public TObject
     125{
     126private:
     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
     139public:
     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
    124166#endif
  • trunk/Mars/melectronics/Makefile

    r17200 r17202  
    2222
    2323SRCFILES = MAvalanchePhotoDiode.cc \
    24            Afterpulse.cc \
    2524           MAnalogSignal.cc \
    2625           MAnalogChannels.cc \
Note: See TracChangeset for help on using the changeset viewer.