clara gaspar, march 2005 lhcb online & the conditions db
TRANSCRIPT
![Page 1: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/1.jpg)
Clara Gaspar, March 2005
LHCb Online&
the Conditions DB
![Page 2: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/2.jpg)
22Clara Gaspar, March 2005
LHCb Online
Detector Channels
Front End Electronics
Readout Network
Processing/Filtering Farm
Storage
Trigger
Exp
eri
men
t C
on
trol S
yste
m
DAQ
DCS Devices (HV, LV, GAS, Temperatures, etc.)
External Systems(LHC,Technical Services,Safety,etc)
![Page 3: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/3.jpg)
33Clara Gaspar, March 2005
Online Usage of CondDB
❚Two completely independent users:
❙As Publisher❘The Experiment Control System
Writes Online Conditions to the DB
❙As Consumer❘The Event Filter Farm Algorithms
Need Conditions for their processing/filtering tasks
![Page 4: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/4.jpg)
44Clara Gaspar, March 2005
Online Conditions Sources
❚DCS❙High Voltages, temperatures, pressures, etc.
❚DAQ & L0 Trigger❙Pedestals, thresholds, zero suppression parameters,
gains, etc.❙DAQ & Trigger setup parameters
❚EFF (Event Filter Farm)❙Pedestals, Thresholds, Gain Calibration, Alignment
Constants, etc.❙Trigger setup parameters
❚External Systems❙Accelerator data: energy, luminosity, average bunch
currents, etc.
![Page 5: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/5.jpg)
55Clara Gaspar, March 2005
Online Conditions Publisher
❚From the Control System point of view:❙Only output❙Only one interface:
❘from the ECS i.e. PVSS
❙Clients (offline algorithms) determine:❘Data organization
〡Data format: XML (?)
❘Data update rate〡Data could be stored in the Cond DB only if it changed by
more than X or every hour 〡independently of the PVSS read-out rate.
![Page 6: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/6.jpg)
66Clara Gaspar, March 2005
Conditions Data Types
❚Raw DataValues read directly from hardware (ex.: HV readings, Temperatures, raw alignment data, etc.)
➨ No Versions, no Tags
❚Processed DataResults of calculations done on raw data (ex.: calibration constants, alignment, etc.)
➨ Automatic Versioning, User Tags
➨ All Online data stored as "Raw Data"
![Page 7: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/7.jpg)
77Clara Gaspar, March 2005
Data Handling Architecture
PVSSPVSS
PVSSPVSS
. To Offline
...
...PVSS
PVSSPVSS
PVSS
Cond..DB
Conf.DB
To Offline
...
...
PVSSArch.
❚Three Logical Databasesin the Online System
Exp
eri
men
tal E
qu
ipm
en
t
![Page 8: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/8.jpg)
88Clara Gaspar, March 2005
Online Database Contents
❙Configuration DB contains:❘All data needed to configure the HW (or SW) for the
various running modes〡Ex.: HV V0 Settings, Pedestal settings, trigger settings, etc.
❙PVSS Archive contains:❘All monitoring data read from HW for monitoring and
debugging of the Online System〡Ex.: HV Vmon Readings, pedestal readings, etc.
❙Conditions DB contains:❘A subset of the monitoring data read from HW if it is
needed for Offline processing〡Ex.: HV Vmon Readings if changed by more than n Volts
❘Some configuration data once it has been used〡Ex.: Trigger settings used by a particular run
![Page 9: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/9.jpg)
99Clara Gaspar, March 2005
Dataflow ExampleE
xp
eri
men
tal E
qu
ipm
en
t
PVSS
. To Offline
PVSS
Cond..DB
Conf.DB
To Offline
PVSSArch.
Configuration settingsfor a running mode
Monitoring data(at regular intervals)
if Archive On
if Passes Conditions filter
if Needed for next run settings(Pedestal Followers)
![Page 10: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/10.jpg)
1010Clara Gaspar, March 2005
Cond. DBServer
ECS CondDB Architecture
Control PCPVSS
Control PCPVSS
Control PCPVSS
…~100
Cond. DBServer
.Cond..DB
❚ Uses LCG:❙ COOL❙ RAL❙ SEAL❙ POOL❙ BOOST❙ etc.
ConditionsData
❚ Define filters in PVSS:(per device type/device)❙ Archive❙ Condition:
❘ filter expressions
![Page 11: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/11.jpg)
1111Clara Gaspar, March 2005
Event Filter Farm & CondDB
Event Builder Switch
SFC
CPU
CPU
CPU
.
.
SFC
CPU
CPU
CPU
.
.
SFC
CPU
CPU
CPU
.
.
. . .
❚CPUs run "Offline" Algorithms Online:❙Within Gaudi FW
(interfaced to PVSS)
❙Need Conditions:❘The Control PCs
will get a snapshot of the CondDB (at Start of Run) and distribute to CPUs
❘A few well-chosen Conditions can be updated while running
![Page 12: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/12.jpg)
1212Clara Gaspar, March 2005
Control PCPVSS
Dataflow ExampleEvent Builder Switch
SFC
CPU
CPU
CPU
.
.
SFC
CPU
CPU
CPU
.
.
SFC
CPU
CPU
CPU
.
.
. . .
Control PCPVSS
Cond. DBServer
Control PCPVSS
Cond. DBServer
.Cond..DB
Control PCPVSS
❚ Special filter for some conditions❙ Trigger Farm
Update
At Run StartNew Condition Update (t0+t)
Validity Start = t0+t
t0
CPU
CPU
CPU
CPU
CPU
CPU
CPU
CPU
CPU
![Page 13: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/13.jpg)
1313Clara Gaspar, March 2005
Control PCPVSS
Ex: The VeLo Alignment
Cond. DBServer
Control PCPVSS
Cond. DBServer
.Cond..DB
Event Builder Switch
SFC
CPU
CPU
CPU
.
.
SFC
CPU
CPU
CPU
.
.
SFC
CPU
CPU
CPU
.
.
. . .
Control PCPVSS
Control PCPVSS
CPU
CPU
CPU
CPU
CPU
CPU
CPU
CPU
CPU
Control PCPVSS
![Page 14: Clara Gaspar, March 2005 LHCb Online & the Conditions DB](https://reader036.vdocuments.net/reader036/viewer/2022083005/56649f1d5503460f94c340d4/html5/thumbnails/14.jpg)
1414Clara Gaspar, March 2005
Online/Offline Synch
Offline Cond DB Online Cond DB
RichAl
VeloAl
RichAlOn
VeloAlOn
❚Synchronized by Oracle Tools
RichAl
VeloAl
RichAlOn
VeloAlOn