AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPreprocessor.h
Go to the documentation of this file.
1 #ifndef ALIMUONPREPROCESSOR_H
2 #define ALIMUONPREPROCESSOR_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 
13 // Author Laurent Aphecetche
14 
15 #ifndef ALI_PREPROCESSOR_H
16 # include "AliPreprocessor.h"
17 #endif
18 
20 class TObjArray;
21 
22 class AliMUONPreprocessor : public AliPreprocessor
23 {
24 public:
25  virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
26  virtual UInt_t Process(TMap* dcsAliasMap);
27  virtual void Print(Option_t* opt="") const;
28 
30  virtual Bool_t ProcessDCS() { return fProcessDCS; }
31 
33  void Log(const char* message) { AliPreprocessor::Log(message); }
34 
36  TList* GetFileSources(Int_t system, const char* id)
37  { return AliPreprocessor::GetFileSources(system,id); }
38 
40  Bool_t Store(const char* pathLevel2, const char* pathLevel3, TObject* object,
41  AliCDBMetaData* metaData,
42  Int_t validityStart = 0, Bool_t validityInfinite = kFALSE)
43  {
44  return AliPreprocessor::Store(pathLevel2,pathLevel3,object,metaData,
45  validityStart,validityInfinite);
46  }
47 
49  const char* GetRunParameter(const char* param)
50  {
51  return AliPreprocessor::GetRunParameter(param);
52  }
53 
55  const char* GetFile(Int_t system, const char* id, const char* source)
56  {
57  return AliPreprocessor::GetFile(system,id,source);
58  }
59 
61  AliCDBEntry* GetFromOCDB(const char* pathLevel2, const char* pathLevel3) {
62  return AliPreprocessor::GetFromOCDB(pathLevel2,pathLevel3);
63  }
64 
66  AliCDBEntry* GetGeometryFromOCDB()
67  {
68  return AliPreprocessor::GetGeometryFromOCDB();
69  }
70 
72  Bool_t IsValid() const { return fIsValid; }
73 
75  void Invalidate() { fIsValid = kFALSE; }
76 
78  Bool_t IsApplicable() { return fIsApplicable; }
79 
81  TString GetLogBookParam(const char* parname)
82  { return TString(AliPreprocessor::GetRunParameter(parname)); }
83 
84 protected:
85  AliMUONPreprocessor(const char* detName, AliShuttleInterface* shuttle);
86  virtual ~AliMUONPreprocessor();
87 
88  void Add(AliMUONVSubprocessor* subProcessor, Bool_t processDCS=kFALSE);
89  void ClearSubprocessors();
90 
91  Bool_t fIsValid;
92  Bool_t fIsApplicable;
93 
94 private:
99 
100  AliMUONVSubprocessor* Subprocessor(Int_t i) const;
101 
102 private:
103 
105  Bool_t fProcessDCS;
106 
107  ClassDef(AliMUONPreprocessor,4) // MUON Shuttle preprocessor
108 };
109 
110 #endif
Bool_t IsApplicable()
Whether we should do something or not.
AliCDBEntry * GetFromOCDB(const char *pathLevel2, const char *pathLevel3)
Publish AliPreprocessor::GetFromOCDB function.
virtual Bool_t ProcessDCS()
Return info whether the current subprocessor(s) needs DCS or not.
#define TObjArray
T * Store(TFile &file, Long64_t event)
AliCDBEntry * GetGeometryFromOCDB()
Publish AliPreprocessor::GetFromOCDB function.
Bool_t IsValid() const
Whether we can be used (e.g. whether we were properly initialized)
AliMUONVSubprocessor * Subprocessor(Int_t i) const
AliMUONPreprocessor & operator=(const AliMUONPreprocessor &rhs)
Not implemented.
virtual void Print(Option_t *opt="") const
Base class for a shuttle sub-task for MUON (either TRK or TRG)
TTimeStamp startTime(2009, 8, 7, 0, 0, 0)
const char * GetFile(Int_t system, const char *id, const char *source)
Publish AliPreprocessor::GetFile function.
AliMUONPreprocessor(const char *detName, AliShuttleInterface *shuttle)
void Add(AliMUONVSubprocessor *subProcessor, Bool_t processDCS=kFALSE)
virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
void Log(const char *message)
Publish AliPreprocessor::Log function.
Bool_t fIsValid
! whether we were correctly initialized
Bool_t fIsApplicable
! whether we have something to do
TList * GetFileSources(Int_t system, const char *id)
Publish AliPreprocessor::GetFileSources function.
Bool_t fProcessDCS
! whether the current subprocessor(s) needs DCS or not
Bool_t Store(const char *pathLevel2, const char *pathLevel3, TObject *object, AliCDBMetaData *metaData, Int_t validityStart=0, Bool_t validityInfinite=kFALSE)
Publish AliPreprocessor::Store function.
TObjArray * fSubprocessors
! sub processors to execute
TString GetLogBookParam(const char *parname)
Return log book parameter.
const char * GetRunParameter(const char *param)
Publish AliPreprocessor::GetRunParameter.
Shuttle preprocessor for MUON subsystems (TRK and TRG)
void Invalidate()
Mark as invalid.
virtual UInt_t Process(TMap *dcsAliasMap)