+ All Categories
Home > Documents > Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

Date post: 21-Jan-2016
Category:
Upload: benjamin-farmer
View: 224 times
Download: 6 times
Share this document with a friend
Popular Tags:
19
Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN
Transcript
Page 1: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

Detector Description in LHCb

Detector Description Workshop13 June 2002S. Ponce, P. Mato / CERN

Page 2: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 2

Contents

Architecture Transient layer Persistency layer : XML Condition Database Visualization Interfacing Geant4 Status & examples

Page 3: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 3

Calibration

Architecture Overview

GDML ?

XML

ConditionDatabase

Transient Store

Materials

Structure

Geometry…

Visualization(Panoramix)

Simulation(Gauss/Geant4)

Reconstruction(Brunel)

Analysis(Da Vinci)

DAQ ?

Page 4: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 4

Architecture

Sub-Architecture of Gaudi– Same principles– Transient/Persistent

representations Focus on the “Physics

Algorithm” Coherent access to

“all” detector data– Geometry,

Calibration, Slow Control, etc.

Converter

Algorithm

Event DataService

PersistencyService

DataFiles

AlgorithmAlgorithm

Transient Event Store

Detec. DataService

PersistencyService

DataFiles

Transient Detector

Store

MessageService

JobOptionsService

Particle Prop.Service

OtherServices

HistogramService

PersistencyService

DataFiles

TransientHistogram

Store

ApplicationManager

ConverterConverterEvent

Selector

Gaudi Architecture

Page 5: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 5

Logical Structure

The basic object is a Detector Element– Identification– Navigation (tree-like)

DetElement as information center– Be able to answer any detector

related question» E.g. global position of strip#,

temperature of detector, absolute channel gain, etc.

– Placeholder for specific code» The specific answers will be coded by

“Physicists”

DetElement

*

MyDetector

Page 6: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 6

Algorithm Accessing Detector Data

Geometry

DetectorDataService

Algorithm

TransientDetector Store

• Manages store• Synchronization

updates

DetElement

GeometryInfo

IGeometryInfo

Calibration

ReadOut

IReadOut

ICalibration

IDetElement

MuonStation

request

request: get, update

reference

beginEvent

ConditionsDB

Other DBs

PersistencyService

ConversionService

ConversionService

ConversionService

Page 7: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 7

Simplified Diagram

DetectorElement

MuonStation

GeometryInfo

IGeometryInfo

ReadOut

Hierarchy

Calibration

IReadOut

ICalibration

Specific detector description

questions from algorithms

LVolume

PVolume

DataObject

Solid

ISolid

Material

ElementMixture

IMaterial

Detector Description Geometry Material

IDetectorElementILVolume

SolidSolidSolidBox

Isotope

IPVolume

*

*

* *

Association resolved on demand

Page 8: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 8

Persistency based on XML files

XML is used as persistent representation of the Structure, Geometry and Materials (eventually also Conditions)

Mapping each C++ class into an XML element– Inheritance emulation (Generic and Specific

Detector Element)– Relationships using “Links” and symbolic names

Allow math expressions with parameters and physical units– Using expression evaluator (available in CLHEP)

Page 9: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 9

XML Files

Separated XML files– By sub-detector and data type (structure,

geometry, material)– Low coupling of developments

Links between files through references– allows to see the whole description as a

single XML tree Versioning done using CVS Possible migration to the “Conditions DB”

Page 10: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 10

XML Converters

Capable of converting (one way for the time being) XML into C++ objects– Using DOM interface (Xerces-C)– Specific converters for specific “DetElement” (to be

provided by users) Available Converters

– Structure: Catalog, DetElement– Geometry: LVolume, Surface, Solids (various

shapes, boolean), PVolumes (parametric)– Materials: Isotope, Element, Mixture,

TabulatedProperty

Page 11: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 11

XML Detector Description Editor

Developed a graphical editor to “hide” XML to the end-users (physicists)– It understands our model (DTD)– But it’s generic (possible to use another

DTD)– It understands “links” and allow us to edit

a web of XML files as a single tree– It’s implemented in Java (portable)

Page 12: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 12

XMLEditor

Page 13: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 13

Conditions DB

Accessing detector conditions data (calibration, slow control, alignment, etc.) should be the same as geometry data– Time validity period and Versioning in addition– Conditions are integrated into the transient data

model– Converters are responsible for converting from

database rather than from XML Conditions are attached to Detector Elements as for

geometry– each element has many conditions (calibration,

alignment, slowcontrol, fastcontrol …)

Page 14: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 14

Conditions DB Implementation

Condition objects are stored in XML The XML fragments are stored using the Oracle

condition DB developed by IT XML references are used to select between XML

and condition DB :– <conditionref

href=“../Ecal/condition.xml#caEcal"/> XML

– <conditionref href=“cond://dd/Calibration/Ecal/caEcal"/> DataBase

Page 15: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 15

Geometry Visualization

Visualization is essential for developing the geometry– Applicable at the

different data representations

Generic geometry information conversion to 3D graphics data

Panoramix (OnX)

TransientStore

Structure+

Geometry

VisualCnvSvc

G4Geometry

GigaCnvSvc

Display

VisualCnvSvc

Display

CnvSvc

Vis Display

Page 16: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 16

Interfacing With Geant4

We integrate Gaudi with Geant4 by providing a number of “Gaudi Services” (GiGa)

The GiGaGeomCnvSvc is able to convert transient objects (DetElem, LVolume, Surfaces, etc.) into G4 geometry objects– The conversion does not require “user” code– Flexibility in mapping Gaudi model to

Geant4 model Single source of Geometry information

Page 17: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 17

Status of LHCb Detector Description

The DetDesc framework is fully functional (transient classes, XML DTD, XML converters, editor, etc)

All sub-detectors are already described (structure, geometry and materials) using the provided framework

Visualization based on OnX : Panoramix. Allows to see geometry, events, histograms, …

Conversion to Geant4 through GiGa is complete

Page 18: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 18

Example 1 : Velo and Rich1

Page 19: Detector Description in LHCb Detector Description Workshop 13 June 2002 S. Ponce, P. Mato / CERN.

13 June 2002 LHCb Detector Description 19

Example (2) : Zoom on Ecal


Recommended