]>
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 | ||
4ce497c4 | 19 | #ifndef ROOT_TStopwatch |
20 | # include "TStopwatch.h" | |
21 | #endif | |
22 | ||
92aeef15 | 23 | class AliMUONCalibrationData; |
40e382ae | 24 | class AliMUONVDigit; |
ad26d4f6 | 25 | class AliMUONLogger; |
4ce497c4 | 26 | class AliMUONTriggerEfficiencyCells; |
92aeef15 | 27 | class TClonesArray; |
4ce497c4 | 28 | class TF1; |
92aeef15 | 29 | class TString; |
40e382ae | 30 | class AliMUONVDigitStore; |
31 | class AliLoader; | |
32 | class AliMUONVTriggerStore; | |
33 | class AliMUONTriggerElectronics; | |
92aeef15 | 34 | |
35 | class AliMUONDigitizerV3 : public AliDigitizer | |
36 | { | |
37 | public: | |
92aeef15 | 38 | AliMUONDigitizerV3(AliRunDigitizer* manager=0, |
8c0b5e70 | 39 | Int_t generateNoisyDigits=1); |
92aeef15 | 40 | virtual ~AliMUONDigitizerV3(); |
41 | ||
42 | virtual void Exec(Option_t* opt=""); | |
43 | ||
44 | virtual Bool_t Init(); | |
45 | ||
46 | private: | |
71a2d3aa | 47 | /// Not implemented |
4ce497c4 | 48 | AliMUONDigitizerV3(const AliMUONDigitizerV3& other); |
71a2d3aa | 49 | /// Not implemented |
4ce497c4 | 50 | AliMUONDigitizerV3& operator=(const AliMUONDigitizerV3& other); |
92aeef15 | 51 | |
40e382ae | 52 | void ApplyResponse(const AliMUONVDigitStore& store, AliMUONVDigitStore& filteredStore); |
92aeef15 | 53 | |
40e382ae | 54 | void ApplyResponseToTrackerDigit(AliMUONVDigit& digit, Bool_t addNoise); |
55 | void ApplyResponseToTriggerDigit(const AliMUONVDigitStore& digitStore, AliMUONVDigit& digit); | |
92aeef15 | 56 | |
40e382ae | 57 | AliLoader* GetLoader(const TString& foldername); |
4ce497c4 | 58 | |
40e382ae | 59 | private: |
92aeef15 | 60 | |
40e382ae | 61 | AliMUONVDigit* FindCorrespondingDigit(const AliMUONVDigitStore& digitStore, |
62 | AliMUONVDigit& digit) const; | |
92aeef15 | 63 | |
40e382ae | 64 | void GenerateNoisyDigits(AliMUONVDigitStore& digitStore); |
65 | void GenerateNoisyDigitsForOneCathode(AliMUONVDigitStore& digitStore, | |
66 | Int_t detElemId, Int_t cathode); | |
8c0b5e70 | 67 | void GenerateNoisyDigitsForTrigger(AliMUONVDigitStore& digitStore); |
92aeef15 | 68 | |
40e382ae | 69 | void MergeWithSDigits(AliMUONVDigitStore*& digitStore, |
70 | const AliMUONVDigitStore& input, | |
05314992 | 71 | Int_t mask); |
92aeef15 | 72 | |
73 | private: | |
829425a5 | 74 | Bool_t fIsInitialized; ///< are we initialized ? |
829425a5 | 75 | AliMUONCalibrationData* fCalibrationData; //!< pointer to access calib parameters |
40e382ae | 76 | AliMUONTriggerElectronics* fTriggerProcessor; ///< pointer to the trigger part of the job |
829425a5 | 77 | AliMUONTriggerEfficiencyCells* fTriggerEfficiency; ///< trigger efficiency map |
829425a5 | 78 | TStopwatch fGenerateNoisyDigitsTimer; //!< counting time spent in GenerateNoisyDigits() |
79 | TStopwatch fExecTimer; //!< couting time spent in Exec() | |
80 | TF1* fNoiseFunction; //!< function to randomly get signal above n*sigma_ped | |
8c0b5e70 | 81 | TF1* fNoiseFunctionTrig; //!< function to get noise disribution on trig. chambers |
82 | Int_t fGenerateNoisyDigits; //!< whether or not we should generate noise-only digits for tracker (1) and trigger (2) | |
829425a5 | 83 | static const Double_t fgkNSigmas; ///< \brief number of sigmas above ped to use |
84 | /// for noise-only digit generation and zero-suppression | |
ba26b670 | 85 | AliMUONLogger* fLogger; //!< to keep track of messages |
40e382ae | 86 | AliMUONVTriggerStore* fTriggerStore; //!< trigger objects |
87 | AliMUONVDigitStore* fDigitStore; //!< temporary digits | |
88 | AliMUONVDigitStore* fOutputDigitStore; //!< digits we'll output to disk | |
ad26d4f6 | 89 | |
40e382ae | 90 | ClassDef(AliMUONDigitizerV3,5) // MUON Digitizer V3-5 |
92aeef15 | 91 | }; |
92 | ||
93 | #endif |