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