AliRoot Core  3dc7879 (3dc7879)
Convert2Raw.C
Go to the documentation of this file.
1 //____________________________________________________________________
2 //
3 // $Id$
4 //
5 // Read in digits, and convert them to raw data files. This is mainly
6 // for testing.
7 //
11 void
13 {
15  cdb->SetRun(0);
16  cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
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"));
24 
26  AliFMDRawWriter rw(fmd);
27  rw.Exec();
28 }
29 //____________________________________________________________________
30 //
31 // EOF
32 //
Int_t LoadgAlice()
Definition: AliRun.h:27
Class to write ALTRO formated raw data from an array of AliFMDDigit objects.
AliLoader * GetLoader(const char *detname) const
Forward Multiplicity Detector based on Silicon wafers. This class is the driver for especially simula...
Definition: AliFMD.h:306
void Convert2Raw()
Definition: Convert2Raw.C:12
static AliRunLoader * Open(const char *filename="galice.root", const char *eventfoldername=AliConfig::GetDefaultEventFolderName(), Option_t *option="READ")
static AliFMDParameters * Instance()
static void SetModuleDebugLevel(const char *module, Int_t level)
Definition: AliLog.cxx:485
void SetRun(Int_t run)
void SetDefaultStorage(const char *dbString)
virtual void Exec(Option_t *option="")
AliDetector * GetDetector(const char *name) const
Definition: AliRun.cxx:200
static AliCDBManager * Instance(TMap *entryCache=NULL, Int_t run=-1)
UShort_t Init(Bool_t forceReInit=kFALSE, UInt_t what=kAll)
AliRun * GetAliRun() const