]> git.uio.no Git - u/mrichter/AliRoot.git/blob - SHUTTLE/test/TestITSPreProcessor.cxx
VZERO v6, possibility to set the run type and seed from the environment variables...
[u/mrichter/AliRoot.git] / SHUTTLE / test / TestITSPreProcessor.cxx
1 #include "TestITSPreProcessor.h"
2
3 #include "AliCDBMetaData.h"
4 #include "AliDCSValue.h"
5 #include "AliLog.h"
6
7 #include <TTimeStamp.h>
8
9 ClassImp(TestITSPreProcessor)
10
11 TestITSPreProcessor::TestITSPreProcessor():
12         AliCDBPreProcessor("ITS")
13 {
14
15 }
16
17 void TestITSPreProcessor::Initialize(Int_t run, UInt_t startTime, 
18         UInt_t endTime) 
19 {
20
21         AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", run, 
22                 TTimeStamp(startTime).AsString(),
23                 TTimeStamp(endTime).AsString()));
24 }
25
26 void TestITSPreProcessor::Finalize() {
27         AliInfo("Finalizing...");
28 }
29
30 void TestITSPreProcessor::Process(const char* alias, TObjArray& valueSet, 
31         Bool_t hasError)
32 {
33         AliInfo(Form("Alias %s, hasError: %d", alias, hasError));       
34
35         TString output;
36         
37         TIter iter(&valueSet);
38         AliDCSValue* aValue;
39         while ((aValue = (AliDCSValue*) iter.Next())) {
40                 output += aValue->ToString();
41                 output += '\n';
42         }       
43         output += '\n';
44
45         AliInfo(output);
46
47         AliCDBMetaData metaData;
48         metaData.SetComment("This is a test!");
49         
50         Store(alias, &valueSet, &metaData);     
51 }
52