]>
Commit | Line | Data |
---|---|---|
e0afd551 | 1 | void |
2 | Hits2Digits() | |
3 | { | |
4 | AliRunLoader* runLoader = AliRunLoader::Open("galice.root", "Alice", "read"); | |
5 | if (!runLoader) { | |
6 | AliError("Coulnd't read the file galice.root"); | |
7 | return; | |
8 | } | |
9 | ||
10 | if (runLoader->LoadgAlice()) return; | |
11 | AliRun* run = runLoader->GetAliRun(); | |
12 | ||
13 | // Get the FMD | |
14 | AliFMD* fmd = static_cast<AliFMD*>(run->GetDetector("FMD")); | |
15 | if (!fmd) { | |
16 | AliError("Failed to get detector FMD from loader"); | |
17 | return; | |
18 | } | |
19 | ||
20 | // Get the FMD loader | |
21 | AliLoader* loader = runLoader->GetLoader("FMDLoader"); | |
22 | if (!loader) { | |
23 | AliError("Failed to get detector FMD loader from loader"); | |
24 | return; | |
25 | } | |
26 | if (runLoader->LoadHeader()) { | |
27 | AliError("Failed to get event header information from loader"); | |
28 | return; | |
29 | } | |
30 | TTree* treeE = runLoader->TreeE(); | |
31 | ||
32 | AliCDBManager::Instance()->SetRun(0); | |
162637e4 | 33 | AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
e0afd551 | 34 | |
35 | fmd->Hits2Digits(); | |
36 | } |