]>
Commit | Line | Data |
---|---|---|
92aeef15 | 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 | |
05314992 | 8 | /// \brief Digitizer (from SDigit to Digit), performing digit de-calibration. |
9 | /// | |
78649106 | 10 | // Author Laurent Aphecetche |
92aeef15 | 11 | |
12 | #ifndef ALIMUONDIGITIZERV3_H | |
13 | #define ALIMUONDIGITIZERV3_H | |
14 | ||
15 | #ifndef ALIDIGITIZER_H | |
16 | #include "AliDigitizer.h" | |
17 | #endif | |
18 | ||
19 | class AliMUONCalibrationData; | |
40e382ae | 20 | class AliMUONVDigit; |
ad26d4f6 | 21 | class AliMUONLogger; |
92aeef15 | 22 | class TClonesArray; |
4ce497c4 | 23 | class TF1; |
92aeef15 | 24 | class TString; |
40e382ae | 25 | class AliMUONVDigitStore; |
26 | class AliLoader; | |
27 | class AliMUONVTriggerStore; | |
28 | class AliMUONTriggerElectronics; | |
b74ca120 | 29 | class AliMUONVCalibParam; |
92aeef15 | 30 | |
31 | class AliMUONDigitizerV3 : public AliDigitizer | |
32 | { | |
33 | public: | |
92aeef15 | 34 | AliMUONDigitizerV3(AliRunDigitizer* manager=0, |
8c0b5e70 | 35 | Int_t generateNoisyDigits=1); |
92aeef15 | 36 | virtual ~AliMUONDigitizerV3(); |
37 | ||
38 | virtual void Exec(Option_t* opt=""); | |
39 | ||
40 | virtual Bool_t Init(); | |
41 | ||
b74ca120 | 42 | static Int_t DecalibrateTrackerDigit(const AliMUONVCalibParam& pedestals, |
43 | const AliMUONVCalibParam& gains, | |
44 | Int_t channel, | |
45 | Float_t charge, | |
ec9acc85 | 46 | Bool_t addNoise=kFALSE, |
47 | Bool_t noiseOnly=kFALSE); | |
b74ca120 | 48 | |
9ec6a948 | 49 | /// Set calibration data |
b89ac3d6 | 50 | void SetCalibrationData(AliMUONCalibrationData* calibrationData) |
92c23b09 | 51 | {fCalibrationData = calibrationData;} |
52 | ||
92aeef15 | 53 | private: |
71a2d3aa | 54 | /// Not implemented |
4ce497c4 | 55 | AliMUONDigitizerV3(const AliMUONDigitizerV3& other); |
71a2d3aa | 56 | /// Not implemented |
4ce497c4 | 57 | AliMUONDigitizerV3& operator=(const AliMUONDigitizerV3& other); |
92aeef15 | 58 | |
40e382ae | 59 | void ApplyResponse(const AliMUONVDigitStore& store, AliMUONVDigitStore& filteredStore); |
92aeef15 | 60 | |
40e382ae | 61 | void ApplyResponseToTrackerDigit(AliMUONVDigit& digit, Bool_t addNoise); |
92aeef15 | 62 | |
40e382ae | 63 | AliLoader* GetLoader(const TString& foldername); |
4ce497c4 | 64 | |
40e382ae | 65 | private: |
92aeef15 | 66 | |
40e382ae | 67 | void GenerateNoisyDigits(AliMUONVDigitStore& digitStore); |
68 | void GenerateNoisyDigitsForOneCathode(AliMUONVDigitStore& digitStore, | |
69 | Int_t detElemId, Int_t cathode); | |
8c0b5e70 | 70 | void GenerateNoisyDigitsForTrigger(AliMUONVDigitStore& digitStore); |
92aeef15 | 71 | |
40e382ae | 72 | void MergeWithSDigits(AliMUONVDigitStore*& digitStore, |
73 | const AliMUONVDigitStore& input, | |
05314992 | 74 | Int_t mask); |
92aeef15 | 75 | |
ec9acc85 | 76 | static TF1* NoiseFunction(); |
77 | ||
9ec6a948 | 78 | void CreateInputDigitStore(); |
79 | ||
92aeef15 | 80 | private: |
829425a5 | 81 | Bool_t fIsInitialized; ///< are we initialized ? |
829425a5 | 82 | AliMUONCalibrationData* fCalibrationData; //!< pointer to access calib parameters |
40e382ae | 83 | AliMUONTriggerElectronics* fTriggerProcessor; ///< pointer to the trigger part of the job |
8c0b5e70 | 84 | TF1* fNoiseFunctionTrig; //!< function to get noise disribution on trig. chambers |
85 | Int_t fGenerateNoisyDigits; //!< whether or not we should generate noise-only digits for tracker (1) and trigger (2) | |
829425a5 | 86 | static const Double_t fgkNSigmas; ///< \brief number of sigmas above ped to use |
87 | /// for noise-only digit generation and zero-suppression | |
ba26b670 | 88 | AliMUONLogger* fLogger; //!< to keep track of messages |
40e382ae | 89 | AliMUONVTriggerStore* fTriggerStore; //!< trigger objects |
90 | AliMUONVDigitStore* fDigitStore; //!< temporary digits | |
91 | AliMUONVDigitStore* fOutputDigitStore; //!< digits we'll output to disk | |
9ec6a948 | 92 | AliMUONVDigitStore* fInputDigitStore; //!< input digit store |
93 | ||
94 | ClassDef(AliMUONDigitizerV3,8) // MUON Digitizer V3-8 | |
92aeef15 | 95 | }; |
96 | ||
97 | #endif |