This script runs the gain DA given a runnumber and a file
[u/mrichter/AliRoot.git] / FMD / scripts / TestGainDA.C
CommitLineData
e1b0253a 1void TestGainDA(Char_t* fileName, Int_t runNumber){
2
3 //This script runs the gain DA using the class AliFMDGainDA
4
5 gSystem->Load("libFMDutil");
6 Bool_t old = kTRUE;
7 AliCDBManager* cdb = AliCDBManager::Instance();
8 cdb->SetRun(runNumber);
9 cdb->SetDefaultStorage("local://$ALICE_ROOT");
10 AliLog::SetModuleDebugLevel("FMD", 1);
11 AliFMDParameters::Instance()->Init();
12 AliFMDParameters::Instance()->UseRcuTrailer(!old);
13 AliFMDParameters::Instance()->UseCompleteHeader(!old);
14
15 AliRawReader *reader = new AliRawReaderDate(fileName);
16 TStopwatch timer;
17 timer.Start();
18 AliFMDGainDA gainDA;
19 gainDA.SetSaveDiagnostics(kTRUE);
20 gainDA.Run(reader);
21
22 timer.Stop();
23 timer.Print();
24
25
26}