ALIROOT-5420 Changes for CDH v3
[u/mrichter/AliRoot.git] / MUON / AliMUONPedestalSubprocessor.h
CommitLineData
ea199e33 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///
78649106 13// Author Laurent Aphecetche
ea199e33 14
15#ifndef ALIMUONVSUBPROCESSOR_H
16# include "AliMUONVSubprocessor.h"
17#endif
18
8d8e920c 19class AliMUONVStore;
ea199e33 20class TObjArray;
21
22class AliMUONPedestalSubprocessor : public AliMUONVSubprocessor
23{
24public:
25 AliMUONPedestalSubprocessor(AliMUONPreprocessor* master);
26 virtual ~AliMUONPedestalSubprocessor();
27
6c870207 28 Bool_t Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
ea199e33 29 UInt_t Process(TMap* dcsAliasMap);
30 void Print(Option_t* opt="") const;
31
32private:
f26f75cd 33 /// Not implemented
ea199e33 34 AliMUONPedestalSubprocessor(const AliMUONPedestalSubprocessor&);
f26f75cd 35 /// Not implemented
ea199e33 36 AliMUONPedestalSubprocessor& operator=(const AliMUONPedestalSubprocessor&);
37
6c870207 38 Int_t ReadPedestalFile(const char* filename);
39 Int_t ReadConfigFile(const char* filename);
f26f75cd 40
042cd64e 41 Bool_t HasConfigChanged(const AliMUONVStore& newConfig) const;
42
ea199e33 43private:
8d8e920c 44 AliMUONVStore* fPedestals; //!< Pedestals for the MUON TRK
6c870207 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
7bdeb56d 47 Bool_t fTooFewEvents; //!< whether the current run was a failed ped run, basically
ea199e33 48
7bdeb56d 49 ClassDef(AliMUONPedestalSubprocessor,3) // A shuttle preprocessor for MUON TRK pedestals
ea199e33 50};
51
52#endif