Skip to content

Commit 57192fe

Browse files
committed
Added documentation for runHough
1 parent b1f0e65 commit 57192fe

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

devices/hough/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Hough Transform
2+
===============
3+
4+
This is the groundwork for the Hough Transform algorithm implementation. The runHough executable takes as an argument an event number (i.e. runHough 032) and for the given event it loads all clusters from the corresponding data files.
5+
6+
### Step by Step installation and execution
7+
8+
1. The runHough executable depends on the AliRoot HLT libraries. For this, an optional dependency to AliRoot has been added to the AliceO2 framework. To build the executable, the path to the AliRoot installation must be given at configuration time. For example:
9+
10+
cmake -DCMAKE_INSTALL_PREFIX:PATH=.. -DCMAKE_CXX_FLAGS="-std=c++11" .. -DALIROOT="/opt/alice/external/AliRoot"
11+
12+
It is important that AliRoot, FairRoot and AliceO2 have been built against the same version of ROOT. To ensure that the prerequisite packages were compiled and installed correctly, the alfaconfig.sh script that is included as part of the FairSoft installation can be used.
13+
14+
2. Raw data files should be retrieved from AliEn for a given run. The implementation can be tested using the raw files corresponding to run 167808:
15+
16+
alien-token-init <username>
17+
aliensh
18+
cd /alice/data/2011/LHC11h/000167808/raw/
19+
cp 11000167808000.10.root file://tmp
20+
exit
21+
mv /tmp/11000167808000.10.root raw.root
22+
23+
Then, the necessary scripts to perform the clusterization for the data should be coppied to the current directory:
24+
25+
cp ${AliRoot}/HLT/exa/recraw-local.C .
26+
cp ${AliRoot}/HLT/exa/EnableHLTInGRP.C .
27+
cp ${AliceO2}devices/aliceHLTwrapper/macros/hltConfigurations.C .
28+
29+
Finally, the following commands should executed:
30+
31+
aliroot -b -q -l hltConfigurations.C recraw-local.C'("raw.root", "raw://", 0, 0, "HLT TPC", "loglevel=0x79 chains=cluster-collection", "local://./OCDB")'
32+
33+
aliroot -b -q -l EnableHLTInGRP.C'(167808, "local://./OCDB", "local://./OCDB")'
34+
rm galice.root QA.root
35+
aliroot -b -q -l hltConfigurations.C recraw-local.C'("raw.root", "local://OCDB", -1, -1, "HLT", "loglevel=0x79 chains=cluster-collection")' 2>&1 | tee cluster-collection.log
36+
37+
The result should be a directory, called "emulated-tpc-clusters" that will be the input of runHough. By executing
38+
39+
runHough 032
40+
41+
the executable will load all the clusters from the emulated-tpc-clusters/event032 subdirectory.

0 commit comments

Comments
 (0)