]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPedestalEventGenerator.h
- Reshape the architecture of the Kalman tracking to make it more modular
[u/mrichter/AliRoot.git] / MUON / AliMUONPedestalEventGenerator.h
CommitLineData
ea199e33 1#ifndef ALIMUONPEDESTALEVENTGENERATOR_H
2#define ALIMUONPEDESTALEVENTGENERATOR_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \ingroup shuttle
10/// \class AliMUONPedestalEventGenerator
11/// \brief Generate pedestal events (only for tracker).
12///
78649106 13// Author Laurent Aphecetche
ea199e33 14
15#ifndef ROOT_TTask
16# include "TTask.h"
17#endif
18#ifndef ROOT_TString
19# include "TString.h"
20#endif
21
22class AliMUONCalibrationData;
ea199e33 23class TList;
24class AliRunLoader;
42825ed9 25class AliMUONVDigitStore;
26class AliLoader;
27class AliMUONVStore;
28class AliMUONStopwatchGroup;
29class AliMUONRawWriter;
ea199e33 30
31class AliMUONPedestalEventGenerator : public TTask
32{
33public:
34 AliMUONPedestalEventGenerator(Int_t runNumber, Int_t nevents, const char* dateFileName);
35 virtual ~AliMUONPedestalEventGenerator();
36
37 void Exec(Option_t* option);
38
71a2d3aa 39 /// Set option whether to generate DDL ascii files or not
ea199e33 40 void MakeDDL(Bool_t value) { fMakeDDL = value; }
41
42private:
71a2d3aa 43 /// Not implemented
ea199e33 44 AliMUONPedestalEventGenerator(const AliMUONPedestalEventGenerator&);
71a2d3aa 45 /// Not implemented
ea199e33 46 AliMUONPedestalEventGenerator& operator=(const AliMUONPedestalEventGenerator&);
71a2d3aa 47
ea199e33 48 Bool_t ConvertRawFilesToDate();
42825ed9 49 AliMUONVDigitStore* DigitStore();
50 void GenerateDigits(AliMUONVDigitStore& digitStore);
ea199e33 51 AliRunLoader* LoadRun(const char* mode);
42825ed9 52 void Digits2Raw(Int_t event);
ea199e33 53
54private:
71a2d3aa 55 AliMUONCalibrationData* fCalibrationData; //!< access to pedestal CDB
56 TString fDateFileName; //!< basefilename of the DATE output file
57 TString fGAliceFileName; //!< absolute path to galice.root file
58 Bool_t fMakeDDL; //!< whether to generate DDL ascii files or not
42825ed9 59 AliLoader* fLoader; //!< to access trees
60 AliMUONVStore* fPedestals; //!< pedestals
61 AliMUONStopwatchGroup* fTimers; //!< to time some methods
62 AliMUONVDigitStore* fDigitStore; //!< digit container
63 AliMUONRawWriter* fRawWriter; //!< to convert digits to raw data
71a2d3aa 64 static Int_t fgCounter; //!< counter
ea199e33 65
42825ed9 66 ClassDef(AliMUONPedestalEventGenerator,2) // Random generator of pedestal events for MUON TRK
ea199e33 67};
68
69#endif