WIP: Setting up example for trigger DQ ws 29 April 2019
Example code for the trigger DQ migration to athenaMT, especially for the 29 April workshop, https://indico.cern.ch/event/808031/
This is being discussed in ATR-19677.
I have taken the files from the DQ tutorial,https://twiki.cern.ch/twiki/bin/viewauth/Atlas/DQRun3FrameworkTutorial
Control/AthenaMonitoring/AthenaMonitoring/ExampleMonitorAlgorithm.h
Control/AthenaMonitoring/python/ExampleMonitorAlgorithm.py
Control/AthenaMonitoring/share/ExampleMonitorAlgorithm_jobOptions.py
Control/AthenaMonitoring/src/ExampleMonitorAlgorithm.cxx
and moved them to the trigger package:
Trigger/TrigMonitoring/TrigEgammaMonitoring/python/TrigEgammaMonitorAlgorithm.py
Trigger/TrigMonitoring/TrigEgammaMonitoring/share/TrigEgammaMonitorAlgorithm_jobOptions.py
Trigger/TrigMonitoring/TrigEgammaMonitoring/src/TrigEgammaMonitorAlgorithm.cxx
Trigger/TrigMonitoring/TrigEgammaMonitoring/src/TrigEgammaMonitorAlgorithm.h
I also needed to add the file
Trigger/TrigMonitoring/TrigEgammaMonitoring/src/components/TrigEgammaMonitoring_entries.cxx
and modify the file
Trigger/TrigMonitoring/TrigEgammaMonitoring/CMakeLists.txt
The code currently lives in the TrigEgammaMonitoring folder. This is semi-random. Move to your own signature and rename accordingly.
Commands to run the code:
cd work/area/
setupATLAS
lsetup git
git atlas init-workdir https://:@gitlab.cern.ch:8443/atlas/athena.git #first time only
cd athena
git atlas addpkg TrigMonitoring # first time only
git fetch upstream
git checkout -b master-my-branch-name upstream/master --no-track #first time only
#Get my branch:
git fetch https://:@gitlab.cern.ch:8443/ebergeas/athena.git master-example-for-trigger-ws-April2019
git checkout -b ebergeas/athena-ebergeas_master-example-for-trigger-ws-April2019 FETCH_HEAD
#You probably want to move the development back to your own branch
cd ..
asetup master,latest,Athena
rm -rf build #except first time
mkdir build
cd build
#Create a file package_filters.txt and put it one level above /athena (example file below)
cmake -DATLAS_PACKAGE_FILTER_FILE=../package_filters.txt ../athena/Projects/WorkDir
make -j8
source x*/setup.sh
Running trigger code:
cd../run
cp ../athena/Trigger/TrigMonitoring/TrigEgammaMonitoring/python/TrigEgammaMonitorAlgorithm.py .
python TrigEgammaMonitorAlgorithm.py > mylog.txt &
Example package_filters.txt file:
- Trigger/TrigMonitoring/TrigBjetMonitoring
- Trigger/TrigMonitoring/TrigBphysMonitoring
- Trigger/TrigMonitoring/TrigCaloMonitoring
- Trigger/TrigMonitoring/TrigCostMonitor
- Trigger/TrigMonitoring/TrigCostMonitorMT
+ Trigger/TrigMonitoring/TrigEgammaMonitoring
- Trigger/TrigMonitoring/TrigHLTMonitoring
- Trigger/TrigMonitoring/TrigHLTRatesFromCool
- Trigger/TrigMonitoring/TrigIDTPMonitor
- Trigger/TrigMonitoring/TrigIDtrkMonitoring
- Trigger/TrigMonitoring/TrigJetMonitoring
- Trigger/TrigMonitoring/TrigMETMonitoring
- Trigger/TrigMonitoring/TrigMinBiasMonitoring
- Trigger/TrigMonitoring/TrigMonitorBase
- Trigger/TrigMonitoring/TrigMuonMonitoring
- Trigger/TrigMonitoring/TrigStatsFromCool
- Trigger/TrigMonitoring/TrigSteerMonitor
- Trigger/TrigMonitoring/TrigTauMonitoring
- Trigger/TrigMonitoring/TrigTimeMonitor
- HLT/Trigger/TrigMonitoring/TrigOnlineMonitor
- HLT/Trigger/TrigMonitoring/HLTRates2COOL