uuhhhhaaa - what did I change? Added the run number and fixed coding conventions ;-)
[u/mrichter/AliRoot.git] / TOF / AliTOFDigitizer.h
CommitLineData
8e72349e 1#ifndef ALITOFDIGITIZER_H
2#define ALITOFDIGITIZER_H
0e46b9ae 3
8e72349e 4/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
68861244 5 * See cxx source for full Copyright notice */
6
0e46b9ae 7//_______________________________________________________________________________//
8// //
9// Task Class for making Digits in TOF //
10// Class performs digitization of Summable digits (in the TOF case this is just //
11// sum of contributions of all signals into a given pad). //
12// In addition it performs mixing of summable digits from different events. //
13// //
14// -- Author: Fabrizio Pierella (Bologna University)
15// //
16//_______________________________________________________________________________//
17
18/* $Id$ */
68861244 19
8e72349e 20#include "AliDigitizer.h"
68861244 21
8e72349e 22class AliRunDigitizer;
23class AliTOFHitMap;
24class AliTOFSDigit;
0e46b9ae 25class AliTOFcalib;
26class AliTOFGeometry;
68861244 27
8e72349e 28class AliTOFDigitizer : public AliDigitizer {
29 public:
68861244 30
8e72349e 31 AliTOFDigitizer();
32 AliTOFDigitizer(AliRunDigitizer * manager);
33 virtual ~AliTOFDigitizer();
7aeeaf38 34 AliTOFDigitizer(const AliTOFDigitizer &source); // copy constructor
35 AliTOFDigitizer& operator=(const AliTOFDigitizer &source); // ass. op.
8e72349e 36
37 // Do the main work
38 void Exec(Option_t* option=0) ;
39 TClonesArray* SDigits() const {return fSDigitsArray;}
340693af 40 void ReadSDigit(Int_t inputFile);
55cb22a1 41 void CreateDigits();
340693af 42 void InitDecalibration(AliTOFcalib *calib) const;
55cb22a1 43 void DecalibrateTOFSignal(AliTOFcalib *calib);
8e72349e 44
45 private:
46 void CollectSDigit(AliTOFSDigit * sdigit) ;
7aeeaf38 47 Int_t PutNoise(Int_t /*charge*/)const {return 0;}; // not yet
48 // implemented
49 // due to the low
50 // noise expected
51 // level
52 AliTOFGeometry *fGeom; // Pointer to the TOF geometry
53 TClonesArray *fDigits; //! array with digits
54 TClonesArray *fSDigitsArray; //! List of summable digits; used as a
55 //container for all sdigits to be
56 //merged
57 AliTOFHitMap *fhitMap ; //! hit map used to perform the merging
8e72349e 58
59 ClassDef(AliTOFDigitizer,0) // TOF/Merging/Digitization
60};
61#endif