Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / T0 / AliT0Digitizer.h
CommitLineData
dc7ca31d 1#ifndef ALIT0DIGITIZER_H
2#define ALIT0DIGITIZER_H
3/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
94249139 5/******************************************************************
6 * Produde digits from hits
7 * Alla.Maevskaya@cern.ch
8 ********************************************************************/
dc7ca31d 9
10#include <AliDigitizer.h>
29d3e0eb 11#include "AliT0Parameters.h"
dc7ca31d 12
f21fc003 13#include <AliDigitizationInput.h>
dc7ca31d 14class AliT0;
15class AliT0hit;
16class AliT0digit;
17
18class AliT0Digitizer : public AliDigitizer {
19 public:
20
21 AliT0Digitizer();
f21fc003 22 AliT0Digitizer(AliDigitizationInput * digInput);
dc7ca31d 23 virtual ~AliT0Digitizer();
24 virtual Bool_t Init();
25 TClonesArray *Hits() const {return fHits;}
94249139 26 TArrayI *TimeCFD() {return ftimeCFD;}
27 TArrayI *TimeLED() {return ftimeLED;}
dc7ca31d 28 TArrayI * ADC() {return fADC;}
94249139 29 TArrayI * ADC0() {return fADC0;}
dc7ca31d 30
31 // Do the main work
f21fc003 32 void Digitize(Option_t* /*option=0*/) ;
c41ceaac 33 // Bool_t RegisterPhotoE(Int_t impt, Double_t energy);
dc7ca31d 34 enum {kBgTag = -1};
35
36private:
37
94249139 38 AliT0 *fT0; //!
39 TClonesArray *fHits; //! List of hits
40 AliT0digit *fdigits; //! digits
41 TArrayI *ftimeCFD; //! array of CFD signal
42 TArrayI *ftimeLED; //! array of (LED-GFD) time (amplitude)
43 TArrayI *fADC; //! array of QTC signals (main amplitude)
44 TArrayI *fADC0; //! array of QTC signals (main amplitude)
45 Int_t fSumMult; // multiplicity
eb29e399 46 TObjArray fAmpLED; // amplitude CFD-LED dependence #channel -> #MIPs
47 TObjArray fAmpQTC; // amplitude QTC dependence #channel -> #MIPs
330faf59 48
94249139 49 AliT0Parameters *fParam; //pointer to T0 parameters class
29d3e0eb 50
dc7ca31d 51
52 AliT0Digitizer(const AliT0Digitizer&);
57b90263 53 AliT0Digitizer& operator=(const AliT0Digitizer&);
dc7ca31d 54
cce32c6f 55 ClassDef(AliT0Digitizer,4)
dc7ca31d 56};
57
58typedef AliT0Digitizer AliSTARTDigitizer; // for backward compatibility
59
60#endif
61