3 //**************************************************************************
4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
7 //* Primary Authors: Gaute Ovrebekk *
8 //* for The ALICE HLT Project. *
10 //* Permission to use, copy, modify and distribute this software and its *
11 //* documentation strictly for non-commercial purposes is hereby granted *
12 //* without fee, provided that the above copyright notice appears in all *
13 //* copies and that both the copyright notice and this permission notice *
14 //* appear in the supporting documentation. The authors make no claims *
15 //* about the suitability of this software for any purpose. It is *
16 //* provided "as is" without express or implied warranty. *
17 //**************************************************************************
19 /** @file AliHLTPredictionProcessorHLT.cxx
20 @author Gaute Ovrebekk
25 #include "AliHLTPredictionProcessorHLT.h"
27 #include <AliCDBMetaData.h>
28 #include <AliCDBEntry.h>
31 #include <TObjArray.h>
32 #include <AliDCSValue.h>
35 ClassImp(AliHLTPredictionProcessorHLT)
37 AliHLTPredictionProcessorHLT::AliHLTPredictionProcessorHLT(
38 const char* detector, AliHLTPendolino* pendolino) :
39 AliHLTPredictionProcessorInterface(detector, pendolino),
40 fPredict(true), fRun(0), fStartTime(0), fEndTime(0) {
41 // C-tor for AliHLTPredictionProcessorHLT
49 AliHLTPredictionProcessorHLT::~AliHLTPredictionProcessorHLT() {
50 // D-tor for AliHLTPredictionProcessorHLT
54 UInt_t AliHLTPredictionProcessorHLT::makePrediction(Bool_t doPrediction) {
55 // switch for prediction making
56 Log("Prediction switched on");
57 fPredict = doPrediction;
62 void AliHLTPredictionProcessorHLT::Initialize(Int_t run, UInt_t startTime,
64 // initializes AliHLTPredictionProcessorHLT
66 fStartTime = startTime;
69 TString msg("Initialized HLT PredictProc. Run: ");
71 msg += ", start time: ";
73 msg += ", end time: ";
79 Log("HLT PredictProc has prediction switched ON.");
81 Log("Prediction is switched OFF.");
86 UInt_t AliHLTPredictionProcessorHLT::Process(TMap* dcsAliasMap) {
87 // processes the DCS value map
89 if (!dcsAliasMap) return 9;
90 if (dcsAliasMap->GetEntries() == 0 ) return 9;
93 // there is currently no object to create
98 TMap* AliHLTPredictionProcessorHLT::produceTestData(TString /*aliasName*/) {
99 // produces test data for AliHLTPredictionProcessorHLT
102 // here has to come real dummy data :-)
103 resultMap = new TMap();