]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/scripts/Convert2Raw.C
debug is read from option string
[u/mrichter/AliRoot.git] / FMD / scripts / Convert2Raw.C
1 //____________________________________________________________________
2 //
3 // $Id$
4 //
5 // Read in digits, and convert them to raw data files.  This is mainly
6 // for testing. 
7 //
8 /** Convert digits to Raw data
9     @ingroup simple_script
10 */
11 void
12 Convert2Raw()
13 {
14   AliRunLoader* runLoader = 
15     AliRunLoader::Open("galice.root", "Alice", "read");
16   runLoader->LoadgAlice();
17   AliRun* run = runLoader->GetAliRun();
18   AliLoader* fmdLoader = runLoader->GetLoader("FMDLoader");
19   AliFMD* fmd = static_cast<AliFMD*>(run->GetDetector("FMD"));
20   AliLog::SetModuleDebugLevel("FMD", 1);
21
22   AliFMDParameters::Instance()->Init();
23   AliFMDRawWriter rw(fmd);
24   rw.Exec();
25 }
26 //____________________________________________________________________
27 // 
28 // EOF
29 //