Project

General

Profile

Running the Trigger using the DAQApplicationManager » History » Version 6

Iuri Oksuzian, 04/24/2013 02:43 PM

1 6 Iuri Oksuzian
{{toc}}
2 5 Martin Frank
3 6 Iuri Oksuzian
h1. Running the Trigger processes:
4 1 Iuri Oksuzian
5 6 Iuri Oksuzian
h2. Using the DAQApplicationManager
6 6 Iuri Oksuzian
7 1 Iuri Oksuzian
To start the AppMgr GUI:
8 1 Iuri Oksuzian
9 4 Martin Frank
<pre>
10 4 Martin Frank
   ssh novadaq@novadaq-ctrl-master
11 4 Martin Frank
   setup_online -z 10
12 4 Martin Frank
   startDAQApplicationManager.sh
13 4 Martin Frank
</pre>
14 1 Iuri Oksuzian
15 1 Iuri Oksuzian
The GUI pops up:
16 1 Iuri Oksuzian
17 2 Iuri Oksuzian
!https://cdcvs.fnal.gov/redmine/attachments/download/8403/AppMgrGUI.png!
18 3 Iuri Oksuzian
19 3 Iuri Oksuzian
20 3 Iuri Oksuzian
   * Right-click on the PINK status box and click "Start process". The ddt-filter process starts on the corresponding cluster and status turns GREEN.
21 3 Iuri Oksuzian
   * You can start/stop the whole group
22 3 Iuri Oksuzian
23 3 Iuri Oksuzian
If you would to create extra buttons for additional ddt-filter processed, modify:
24 3 Iuri Oksuzian
25 3 Iuri Oksuzian
   * @/nova/config/NDOS/appmgr/Partition10/ProcessList.xml@
26 3 Iuri Oksuzian
   * @<applicationInstance name="ddt001" type="DDT Filter" host="novadaq-ctrl-farm-01" />@
27 3 Iuri Oksuzian
28 3 Iuri Oksuzian
The start xml file:
29 3 Iuri Oksuzian
30 3 Iuri Oksuzian
   * @/nova/config/NDOS/appmgr/Partition10/ApplicationTypeList_DAQ_Standard_Start.xml@
31 3 Iuri Oksuzian
   * @<appCommand>/home/novadaq/DAQOperationsTools/bin/startDDTFilter.sh -c prof-test.fcl -z ${PARTITION_NUMBER}</appCommand>@
32 3 Iuri Oksuzian
33 3 Iuri Oksuzian
In startDDTFilter.sh:
34 3 Iuri Oksuzian
35 3 Iuri Oksuzian
   * The search path for the FHCL file is specified: 
36 3 Iuri Oksuzian
   ** @export FHICL_FILE_PATH=$FHICL_FILE_PATH:/nova/config/NDOS/DDTFilter/${partitionSubdir}:/nova/config/NDOS/DDTFilter@
37 3 Iuri Oksuzian
   * The exact FHICL file location : 
38 3 Iuri Oksuzian
   ** @/nova/config/NDOS/DDTFilter/prof-test.fcl@
39 1 Iuri Oksuzian
   * The line that actually start the ddt-filter:
40 3 Iuri Oksuzian
   ** @ nohup ddt-filter -c ${configFile} >>${logPath}/ddt_${TIMESTAMP}.log 2>&1 <&- &@
41 5 Martin Frank
42 6 Iuri Oksuzian
h3. Log Files
43 5 Martin Frank
44 5 Martin Frank
The log files for each farm node can be found in the following directory:
45 5 Martin Frank
46 1 Iuri Oksuzian
<pre>
47 1 Iuri Oksuzian
/daqlogs/NDOS/Partition10/DDTFilter/
48 1 Iuri Oksuzian
</pre>
49 6 Iuri Oksuzian
50 6 Iuri Oksuzian
h2. Using RC on novatest01
51 6 Iuri Oksuzian
52 6 Iuri Oksuzian
53 6 Iuri Oksuzian
# log into novatest01 as novadaq
54 6 Iuri Oksuzian
# 'setup_online -z 3'
55 6 Iuri Oksuzian
# 'ospl start'
56 6 Iuri Oksuzian
# 'startDAQApplicationManager.sh'
57 6 Iuri Oksuzian
# 'startRunControl.sh'
58 6 Iuri Oksuzian
# in the Resource Manager GUI...
59 6 Iuri Oksuzian
## [Release Partition 3, if needed]
60 6 Iuri Oksuzian
# In the Run Control GUI...
61 6 Iuri Oksuzian
## select Configuration->Simulation Mode, select Mode 1, and click OK to accept that change
62 6 Iuri Oksuzian
## click Discover Resources
63 6 Iuri Oksuzian
## click Select Resources.  Choose the following resources:
64 6 Iuri Oksuzian
### ConfigurationManager
65 6 Iuri Oksuzian
### DataLogger
66 6 Iuri Oksuzian
### EventDispatcher
67 6 Iuri Oksuzian
### GlobalTrigger
68 6 Iuri Oksuzian
### MessageViewer
69 6 Iuri Oksuzian
### ResourceManagerServer
70 6 Iuri Oksuzian
### RunControlServer
71 6 Iuri Oksuzian
### SimulationManager
72 6 Iuri Oksuzian
### TriggerScalars
73 6 Iuri Oksuzian
### all of the DCMs under tdu01 (dcm-3-01-01/2/3, dcm-3-02-01/2/3)
74 6 Iuri Oksuzian
### buffer nodes 1 through 6
75 6 Iuri Oksuzian
### click Acknowledge All Deviations
76 6 Iuri Oksuzian
### click OK
77 6 Iuri Oksuzian
## click Reserve Resources
78 6 Iuri Oksuzian
## wait for all DAQ processes to start
79 6 Iuri Oksuzian
## click Select Configurations
80 6 Iuri Oksuzian
### click the More button
81 6 Iuri Oksuzian
### select the latest SimMode1GlobalConfig
82 6 Iuri Oksuzian
### click OK
83 6 Iuri Oksuzian
## click Prepare Configuration
84 6 Iuri Oksuzian
## click Load Connections
85 6 Iuri Oksuzian
## click Make Connections
86 6 Iuri Oksuzian
## click Load Hardware Config
87 6 Iuri Oksuzian
## click Configure Hardware
88 6 Iuri Oksuzian
## click Load Run Config
89 6 Iuri Oksuzian
## click Configure Run
90 6 Iuri Oksuzian
## click Begin Run - enter the requested information
91 6 Iuri Oksuzian
92 6 Iuri Oksuzian
To shut things down:
93 6 Iuri Oksuzian
94 6 Iuri Oksuzian
# End the run, if needed
95 6 Iuri Oksuzian
# It's important to shut down the DAQ processes using either the Stop System button from the Application Manager or the Release Resources button in Run Control.  Use the latter if it is available.
96 6 Iuri Oksuzian
# 'stopRunControl.sh'
97 6 Iuri Oksuzian
# stopDAQApplicationManager.sh'
98 6 Iuri Oksuzian
# 'ospl stop' (rarely)
99 6 Iuri Oksuzian
100 6 Iuri Oksuzian
To build the software in the test release:
101 6 Iuri Oksuzian
102 6 Iuri Oksuzian
# 'cd $SRT_PRIVATE_CONTEXT'
103 6 Iuri Oksuzian
# 'build4 everything'
104 6 Iuri Oksuzian
105 6 Iuri Oksuzian
At the Apllication manager below you see 2 highlighted processes, which corresponds to BufferNodeEVBapp and ddt-filter