1 #ifndef ALIMUONGAINEVENTGENERATOR_H
2 #define ALIMUONGAINEVENTGENERATOR_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONGainEventGenerator
11 /// \brief Generate gain-calibration-like files
13 // Author Laurent Aphecetche
22 class AliMUONCalibrationData;
25 class AliMUONGainEventGenerator : public TTask
28 AliMUONGainEventGenerator(Int_t sourceGainRunNumber,
29 Int_t sourcePedRunNumber,
31 const char* dateBaseFileName);
32 virtual ~AliMUONGainEventGenerator();
34 virtual void Exec(Option_t* option);
38 AliMUONGainEventGenerator(const AliMUONGainEventGenerator& rhs);
40 AliMUONGainEventGenerator& operator=(const AliMUONGainEventGenerator& rhs);
42 void GeneratePedestals(Int_t runNumber, Float_t injection);
43 void WriteToCDB(TObject* object, Int_t runNumber);
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
52 ClassDef(AliMUONGainEventGenerator,1) // Generate gain-like files