]>
Commit | Line | Data |
---|---|---|
e1b0253a | 1 | void 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); | |
162637e4 | 9 | cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
e1b0253a | 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 | } |