1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONDigitizerV3
8 /// \brief Digitizer (from SDigit to Digit), performing digit de-calibration.
10 // Author Laurent Aphecetche
12 #ifndef ALIMUONDIGITIZERV3_H
13 #define ALIMUONDIGITIZERV3_H
15 #ifndef ALIDIGITIZER_H
16 #include "AliDigitizer.h"
19 class AliMUONCalibrationData;
25 class AliMUONVDigitStore;
27 class AliMUONVTriggerStore;
28 class AliMUONTriggerElectronics;
29 class AliMUONVCalibParam;
31 class AliMUONDigitizerV3 : public AliDigitizer
34 AliMUONDigitizerV3(AliRunDigitizer* manager=0,
35 Int_t generateNoisyDigits=1);
36 virtual ~AliMUONDigitizerV3();
38 virtual void Exec(Option_t* opt="");
40 virtual Bool_t Init();
42 static Int_t DecalibrateTrackerDigit(const AliMUONVCalibParam& pedestals,
43 const AliMUONVCalibParam& gains,
46 Bool_t addNoise=kFALSE);
50 AliMUONDigitizerV3(const AliMUONDigitizerV3& other);
52 AliMUONDigitizerV3& operator=(const AliMUONDigitizerV3& other);
54 void ApplyResponse(const AliMUONVDigitStore& store, AliMUONVDigitStore& filteredStore);
56 void ApplyResponseToTrackerDigit(AliMUONVDigit& digit, Bool_t addNoise);
58 AliLoader* GetLoader(const TString& foldername);
62 void GenerateNoisyDigits(AliMUONVDigitStore& digitStore);
63 void GenerateNoisyDigitsForOneCathode(AliMUONVDigitStore& digitStore,
64 Int_t detElemId, Int_t cathode);
65 void GenerateNoisyDigitsForTrigger(AliMUONVDigitStore& digitStore);
67 void MergeWithSDigits(AliMUONVDigitStore*& digitStore,
68 const AliMUONVDigitStore& input,
72 Bool_t fIsInitialized; ///< are we initialized ?
73 AliMUONCalibrationData* fCalibrationData; //!< pointer to access calib parameters
74 AliMUONTriggerElectronics* fTriggerProcessor; ///< pointer to the trigger part of the job
75 TF1* fNoiseFunction; //!< function to randomly get signal above n*sigma_ped
76 TF1* fNoiseFunctionTrig; //!< function to get noise disribution on trig. chambers
77 Int_t fGenerateNoisyDigits; //!< whether or not we should generate noise-only digits for tracker (1) and trigger (2)
78 static const Double_t fgkNSigmas; ///< \brief number of sigmas above ped to use
79 /// for noise-only digit generation and zero-suppression
80 AliMUONLogger* fLogger; //!< to keep track of messages
81 AliMUONVTriggerStore* fTriggerStore; //!< trigger objects
82 AliMUONVDigitStore* fDigitStore; //!< temporary digits
83 AliMUONVDigitStore* fOutputDigitStore; //!< digits we'll output to disk
85 ClassDef(AliMUONDigitizerV3,6) // MUON Digitizer V3-5