Mein deutsches Wortschatz

ablehnen rinunciare
aufpumpen gonfiare
sich ablenken distrarsi
bestehen auf insistere
einladen invitare, offrire
neigen tendere
sperren chiudere, sbarrare
vermeiden evitare
vermuten sospettare

Bedingung condizione
Entscheidung decisione
-s Geheimnis mistero
Genehmigung autorizzazione
-r Hintergrund sfondo, backgound
-r Reifen pneumatico
-r Schlauch camera d'aria
Verzeihung scuse
-r Zettel foglio

knapp appena
solange finché

Ich entschuldige mich für die Störung

Ich rede mal mit ihm

Ich schaffe es (nicht)

Das wäre es von meiner Seite


Einstellungen -> Datenschutz & Sicherheit -> Cookies -> Datei Verwalten




ssh -X <username>


Find the code of a process

You can add filters to top while it is running: press the o key and then type in a filter expression. For example, to monitor all java processes use the filter expression COMMAND=java. Multiple filters by pressing the key again, filter by user with the u key, clear all filters with the = key.

Converting images

convert <image.jpg> <image.png>

convert <image*.png> <filename.pdf>

Merging images

convert image1.png imag2.png -append result.png


convert image1.png imag2.png +append result.png

Merge pdf files

pdfunite file1.pdf file2.pdf merged_output.pdf

Extract pages from a pdf file

pdftk full-pdf.pdf cat 12-15 output outfile_p12-15.pdf




arecord -f cdr /tmp/test

arecord  /tmp/test

aplay  /tmp/test


speaker-test -twav

pgrep -a speaker


nslookup <ip-address>

View last lines of a file updating "live"

tail -f <filename>

Search for text in files

grep -rli 'some_text' .
r = recursive, i = case insensitive, l = list file names

Bash scripts

Read the content of a file



while read -r item1 item2 item3; do
  echo "$item1 $item2"
done < $filename


Avoid big vertical space before the last item of a list:
\item some text\par

Remove bullet from a list of items:


Custom font size:

{\fontsize{50}{60}\selectfont Foo}{\fontsize{5}{6}\selectfont bar!}

Installing biblatex and biber packages:

sudo apt-get install texlive-bibtex-extra
sudo apt-get install texlive-bibtex-extra biber



Release setup


asetup Athena,master,latest

mkdir workArea
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/'
mkdir source
mkdir build
mkdir run
cd source

Checking xAOD files <filename>


asetup 21.0.39,Athena
(asetup 21.2.93,AthAnalysis)



Git global setup

git config --global "Name Surname"
git config --global ""
git config --list

To avoid entering credentials anytime

git config credential.helper store

Manage remote origins

git remote remove origin
git remote add origin<project-name>

Create a new repository

git clone<user>/<project-name>.git
cd <project-name>
git add
git commit -m "add README"
git push -u origin master

Push an existing folder

cd existing_folder
git init
git remote add origin<user>/<project-name>.git
git add .
git commit -m "Initial commit"
git push -u origin master

Push an existing Git repository

cd existing_repo
git remote rename origin old-origin
git remote add origin<user>/<project-name>.git
git push -u origin --all
git push -u origin --tags

View the branches in a Git repository

git branch [-a]

Delete a local branch

git branch -d <the_local_branch>

Checkout the latest version on the remote repository

git fetch origin
git checkout -b <branch_name> origin/master

GIT commit

git commit -[a]m "My message"
(use the -a option in your commit command to stage and add the changes to your repository).

Push a new local branch to a remote git repository link

  1. create a new branch:
    git checkout -b feature_branch_name
  2. edit, add and commit your files
  3. push your branch to the remote repository:
    git push -u origin feature_branch_name

Data quality

Luminosity etc.

Talks ->

DQ algorithms

Release 22 - MT

A collection of the basic DQ algorithms that have been already implemented and where they reside:

AFP repository on GIT:

AFP DQ code:

mkdir testAFP
cd testAFP/
lsetup git
git atlas init-config --apply
git atlas init-workdir [] -b 21.0
cd athena/
git checkout -b 21.0-AFP-DQM upstream/21.0 --no-track
git atlas addpkg AFP_Monitoring
ls ForwardDetectors/AFP/AFP_Monitoring/
cd ..
mkdir Build
cd Build/
asetup Athena,21.0,latest,slc6
cmake ../athena/Projects/WorkDir/
source ./x86_64-centos7-gcc62-opt/ 

AFP DQ strategy (as of 13.08.2019):

  1. Get some first code running. Song-Ming pointed you to where this is also roughly described (right hand side): Suggested workflow:
    1. read through the instructions in the example job option
    2. write an algorithm (subclass AthMonitorAlgorithm) that follows the form of the ExampleMonitorAlgorithm to retrieve a quantity (just port over a calculation from your subsystem’s Run II monitoring code) related to your subsystem from a data file (AOD/ESD/etc)
    3. write a configuration file that defines a histogram for this quantity and writes it to the output histogram file
    4. run athena with the JobOption you have created and check the out put file for your histogram
    5. test your ability to change the python configuration. (e.g. try changing the output TDirectory structure)
    6. test your ability to calculate other quantities and use filters in the algorithm
    7. record what percentage of your histograms is migrated
  2. for how to get this template code running, the best is to look at: (which I understand, you have already looked at - though I understand you tried to indeed understand all references, which is very admirable, but not possibly very difficult without having too much practical experience of the ATLAS computing framework).

Inside the section: (which roughly explains some of the algorithms) you find a reference to where you find in the folders: src / AthenaMonitoring / python the following files:

which you would want to rename to AFP DQMonitoring and include it in a relevant package in your project folder: (Betty's old code there?).

Instructions to run:

JIRA tickets:

Release 20.7

Run the ATLAS test web display

Get the DQM tools:
mkdir dq_devel
cd dq_devel
lsetup git
git atlas init-workdir
cd athena
git atlas addpkg DataQualityConfigurations
git fetch upstream
git checkout -b 21.0-my-dq-development upstream/21.0 –no-track



M. Trzebinski (12.06.2019): list of defects and descriptions created, to be uploaded in the DQDefects DB, a specific GRL (AFP special runs) will be created

Open Call for Tasks in the Data Quality area


2020 26/03/2020 AFP soft & sim + DQ Weekly Meeting 12/03/2020 ARP Technical Meeting 20/02/2020 ARP Technical Meeting 06/02/2020 ARP Technical Meeting 23/01/2020 ARP General Meeting 23/01/2020 ARP General Meeting


25/10/2017 Data Quality weekly 24/10/2017 technical AFP meeting (AFP detector, test AFP in ATLAS web display, which histograms to use and how) 10/10/2017 technical AFP meeting (grouping and convention name in COOL, BPM, AFP in ATLAS test web display) 03/10/2017 technical AFP meeting (AFP in general DQ meeting, AFP into ATLAS test web display, COOL update) 09/26/2017 technical AFP meeting (Monitoring status, COOL parameters, AFP runs list, analysis of runs) 09/25/2017 AFP Condition Database meeting (A : variabls for COOL, B: data structure) 09/13/2017 ATLAS ALFA/AFP meeting (A: Online and Offline tools, defects, histo and ref histo, remaining steps. B: TPX-3) 08/29/2017 technical AFP meeting (Analysis of run 332303, SiT hit versus luminosity block) 08/22/2017 technical AFP meeting (Online and offline monitoring histograms, analysis of run 332303) 08/15/2017 technical AFP meeting (Online and offline monitoring histograms and analysis status) 08/08/2017 technical AFP meeting (ATLAS monitoring system, Online Histogram Presenter) 08/01/2017 technical AFP meeting (Data Quality Monitoring importance, strategy, new email list)

Test setup

  • create a root file with AFP reconstructed objects (G. Gach)
    • setup the framework
mkdir ../build && cd ../build
asetup 21.0.39,Athena
mkdir ../source && mv CMakeLists.txt ../source/
cmake ../source
make -j
source x*/
mkdir ../run && cd ../run
    • create the root file --inputBSFile 'raw_AFP_file' --outputAODFile 'output.root' --outputHISTFile 'output_HIST.root' --AFPOn True
--autoConfiguration 'everything' --preExec
ue);rec.doAFP.set_Value_and_Lock(True);DQMonFlags.doAFPMon=True;from InDetRecExample.InDetJobProperties import
InDetFlags;InDetFlags.checkDeadElementsOnTrack.set_Value_and_Lock(True);' 'r2a:from
InDetRecExample.InDetJobProperties import InDetFlags;
InDetFlags.useDynamicAlignFolders.set_Value_and_Lock(True);from InDetPrepRawDataToxAOD.SCTxAODJobProperties
import SCTxAODFlags;SCTxAODFlags.Prescale.set_Value_and_Lock(50);from TrigHLTMonitoring.HLTMonFlags import
HLTMonFlags;HLTMonFlags.doGeneral=False;TriggerFlags.AODEDMSet="AODFULL";' --maxEvents 5000 --conditionsTag
'CONDBR2-BLKPA-2017-11' --geometryVersion 'all:ATLAS-R2-2016-01-00-01' --steering 'doRAWtoALL'
  • run the ATLAS test web display (R. Narayan, P. Onyisi)
    • get the DQM tools
mkdir dq_devel ; cd dq_devel
SetupATLAS ; lsetup git
git atlas init-workdir
cd athena
git atlas addpkg DataQualityConfigurations
git fetch upstream
git checkout -b 21.0-my-dq-development upstream/21.0 –no-track
    • setup a release
mkdir ../build ; cd ../build
asetup 21.0.38
    • get the AFP configuration file
cd ../athena/DataQuality/DataQualityConfigurations/config/ ; mkdir AFP
cp /afs/ AFP
    • get the AFP reconstructed root file
cp /PATH/TO/YOUR/NEW/output.HIST.root
    • compile
cd ../../../../build
cmake ../athena/Projects/WorkDir ; make -j ; source x*/
    • run the DQM ../athena/DataQuality/DataQualityConfigurations/config/output.HIST.root TestDisplay 1




Setup environment

source /sw/tdaq/setup/

DQMD display

dqm_display -p ATLAS

To-do list

  • events in the xAOD files not chronologically ordere (LB number can go backwards from one event to the next)
  • efficiency plots: currently ex=px (px = hits in the plane x), should be ex=px/(p0+p1+p2+p3)
  • correlation between AFP and central ATLAS: (horizontal) track multiplicity in AFP vs. total energy or total multiplicity

Luminosity with AFP


ROOT tutorial


The source code from the ROOT download webpages does not contain the CMakeLists.txt file. The GIT repository works fine instead:


Seems to work on Lubuntu 16.04 i686 and 18.04 amd64:

Download the source from GIT:
git clone
cd root
git checkout v6-10-00-patches
or the most recent release:
git clone
cd root
git checkout -b v6-22-00 v6-22-00

Seems to work on Lubuntu 18.04 amd64:

Required packages:

sudo apt-get install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev

Optional packages:

sudo apt-get install gfortran libssl-dev libpcre3-dev \
xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
libmysqlclient-dev libfftw3-dev libcfitsio-dev \
graphviz-dev libavahi-compat-libdnssd-dev \
libldap2-dev python-dev libxml2-dev libkrb5-dev \
libgsl0-dev libqt4-dev

mkdir build
cd build
cmake path/to/source
cmake --build . -- -jN
where N is the number of available cores.

Setup the environment to run:

$ source /path/to/install-or-build/dir/bin/
Start ROOT interactive application:
$ root


(Lubuntu 18.04 64)
sudo apt-get install python3-dev

ROOT setup on lxplus


localSetupROOT [options] [version]

localSetupROOT --help


ROOT input/output


root -l <file_name>

Peaks in histograms

TSpectrum: search by setting the sigma and the amplitude threshold of the peaks:
Int_t Search(const TH1* hist, Double_t sigma = 2, Option_t* option = "", Double_t threshold = 0.05)


#include "TSpectrum.h"

TSpectrum *s = new TSpectrum();
Int_t peak;
peak = s->Search(hist, 2.2, "nobackground", 0.12);
cout << "peak: " << peak << "\n";


        TChain *chain = new TChain("ntuple");





TDirectory* topDir

m_outputFile = TFile::Open("out_file.root", "RECREATE");
topDir = m_outputFile->mkdir("test");


Root dir


In an online session:


std::vector<double> *myvector = new std::vector<double>;

Loop over vectors

vector<int> vi;
for ( int i : vi ) cout << "i = " << i << endl;

External variables

In header global.h:
  // Global variables
  #ifndef GLOBAL_H
  #define GLOBAL_H
  extern Bool_t ext_var;

In .C macro or .cpp source file;

#include "global.h"

Bool_t ext_var;

void macro()
   cout << ext_var << "\n";

Animated GIF

Each frame is delayed by NN*10ms.

Reading histograms from a ROOT file

// adjust path to input analysis rootfile
sprintf(sdata, "file.root");
cout << "Input file = " << sdata << "\n";
TFile *f = new TFile(sdata);

TH1 *h;

SSH and SCP stuff

ssh and scp with port specification:
  • ssh name@server -p
  • scp -P <port> name@server:<path/to/file>
    P capital!

Vydio stuff

sudo dpkg -i ./VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb
sudo apt install libqt4-designer libqt4-opengl libqt4-svg libqtgui4 libqtwebkit4
mkdir ../prg
gvim ../prg/videbcontrol
chmod 755 ../prg/videbcontrol
../prg/videbcontrol VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb
sudo dpkg -i ./VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.modfied.deb
../prg/videbcontrol VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb
rm VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.modfied.deb
../prg/videbcontrol VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb
sudo apt install libqt4-designer libqt4-opengl libqt4-svg libqtgui4 libqtwebkit4
sudo apt install libqtgui4 libqtwebkit4
rm VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.modfied.deb
../prg/videbcontrol VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb
sudo apt install libqt4-opengl
sudo apt install libqt4-svg
sudo apt install libqt4gui
sudo apt install libqtgui4
sudo apt install libqtwebkit4
sudo apt install libqt4-network
sudo dpkg -i ./VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.modfied.deb

LUMI stuff

Good runs

  • 2015: 251103-286474, 286475-287983
  • 2016: 289496-314199
  • 2017: 324320-341649, 341692-342182
  • 2018: 348197-367384

Vdm scans - Run-2

  • 2015: 277025,277089,280231,280500,280520,286282,287224,287594
  • 2016: 299390,300287,301915,301918,309311,309375,310781,312796,313067,313285,313878,313935
  • 2017: 324832,324839,325020,329484,330875,335302,336506,339197,340453,340634,340644
  • 2018: 354494,365218,365763,365768

LUMI DQ defects

  • 2017


DCS server at P1

pcatlrpolcs (pcatlfwd01)

source /det/dcs/linuxScripts/




Open questions

  • water cooling (from LAr?) only for DC-DC converters?
  • LV: any (hardware) protection against overvoltage?






Presentations about FOS-LPG:




Pad size: 1.3 x 1.3 mm2

Module size: 40 x 20 mm2

450 pads/ module




ELMB2 radiation tests


  • Pros:
    • optical fibres, no CANbus, no electrical ground
    • (possibly) more radiation hard
  • Cons:
    • not available at the moment



Comments (DCS-related)

  • Markus Elsing: L 358 FLEX cables: number of connected modules limited by FLEX bandwidth?
  • Maurice Garcia-Sciveres: calibrations
  • Philippe Farthouat:
    • sec. 6.4.2 time needed to upload the 1024 configuration registers of an ASIC
    • MUX: who is developing; time scale
    • ELMB++: availability
  • Michel Raymond: L 4832 one PT100 per heater or per cover/vessel?
  • Richard Teuscher:
    • chap 8, humidity sensors: type, location, read-out software
    • sec. 8.3 ELMB2 as backup if ELMB++ not available
  • Kevin Einsweiler:
    • sec. 6.6: voltage monitoring: automated action in case of high currents or voltage drops or relying only on Interlock triggered by large temperature variations?
    • MUX: who is developing; time scale

My remarks:

  • HV ramp up/down according to SB condition
  • L 2882 total monitoring range is of 90°C
  • L 2889 proposed->provided
  • L 2915 mux->MUX's or multiplexers


ASCII manager

From the gedi panel, click on SysMgm, then Database > ASCII Manager.

Virtual Machine

xfreerdp -g 800x600


-- DavideCaforio - 2019-04-10

Edit | Attach | Watch | Print version | History: r81 | r74 < r73 < r72 < r71 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r72 - 2020-10-03 - DavideCaforio
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback