This script runs the pedestal DA given a runnumber and a file
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 12:32:13 +0000 (12:32 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 12:32:13 +0000 (12:32 +0000)
FMD/scripts/TestPedestalDA.C [new file with mode: 0644]

diff --git a/FMD/scripts/TestPedestalDA.C b/FMD/scripts/TestPedestalDA.C
new file mode 100644 (file)
index 0000000..f5ce34a
--- /dev/null
@@ -0,0 +1,26 @@
+void TestPedestalDA(Char_t* fileName, Int_t runNumber){
+  
+  //This script runs the pedestal DA using the class AliFMDPedestalDA
+  
+  
+  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,-1);
+  TStopwatch timer;
+  timer.Start();
+  AliFMDPedestalDA pedestalDA;
+  //pedestalDA.SetSaveDiagnostics(kTRUE);
+  pedestalDA.Run(reader);
+  timer.Stop();
+  timer.Print();
+
+  
+}