bug fix
[u/mrichter/AliRoot.git] / FMD / scripts / Convert2Raw.C
CommitLineData
1e8f773e 1//____________________________________________________________________
2//
3// $Id$
4//
5// Read in digits, and convert them to raw data files. This is mainly
6// for testing.
7//
9b48326f 8/** Convert digits to Raw data
9 @ingroup simple_script
10*/
1e8f773e 11void
12Convert2Raw()
13{
69e022af 14 AliCDBManager* cdb = AliCDBManager::Instance();
15 cdb->SetRun(0);
162637e4 16 cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
1e8f773e 17 AliRunLoader* runLoader =
18 AliRunLoader::Open("galice.root", "Alice", "read");
19 runLoader->LoadgAlice();
20 AliRun* run = runLoader->GetAliRun();
21 AliLoader* fmdLoader = runLoader->GetLoader("FMDLoader");
22 AliFMD* fmd = static_cast<AliFMD*>(run->GetDetector("FMD"));
69e022af 23 AliLog::SetModuleDebugLevel("FMD", 5);
1e8f773e 24
25 AliFMDParameters::Instance()->Init();
26 AliFMDRawWriter rw(fmd);
27 rw.Exec();
28}
29//____________________________________________________________________
30//
31// EOF
32//