]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONDigitizerV3.h
Cache the InversePitch instead of computing it each time.
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitizerV3.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice                               */
3
4 // $Id$
5
6 /// \ingroup sim
7 /// \class AliMUONDigitizerV3
8 /// \brief Digitizer (from SDigit to Digit), performing digit de-calibration.
9 ///
10 /// \author Laurent Aphecetche
11
12 #ifndef ALIMUONDIGITIZERV3_H
13 #define ALIMUONDIGITIZERV3_H
14
15 #ifndef ALIDIGITIZER_H
16 #include "AliDigitizer.h"
17 #endif
18
19 class AliMUONCalibrationData;
20 class AliMUONData;
21 class AliMUONDigit;
22 class TClonesArray;
23 class TString;
24
25 class AliMUONDigitizerV3 : public AliDigitizer
26 {
27 public:
28   enum ETriggerCodeVersion
29   {
30     kTriggerDecision=-1,
31     kTriggerElectronics
32   };
33   
34   AliMUONDigitizerV3(AliRunDigitizer* manager=0, 
35                      ETriggerCodeVersion=kTriggerDecision);
36   virtual ~AliMUONDigitizerV3();
37
38   virtual void Exec(Option_t* opt="");
39   
40   virtual Bool_t Init();
41
42 private:
43     
44   void AddOrUpdateDigit(TClonesArray& array, 
45                         const AliMUONDigit& digit);
46     
47   void ApplyResponse();
48
49   void ApplyResponseToDigit(AliMUONDigit& digit);
50
51   Int_t FindDigitIndex(TClonesArray& array, const AliMUONDigit& digit);
52
53   AliMUONData* GetDataAccess(const TString& folderName);
54
55   Bool_t MergeDigits(const AliMUONDigit& src, AliMUONDigit& srcAndDest);
56
57   void MergeWithSDigits(AliMUONData& outputData, const AliMUONData& inputData, 
58                         Int_t mask);
59   
60 private:
61   Bool_t fIsInitialized; // are we initialized ?
62   AliMUONData* fOutputData; //! pointer to access digits
63   AliMUONCalibrationData* fCalibrationData; //! pointer to access calib parameters
64   TTask* fTriggerProcessor; // pointer to the trigger part of the job
65   ETriggerCodeVersion fTriggerCodeVersion; // which version of trigger job
66   
67   ClassDef(AliMUONDigitizerV3,2) // MUON Digitizer V3-2
68 };
69
70 #endif