From e1b0253a82a9bbb308951b969f7a0ef0710f836c Mon Sep 17 00:00:00 2001 From: hdalsgaa Date: Fri, 28 Mar 2008 12:32:29 +0000 Subject: [PATCH] This script runs the gain DA given a runnumber and a file --- FMD/scripts/TestGainDA.C | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 FMD/scripts/TestGainDA.C diff --git a/FMD/scripts/TestGainDA.C b/FMD/scripts/TestGainDA.C new file mode 100644 index 00000000000..fd779368a63 --- /dev/null +++ b/FMD/scripts/TestGainDA.C @@ -0,0 +1,26 @@ +void TestGainDA(Char_t* fileName, Int_t runNumber){ + + //This script runs the gain DA using the class AliFMDGainDA + + gSystem->Load("libFMDutil"); + Bool_t old = kTRUE; + AliCDBManager* cdb = AliCDBManager::Instance(); + cdb->SetRun(runNumber); + cdb->SetDefaultStorage("local://$ALICE_ROOT"); + AliLog::SetModuleDebugLevel("FMD", 1); + AliFMDParameters::Instance()->Init(); + AliFMDParameters::Instance()->UseRcuTrailer(!old); + AliFMDParameters::Instance()->UseCompleteHeader(!old); + + AliRawReader *reader = new AliRawReaderDate(fileName); + TStopwatch timer; + timer.Start(); + AliFMDGainDA gainDA; + gainDA.SetSaveDiagnostics(kTRUE); + gainDA.Run(reader); + + timer.Stop(); + timer.Print(); + + +} -- 2.39.3