Skip to content

Commit 2ff29f3

Browse files
matthiasrichterktf
authored andcommitted
Updating man pages (AliceO2Group#417)
* Updating AliceHLTWrapperDevice man page * Adding man page for AliceHLTComponents * Adding man page for FairMQDevice * Extending the example man page of ExampleModule2
1 parent 9e81fdf commit 2ff29f3

7 files changed

Lines changed: 320 additions & 36 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,4 @@ configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake
201201
)
202202

203203
O2_GENERATE_MAN(NAME o2)
204+
O2_GENERATE_MAN(NAME FairMQDevice)
Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,62 @@
11
.\" Manpage for runExampleModule2.
2-
.TH man 1 "12 May 2017" "1.0" "runExampleModule2 man page"
32

3+
.\" this file gives some basic introduction on how to use the
4+
.\" roff format to write man pages
5+
.\" NOTE: all formatting commands start with a dot and must be
6+
.\" at the beginning of the line
7+
8+
.\" the header section
9+
.TH AliceO2 1 "12 May 2017" "1.0" "runExampleModule2 man page"
10+
11+
.\" .SH starts a new section, NAME is the first section
412
.SH NAME
513

6-
runExampleModule2 - A test device
14+
runExampleModule2 - A simple example for AliceO2 submodules
715

16+
.\" next is the SYNOPSIS section
817
.SH SYNOPSIS
918

10-
runExampleModule2 [options]
19+
.\" some bold formatted text
20+
.B runExampleModule2
21+
.\" alternate between roman and bold font, separated by blank, i.e. the
22+
.\" square backets in roman and the option in bold
23+
.RB [ --someoption ]
24+
.\" same here, in addition, the dots indicating the argument string are in
25+
.\" italic. Note: the quoted " [" makes sure there is a blank
26+
.RB [ --debug " [" --gdb=\fI...\fR ]]
27+
.\" italic formatting (underline in man)
28+
.I mandatory_argument
29+
.\" alternate roman and italic
30+
.RI [ further_arguments... ]
31+
1132

1233
.SH DESCRIPTION
1334

14-
runExampleModule2 is just an example to demonstrate how AliceO2 modules work.
15-
This document is just an example demonstrating how to create man pages.
35+
runExampleModule2 is an example to demonstrate the AliceO2 cmake setup of
36+
modules. This document illustrates creation of man pages. All options and
37+
arument are pure fictive.
1638

1739
.SH OPTIONS
1840

41+
.\" indented paragraph with label, indentation is set to the optional number
1942
.TP 5
43+
.B --someoption
44+
This is a fancy option of the example.
2045

21-
--some-option some fancy option to use
46+
.TP 5
47+
.B --debug
48+
Run everything with debugging options
49+
50+
.TP 5
51+
.B --gdb=\fI...\fR
52+
Add additional information to run with gdb
2253

2354
.SH SEE ALSO
2455

2556
runExampleModule2(1)
2657

58+
http://gnustep.made-it.com/man-groff.html
59+
2760
.SH BUGS
2861

2962
No known bugs

Utilities/aliceHLTwrapper/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ O2_GENERATE_TESTS(
5757
)
5858

5959
O2_GENERATE_MAN(NAME AliceHLTWrapperDevice)
60+
O2_GENERATE_MAN(NAME AliceHLTComponents)
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
.\" Manpage for AliceHLT components.
2+
.TH AliceO2 1 "19 May 2017" "1.0" "AliceHLT components man page"
3+
4+
.SH DESCRIPTION
5+
ALICE HLT components are part of AliRoot and can be plugged into the
6+
O2 system via the AliceHLTWrapperDevice. The wrapper device takes the
7+
shared library name and component id as parameters to instantiate the
8+
component instance.
9+
10+
.SH SELECTED COMPONENTS
11+
.B libAliHLTUtil.so
12+
FilePublisher
13+
FileWriter
14+
ROOTFilePublisher
15+
ROOTFileWriter
16+
17+
.SH COMPONENT OPTIONS
18+
.SS FilePublisher
19+
.TP 2
20+
.B -datafile
21+
.I filename
22+
data file to be published
23+
.TP 2
24+
.B -datafilelist
25+
.I configfile
26+
read arguments from a configfile
27+
.TP 2
28+
.B -datatype
29+
.I datatype dataorigin
30+
data type ID and origin, e.g. -datatype 'CLUSTERS' 'TPC '
31+
.TP 2
32+
.B -dataspec
33+
.I specification
34+
data specification treated as decimal number or hex number if prepended by '0x'
35+
.TP
36+
.B -open_files_at_start (optional)
37+
Opens all files during component initialisation rather than as needed during event processing. Note: this feature may result in the system running out of file handles if a large number of files was specified.
38+
.TP
39+
.B -nextevent (optional)
40+
indicate subsequent files to be published by the next event
41+
42+
.SS FileWriter
43+
.TP
44+
.B -datafile
45+
.I filename
46+
file name base
47+
.TP
48+
.B -directory
49+
.I directory
50+
target directory
51+
.TP
52+
.B -subdir[=pattern]
53+
create sub dir for each event, the format pattern can contain printfspecifiers to print the event no into the dir name, default is'event%%03lu' (-subdir w/o additional pattern). The format specifyer%%lu is automatically added if missing in the pattern. Please note thelong int type of the event id, the idfmt string is reset since the subdircontains the id
54+
.TP
55+
.B -idfmt[=pattern]
56+
format specifier for the event id in the file name, default: on, default pattern: '_0x%%08x'
57+
.TP
58+
.B -specfmt[=pattern]
59+
format specifier for the data specification in the file name default: off, default pattern: '_0x%%08x'
60+
.TP
61+
.B -blocknofmt[=pattern]
62+
format specifier for the block no in the file name default: on, default pattern: '_0x%%02x'
63+
.TP
64+
.B -skip-datatype
65+
do not consider data type when building the file name.
66+
.TP
67+
.B -enumerate
68+
don't use the event number but an event counter beginning from 0
69+
.TP
70+
.B -concatenate-blocks
71+
concatenate all blocks of one event into one file, this skips the block no, and the block data type in the file name
72+
.TP
73+
.B -concatenate-events
74+
concatenate all events into one file, this skips the event no, the block no, and the block data type in the file name. Currently, this implies the -concatenate-blocks option.
75+
.TP
76+
.B -publisher-conf
77+
.I filename
78+
write configuration file for FilePublisher component (AliHLTFilePublisher) one line per file: -datatype id origin -datafile filename events separated by -nextevent
79+
.TP
80+
.B -write-all-events
81+
by default, the file writer ignores all steering events like thethe SOR/EOR events, with this option, all events will be consideredthe beginning.
82+
.TP
83+
.B -write-all-blocks
84+
by default, the file writer ignores all blocks of origin {PRIV} (::kAliHLTDataOriginPrivate), with this option, all blocks willbe written. For SOR/EOR events, a short string will be added in the beginning.
85+
.TP
86+
.B -write-all
87+
combines both -write-all-events and -write-all-blocks
88+
.TP
89+
.B -burst-buffer <size>
90+
size of burst buffer, blocks are written to buffer until it is filled and written in one burst (though to different files according to conf). Note: burst write is currently only supported for mode -concatenate-events AND -concatenate-blocks (both enabled).
91+
.TP
92+
.B -datatype
93+
.I id origin
94+
data block selection by AliHLTBlockDataCollection
95+
.TP
96+
.B -origin
97+
.I origin
98+
data block selection by AliHLTBlockDataCollection
99+
.TP
100+
.B -typeid
101+
.I id
102+
data block selection by AliHLTBlockDataCollection
103+
.TP
104+
.B -dataspec
105+
.I specification
106+
data block selection by AliHLTBlockDataCollection
107+
108+
.SS ROOTFilePublisher
109+
Special implementation of the
110+
.I FilePublisher
111+
component.
112+
.P
113+
Additional options:
114+
.TP
115+
.B -objectname
116+
.I objectname
117+
Name of the object in the root file to be fetched. This is set for all events/files. If not given, all objects are fetched.
118+
119+
.SS ROOTFileWriter
120+
Special implementation of the
121+
.I FileWriter
122+
component.
123+
.P
124+
Additional options:
125+
.TP
126+
.B -overwrite
127+
write objects with the TObject::kOverwrite flag and avoid multiple keys in the file
128+
129+
130+
.SH AUTHOR
131+
Matthias.Richter@scieq.net
132+
All questions and suggestions welcome
133+
134+
.SH "SEE ALSO"
135+
AliceHLTWrapperDevice(1)
136+
137+
.SH BUGS
138+
Lines changed: 73 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
.\" Manpage for runExampleModule2.
2-
.TH man 1 "19 May 2017" "1.0" "AliceHLTWrapperDevice man page"
3-
1+
.\" Manpage for AliceHLTWrapperDevice.
2+
.TH AliceO2 1 "19 May 2017" "1.0" "AliceHLTWrapperDevice man page"
43
.SH NAME
5-
64
AliceHLTWrapperDevice - FairRoot/ALFA device running ALICE HLT code
75

86
.SH SYNOPSIS
9-
10-
AliceHLTWrapperDevice --id <deviceid> --channel-config <config> --library <arg> --component <arg> --parameter <arg> --runno <n>
7+
.B AliceHLTWrapperDevice
8+
.B --id
9+
.I deviceid
10+
.B --channel-config
11+
.I config
12+
.B --library
13+
.I arg
14+
.B --component
15+
.I arg
16+
.B --parameter
17+
.I arg
18+
.B --runno
19+
.I n
1120

1221
.SH DESCRIPTION
1322

@@ -19,32 +28,67 @@ receives and send messages. The data of the messages are processed
1928
using the Component class.
2029

2130
.SH OPTIONS
22-
Common FairMQ options
23-
--id id of the device
24-
--channel-config channel configuration as comma separated key=value pairs
25-
name
26-
type
27-
method
28-
address
29-
property
30-
31-
HLT component options
32-
--library HLT library containing the component
33-
--component HLT component id
34-
--parameter Parameter of the component
35-
--run Run number
36-
37-
Other Options
38-
--poll-period Polling period on the input channel
31+
.SS Common FairMQDevice options
32+
.TP 2
33+
.B --id \fIid\fR
34+
A unique identifier of the device
35+
.TP 2
36+
.B --channel-config \fIargs\fR
37+
channel configuration as comma separated key=\fIvalue\fR pairs
38+
.RS
39+
Valid Keys:
40+
.B name
41+
.B type
42+
.B method
43+
.B address
44+
.B property
45+
.RE
46+
47+
.SS Mandatory HLT Component related options
48+
.B Note:
49+
Every HLT component has it's own set of (command line) options which can be passed via the \fB--parameter\fR option.
50+
.TP 2
51+
.B --library \fIarg\fR
52+
HLT library containing the component
53+
.TP 2
54+
.B --component \fIarg\fR
55+
HLT component id
56+
.TP 2
57+
.B --parameter \fIarg\fR
58+
Parameter of the component, make sure to put in quotes if the argument consists
59+
of multiple strings
60+
.TP 2
61+
.B --run \fIn\fR
62+
Run number
63+
64+
.SS Other Options
65+
.B --poll-period \fIperiod\fR
66+
Polling period on the input channel
3967

4068
.SH CONFIGURATION DATABASE
41-
HLT components need the Alice OCDB to load the configuration. The path to the OCDB must be set in environment variable ALIHLT_HCDBDIR.
69+
HLT components need the Alice OCDB to load the configuration. The path to the OCDB must be set in environment variable \fBALIHLT_HCDBDIR\fR.
4270

43-
.SH Examples
44-
AliceHLTWrapperDevice --id publisher --channel-config name=data-out,type=pub,method=bind,address=tcp://*:42424 --library libAliHLTUtil.so --component FilePublisher --run 167808 --parameter '-datafile some_file_to_publish'
71+
.SH EXAMPLES
72+
.B AliceHLTWrapperDevice
73+
--id publisher \\
74+
.br
75+
--channel-config \\
76+
.br
77+
name=data-out,type=pub,method=bind,address=tcp://*:42424 \\
78+
.br
79+
--library libAliHLTUtil.so --component FilePublisher --run 167808 \\
80+
.br
81+
--parameter '-datafile some_file_to_publish'
4582

46-
.SH DISCLAIMER
47-
This is work in progress, please send questions and suggestions to Matthias.Richter@scieq.net
83+
.SH AUTHOR
84+
Matthias.Richter@scieq.net
85+
All questions and suggestions welcome
4886

4987
.SH SEE ALSO
50-
HLT components
88+
AliceHLTComponents(1), FairMQDevice(1)
89+
90+
.SH BUGS/ISSUES
91+
.SS Parameter Manager
92+
The device does not interface to the FairMQ parameter manager. The device itself
93+
does not need any more parameters than the command line options. The HLT component
94+
needs the ALICE OCDB location and the run number.

0 commit comments

Comments
 (0)