]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
This script runs the gain DA given a runnumber and a file
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 12:32:29 +0000 (12:32 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Mar 2008 12:32:29 +0000 (12:32 +0000)
FMD/scripts/TestGainDA.C [new file with mode: 0644]

diff --git a/FMD/scripts/TestGainDA.C b/FMD/scripts/TestGainDA.C
new file mode 100644 (file)
index 0000000..fd77936
--- /dev/null
@@ -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();
+
+  
+}