From fceb731d15b8e08f1d47304982ff63112d65d00b Mon Sep 17 00:00:00 2001 From: rpreghen Date: Tue, 16 Jun 2009 12:23:20 +0000 Subject: [PATCH] TOF preprocessor modified in order to use TOFFEElight data structure instead of TOFFEE (inside ProcessFEEData routine). The test macro TOFPreprocessor.C was modified accordingly. A macro to check the output of the TOF preprocessor (Status) has been added (CheckCalibStatus.C) --- TOF/AliTOFPreprocessor.cxx | 8 ++++---- TOF/CheckCalibStatus.C | 14 ++++++++++++++ TOF/TOFPreprocessor.C | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 TOF/CheckCalibStatus.C diff --git a/TOF/AliTOFPreprocessor.cxx b/TOF/AliTOFPreprocessor.cxx index a846db62e84..2b841a23c71 100644 --- a/TOF/AliTOFPreprocessor.cxx +++ b/TOF/AliTOFPreprocessor.cxx @@ -990,14 +990,14 @@ UInt_t AliTOFPreprocessor::ProcessFEEData() /* load current TOF FEE config from DCS FXS, parse, * fill current FEE histogram and set FEE status */ - const char * nameFile = GetFile(kDCS,"TofFeeMap",""); + const char * nameFile = GetFile(kDCS,"TofFeeLightMap",""); AliInfo(Form("nameFile = %s",nameFile)); if (nameFile == NULL) { return 15; } - feeReader.LoadFEEConfig(nameFile); - Int_t parseFee = feeReader.ParseFEEConfig(); - AliDebug(2,Form("%i enabled channels found in FEE configuration",parseFee)); + feeReader.LoadFEElightConfig(nameFile); + Int_t parseFee = feeReader.ParseFEElightConfig(); + AliDebug(2,Form("%i enabled channels found in FEElight configuration",parseFee)); /* load stored TOF FEE from OCDB and compare it with current FEE. * if stored FEE is different from current FEE set update flag. * if there is no stored FEE in OCDB set update flag */ diff --git a/TOF/CheckCalibStatus.C b/TOF/CheckCalibStatus.C new file mode 100644 index 00000000000..5ea86168ccb --- /dev/null +++ b/TOF/CheckCalibStatus.C @@ -0,0 +1,14 @@ +CheckCalibStatus(const Char_t *fileName) +{ + + TFile *file = TFile::Open(fileName); + AliCDBEntry *cdbe = (AliCDBEntry *)file->Get("AliCDBEntry"); + AliTOFChannelOnlineStatusArray *array = (AliTOFChannelOnlineStatusArray *)cdbe->GetObject(); + + TH1F *h = new TH1F("h", "Channel status;index;status", array->GetSize(), 0., array->GetSize();); + for (Int_t i = 0; i < array->GetSize(); i++) + h->SetBinContent(i + 1, array->GetStatus(i)); + + h->Draw(); + +} diff --git a/TOF/TOFPreprocessor.C b/TOF/TOFPreprocessor.C index 64679b5fcfd..bbd4490a460 100644 --- a/TOF/TOFPreprocessor.C +++ b/TOF/TOFPreprocessor.C @@ -37,7 +37,7 @@ void TOFPreprocessor(Char_t * RunType="PHYSICS") // processing files. for the time being, the files are local. shuttle->AddInputFile(AliTestShuttle::kDAQ, "TOF", "DELAYS", "MON", "$ALICE_ROOT/TOF/ShuttleInput/Total.root"); shuttle->AddInputFile(AliTestShuttle::kDAQ, "TOF", "RUNLevel", "MON", "$ALICE_ROOT/TOF/ShuttleInput/Partial.root"); - shuttle->AddInputFile(AliTestShuttle::kDCS, "TOF", "TofFeeMap", "", "$ALICE_ROOT/TOF/ShuttleInput/TOFFEE.20090401.182503.67577"); + shuttle->AddInputFile(AliTestShuttle::kDCS, "TOF", "TofFeeLightMap", "", "$ALICE_ROOT/TOF/ShuttleInput/TOFFEElight.20090616.102605.8000"); TString filename; TString LDCname; -- 2.43.5