]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONGainEventGenerator.h
Fixes for #86059: Install data when ALICE_ROOT does not point to source (Christian)
[u/mrichter/AliRoot.git] / MUON / AliMUONGainEventGenerator.h
1 #ifndef ALIMUONGAINEVENTGENERATOR_H
2 #define ALIMUONGAINEVENTGENERATOR_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 sim
10 /// \class AliMUONGainEventGenerator
11 /// \brief Generate gain-calibration-like files
12 /// 
13 // Author Laurent Aphecetche
14
15 #ifndef ROOT_TTask
16 #  include "TTask.h"
17 #endif
18 #ifndef ROOT_TString
19 #  include "TString.h"
20 #endif
21
22 class AliMUONCalibrationData;
23 class AliMUONVStore;
24
25 class AliMUONGainEventGenerator : public TTask
26 {
27 public:
28   AliMUONGainEventGenerator(Int_t sourceGainRunNumber,                          
29                             Int_t sourcePedRunNumber,
30                             Int_t nEventsPerFile, 
31                             const char* dateBaseFileName);
32   virtual ~AliMUONGainEventGenerator();
33   
34   virtual void Exec(Option_t* option);
35   
36 private:
37     /// not implemented
38     AliMUONGainEventGenerator(const AliMUONGainEventGenerator& rhs);
39   /// not implemented
40   AliMUONGainEventGenerator& operator=(const AliMUONGainEventGenerator& rhs);
41   
42   void GeneratePedestals(Int_t runNumber, Float_t injection);
43   void WriteToCDB(TObject* object, Int_t runNumber);
44
45 private:
46   Int_t fNofEventsPerFile; //!< number of events to generate per file
47   Int_t fSourcePedestalRunNumber; //!< run number of pedestal to be used
48   TString fDateBaseFileName; //!< base file name of the output file
49   AliMUONVStore* fSourceGains; //!< the gains used to generate the files
50   AliMUONVStore* fSourcePedestals; //!< the pedestals used to generate the fiels
51   
52   ClassDef(AliMUONGainEventGenerator,1) // Generate gain-like files
53 };
54
55 #endif