1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 Revision 1.3 2005/11/17 17:47:34 byordano
19 TList changed to TObjArray
21 Revision 1.2 2005/11/17 14:43:22 byordano
24 Revision 1.1.1.1 2005/10/28 07:33:58 hristov
25 Initial import as subdirectory in AliRoot
27 Revision 1.1.1.1 2005/09/12 22:11:40 byordano
30 Revision 1.2 2005/08/29 21:15:47 byordano
36 // This class is the CDBPreProcessor interface,
37 // supposed to be implemented by any detector
38 // interested in immediate processing of data
39 // which is retrieved from DCS.
40 // For every particular run set of aliases and
41 // their corespoding value sets are returned.
43 // 1) virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
44 // This method is called at the begining of data retrieval.
46 // startTime: when the run started
47 // endTime: when the run finished
49 // 2) virtual void Process(const char* alias, TObjArray& valueSet,
52 // This method is called for every particular alias which the detector
53 // is registered in the configuration (see AliShuttleConfig).
55 // valueSet: collection of AliDCSValue
56 // hasError: flag indicating if some error has happened during
57 // the retrieaval of the data for this alias.
59 // 3) virtual void Finalize()
60 // This method is called after the last alias has been processed.
64 #include "AliCDBPreProcessor.h"
66 #include "AliShuttle.h"
69 ClassImp(AliCDBPreProcessor)
71 AliCDBPreProcessor::AliCDBPreProcessor(const char* detector):
74 SetTitle(Form("AliCDBPreProcessor for %s subdetector.", detector));
77 AliCDBPreProcessor::~AliCDBPreProcessor() {
81 Int_t AliCDBPreProcessor::GetRun() const {
83 // Returns current run number.
87 AliError(Form("Not registered AliCDBPreProcessor: %s",
92 return fShuttle->GetCurrentRun();
95 UInt_t AliCDBPreProcessor::GetStartTime() const {
97 // Returns currernt run start time.
100 AliError(Form("Not registered AliCDBPreProcessor: %s",
105 return fShuttle->GetCurrentStartTime();
108 UInt_t AliCDBPreProcessor::GetEndTime() const {
110 // Returns current run end time.
113 AliError(Form("Not registered AliCDBPreProcessor: %s",
118 return fShuttle->GetCurrentEndTime();
121 Bool_t AliCDBPreProcessor::Store(const char* specType, TObject* object,
122 AliCDBMetaData* metaData)
125 // Store object and metaData into the default AliCDBStorage.
126 // Storage path: <detector>/DCS/<specType>
130 AliError(Form("Not registered AliCDBPreProcessor: %s",
135 return fShuttle->Store(GetName(), specType, object, metaData);