/*
$Log$
+Revision 1.1 2007/11/24 18:36:27 zampolli
+TOF Preprocessor for FDR
+
*/
#include <Riostream.h>
#include <TFile.h>
#include <TH1.h>
-#include <TH1F.h>
-#include <TH1S.h>
-#include <TH2S.h>
#include <TMath.h>
#include <TObjArray.h>
#include <TObjString.h>
#include "AliCDBMetaData.h"
#include "AliLog.h"
-#include "AliTOFChannelOnline.h"
#include "AliTOFDataDCS.h"
#include "AliTOFGeometry.h"
#include "AliTOFPreprocessorFDR.h"
#include "AliTOFFormatDCS.h"
#include "AliDCSValue.h"
-class TF1;
-class AliDCSValue;
-class AliTOFGeometry;
-
// TOF preprocessor class.
// It takes data from DCS and passes them to the class AliTOFDataDCS, which
// processes them. The result is then written to the CDB.
AliTOFPreprocessorFDR::AliTOFPreprocessorFDR(AliShuttleInterface* shuttle) :
AliPreprocessor("TOF", shuttle),
- fData(0),
fStoreRefData(kTRUE)
{
// constructor
AliTOFPreprocessorFDR::~AliTOFPreprocessorFDR()
{
// destructor
- if (fData){
- delete fData;
- fData = 0;
- }
}
//______________________________________________________________________________
AliPreprocessor::Initialize(run, startTime, endTime);
- AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", run,
+ Log(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", run,
TTimeStamp(startTime).AsString(),
TTimeStamp(endTime).AsString()));
- fData = new AliTOFDataDCS(fRun, fStartTime, fEndTime);
}
//_____________________________________________________________________________
TObjArray *aliasArr = (TObjArray*) aliasMap->GetValue(aliasDP[i].Data());
if(!aliasArr){
- AliError(Form("Alias %s not found!", aliasDP[i].Data()));
+ Log(Form("Alias %s not found!", aliasDP[i].Data()));
return kFALSE;
}
if(aliasArr->GetEntries()<3){
- AliError(Form("Alias %s has just %d entries!",
+ Log(Form("Alias %s has just %d entries!",
aliasDP[i].Data(),aliasArr->GetEntries()));
continue;
}
metaDataDCS.SetBeamPeriod(0);
metaDataDCS.SetResponsible("Chiara Zampolli");
metaDataDCS.SetComment("This preprocessor fills an AliTOFDataDCS object.");
- AliInfo("Storing DCS Data");
+ Log("Storing DCS Data");
resultDCSStore = StoreReferenceData("Calib","DCSData",array, &metaDataDCS);
if (!resultDCSStore){
Log("Some problems occurred while storing DCS data results in Reference Data, TOF exiting from Shuttle");
// in reference data
}
- AliInfo("Storing DCS Data in OCDB");
+ Log("Storing DCS Data in OCDB");
resultDCSMap = Store("Calib","DCSData",array, &metaDataDCS);
if (!resultDCSStore){
Log("Some problems occurred while storing DCS data results in OCDB, TOF exiting from Shuttle");