|
| 1 | +<!-- doxy |
| 2 | +\page refDetectorsCalibration/testMacros Module 'Detectors/Calibration/testMacros' |
| 3 | +/doxy --> |
| 4 | + |
| 5 | +# Simulation of sending of calibration data from EPNs to an aggregator |
| 6 | + |
| 7 | +To be used when calibrations produced by several EPNs have to be sent to a single node, the aggregator. |
| 8 | +On the aggregator, the devices producing calibration will run and send the output to the CCDB. |
| 9 | + |
| 10 | +* In order to populate the CCDB, the CCDB local server should be started, if the exercise is not meant to |
| 11 | +upload the official or test CCDB. In a terminal, run: |
| 12 | +```cpp |
| 13 | +java -jar local.jar |
| 14 | +``` |
| 15 | +which will start a CCDB server on port 8080. See [instructions](https://github.com/AliceO2Group/AliceO2/tree/dev/CCDB#central-and-local-instances-of-the-ccdb). |
| 16 | + |
| 17 | +* To run the calibration and aggregator, open a terminal and start the aggregator, which is just the `o2-dpl-raw-proxy`: |
| 18 | +```cpp |
| 19 | +o2-dpl-raw-proxy --dataspec A:TOF/CALIBDATA/0 --channel-config "name=readout-proxy,type=pull,method=bind,address=tcp://localhost:30453,rateLogging=1,transport=zeromq" |
| 20 | +``` |
| 21 | +where, as you can see, you can overwrite the configurations of the `readout-proxy` channel, which is the channel used by the aggregator. |
| 22 | +The aggregator should be started **before the other devices**, since it will listen for data (it is the channel that is *binding*). |
| 23 | + |
| 24 | +* The following example will pass the data arriving to the aggregator to the `o2-calibration-lhc-clockphase-workflow` device, and from there |
| 25 | +to the `o2-calibration-ccdb-populator-workflow` to update the CCDB. |
| 26 | +In another terminal, run: |
| 27 | +```cpp |
| 28 | +source runEPNsimulation.sh 3 |
| 29 | +``` |
| 30 | + |
| 31 | +where the argument (`3` above) is the number of EPNs to be simulated. This will send the data to the aggregator process. |
| 32 | + |
| 33 | +**N.B.**: the aggregator and calibration devices will need to use a different port from localHost:8080 in case the local |
| 34 | +CCDB server is used in its default configuration, since 8080 is used by CCDB. In the example above, port 30453 is used. |
0 commit comments