1 #include "AliRICHPreprocessor.h" //header
3 #include <AliCDBMetaData.h>
4 #include <AliDCSValue.h>
6 #include "AliTestDataDCS.h"
8 #include <TTimeStamp.h>
11 // This class is an example for a simple preprocessor.
12 // It takes data from DCS and passes it to the class AliTestDataDCS, which
13 // reformats its. This class is then written to the CDB.
16 ClassImp(AliRICHPreprocessor)
18 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19 void AliRICHPreprocessor::Initialize(Int_t run, UInt_t startTime,UInt_t endTime)
22 AliPreprocessor::Initialize(run, startTime, endTime);
24 Log(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", run,
25 TTimeStamp(startTime).AsString(),
26 TTimeStamp(endTime).AsString()));
29 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30 UInt_t AliRICHPreprocessor::Process(TMap* pDcsMap)
33 if(!pDcsMap) return 0;
35 const char* fileName = GetFile(kDAQ, "PEDESTALS", "GDC");
36 if(fileName) AliInfo(Form("Got the file %s, now we can extract some values.", fileName));
38 TList* list = GetFileSources(kDAQ, "DRIFTVELOCITY");
40 AliInfo("The following sources produced files with the id DRIFTVELOCITY");
45 //Now we have to store the final CDB file
46 AliCDBMetaData metaData;
47 metaData.SetBeamPeriod(0);
48 metaData.SetResponsible("RICH expert");
49 metaData.SetComment("This data produced by AliRICHPreprocessor from simulated input.");
51 UInt_t result = Store(pTempFreon, &metaData); //use AliPreprocessor::Store(), not allowed to use AliCDBManager directly