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 **************************************************************************/
17 // Prototype of ZDC Preprocessor
20 #include "TestZDCPreprocessor.h"
22 #include "AliCDBMetaData.h"
23 #include "AliDCSValue.h"
25 #include "AliShuttleInterface.h"
27 #include <TTimeStamp.h>
28 #include <TObjString.h>
32 ClassImp(TestZDCPreprocessor)
34 //________________________________________________________________________________________
35 TestZDCPreprocessor::TestZDCPreprocessor():
36 AliPreprocessor("ZDC",0)
38 // default constructor - Don't use this!
42 //________________________________________________________________________________________
43 TestZDCPreprocessor::TestZDCPreprocessor(AliShuttleInterface* shuttle):
44 AliPreprocessor("ZDC",shuttle)
46 // constructor - shuttle must be instantiated!
50 //________________________________________________________________________________________
51 void TestZDCPreprocessor::Initialize(Int_t run, UInt_t startTime,
54 // Initialize preprocessor
56 AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", run,
57 TTimeStamp(startTime).AsString(),
58 TTimeStamp(endTime).AsString()));
61 fStartTime = startTime;
63 AliInfo("This preprocessor is to test the GetRunParameter function.");
66 //________________________________________________________________________________________
67 UInt_t TestZDCPreprocessor::Process(TMap* /*valueMap*/)
69 // process data retrieved by the Shuttle
73 const char* dataRate = GetRunParameter("averageDataRate");
75 Log(Form("Average data rate for run %d: %s",fRun, dataRate));
77 Log(Form("Average data rate not put in logbook!"));