Pedestal subtraction implemented
[u/mrichter/AliRoot.git] / PMD / AliPMDRawToSDigits.h
CommitLineData
1d9f57cc 1#ifndef ALIPMDRAWTOSDIGITS_H
2#define ALIPMDRAWTOSDIGITS_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5//-----------------------------------------------------//
6// //
7// Date : October 06 2006 //
8// //
9//-----------------------------------------------------//
10
11
12class TClonesArray;
13class TTree;
14
15class AliLoader;
16class AliRunLoader;
17class AliRawReader;
18
19class AliPMDsdigit;
20class AliPMDdigit;
21
22class AliPMDRawToSDigits : public TObject
23{
24 public:
25
26 AliPMDRawToSDigits();
27 AliPMDRawToSDigits(const AliPMDRawToSDigits & /* pmdr2sd */); // copy constructor
28 AliPMDRawToSDigits &operator=(const AliPMDRawToSDigits & /* pmdr2sd */); // assi op
29 virtual ~AliPMDRawToSDigits();
30
31 void Raw2SDigits(AliRunLoader *runLoader, AliRawReader *rawReader);
32 void Raw2Digits(AliRunLoader *runLoader, AliRawReader *rawReader);
33 void AdcToMeV(Int_t adc, Float_t &edep);
34 void AddSDigit(Int_t trnumber, Int_t det, Int_t smnumber,
35 Int_t irow, Int_t icol, Float_t adc);
36 void AddDigit(Int_t trnumber, Int_t det, Int_t smnumber,
37 Int_t irow, Int_t icol, Float_t adc);
38
39 void ResetSDigit();
40 void ResetDigit();
41
42
43 protected:
44 TClonesArray *fSDigits; //! List of digits
45 TClonesArray *fDigits; //! List of digits
46
47 Int_t fNsdigit; // Digits counter
48 Int_t fNdigit; // Digits counter
49
50 ClassDef(AliPMDRawToSDigits,0) // Coverts Raw to SDigits
51};
52#endif
53