Clara Gaspar, March 2005 LHCb Online & the Conditions DB

Preview:

Citation preview

Clara Gaspar, March 2005

LHCb Online&

the Conditions DB

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)

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

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.

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.

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"

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

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

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)

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

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

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

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

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

Recommended