Line data Source code
1 : #ifndef ALIMUONPEDESTALSUBPROCESSOR_H
2 : #define ALIMUONPEDESTALSUBPROCESSOR_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 AliMUONPedestalSubprocessor
11 : /// \brief Implementation of AliMUONVSubprocessor for MUON TRK pedestals
12 : ///
13 : // Author Laurent Aphecetche
14 :
15 : #ifndef ALIMUONVSUBPROCESSOR_H
16 : # include "AliMUONVSubprocessor.h"
17 : #endif
18 :
19 : class AliMUONVStore;
20 : class TObjArray;
21 :
22 : class AliMUONPedestalSubprocessor : public AliMUONVSubprocessor
23 : {
24 : public:
25 : AliMUONPedestalSubprocessor(AliMUONPreprocessor* master);
26 : virtual ~AliMUONPedestalSubprocessor();
27 :
28 : Bool_t Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
29 : UInt_t Process(TMap* dcsAliasMap);
30 : void Print(Option_t* opt="") const;
31 :
32 : private:
33 : /// Not implemented
34 : AliMUONPedestalSubprocessor(const AliMUONPedestalSubprocessor&);
35 : /// Not implemented
36 : AliMUONPedestalSubprocessor& operator=(const AliMUONPedestalSubprocessor&);
37 :
38 : Int_t ReadPedestalFile(const char* filename);
39 : Int_t ReadConfigFile(const char* filename);
40 :
41 : Bool_t HasConfigChanged(const AliMUONVStore& newConfig) const;
42 :
43 : private:
44 : AliMUONVStore* fPedestals; //!<! Pedestals for the MUON TRK
45 : AliMUONVStore* fConfig; //!<! Configuration (i.e. list of (buspatch,manu)) for the MUON TRK
46 : Bool_t fConfigChanged; //!<! flag to trigger the saving of the configuration
47 : Bool_t fTooFewEvents; //!<! whether the current run was a failed ped run, basically
48 :
49 12 : ClassDef(AliMUONPedestalSubprocessor,3) // A shuttle preprocessor for MUON TRK pedestals
50 : };
51 :
52 : #endif
|