conditions database for minerva jaewon park university of rochester minerva/jupiter group meeting,...

17
Conditions Database for Minerva Jaewon Park University of Rochester ERvA/Jupiter group meeting, Nov 07, 2007

Post on 21-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

Conditions Database for Minerva Jaewon Park

University of Rochester

MINERvA/Jupiter group meeting, Nov 07, 2007

Page 2: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

2

Overview

What’s included in CondDb. Alignment Readout Slow/fast control calibration

Ex/DetCondExample/v7r7 (sort of old ver.) Example package for LHCb CondDb.

Ex/DetCondExample/v11r2 (recent ver.) A little bit reorganized structure.

Page 3: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

3

Page 4: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

4

Page 5: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

5

Page 6: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

6

Xml-based Data base

CondDb uses xml files. Examples are shown next slides

Xml string can be put to actual Db server via COOL package.

What if we need to access Heidi’s hardware Db from Gaudi framework? It’s possible to convert conventional Db to Xml Db.

Pmt calibration, … Is it safe to have mutiple Dbs?

Page 7: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

7

Alignment

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE DDDB SYSTEM “../DTD/structure.dtd”><!-- $Id: alignment.xml,v 1.1 2001/12/17 15:46:30 andreav Exp $   --> <DDDB> <catalog name="Ecal"> <!-- Ecal alignment catalog   --> <conditionref href="#alEcal" /> </catalog> <condition name="alEcal"> <paramVector name="Ecal position" type="double">0. 0. 0.</paramVector> </condition></DDDB>

Example XML file

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE DDDB SYSTEM “../DTD/structure.dtd”><!-- $Id: alignment.xml,v 1.1 2005/08/31 16:02:49 marcocle Exp $   --> <DDDB> <catalog name="Velo">  <conditionref href="conddb:/Alignment/Velo/Modules:00#Module00" />   <conditionref href="conddb:/Alignment/Velo/Modules:01#Module01" />   <conditionref href="conddb:/Alignment/Velo/Modules:02#Module02" />   <conditionref href="conddb:/Alignment/Velo/Modules:03#Module03" />   </catalog></DDDB>

Referring to data in real Db

Page 8: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

8

Calibration <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE DDDB SYSTEM “../DTD/structure.dtd”><!-- $Id: calibration.xml,v 1.1 2001/12/17 15:46:31 andreav Exp $   --> <DDDB> <catalog name="Ecal"> <!-- Ecal calibration catalog   -->   <conditionref href="#caEcal" />   </catalog> <condition name="caEcal"> <param name="ScaleFactor" type="double">1.</param> </condition></DDDB>

Readout <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE DDDB SYSTEM “../DTD/structure.dtd”><!-- $Id: readout.xml,v 1.1 2001/12/17 15:46:31 andreav Exp $   --> <DDDB> <catalog name="Ecal"> <!-- Ecal readout catalog   --> <conditionref href="#roEcal" /> </catalog> <condition name="roEcal"> <paramVector name="ChannelMap" type="int">1 2 3 4</paramVector> </condition></DDDB>

Page 9: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

9

Slowconstrol <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE DDDB SYSTEM “../DTD/structure.dtd”><!-- $Id: slowcontrol.xml,v 1.1 2001/12/17 15:46:31 andreav Exp $   --> <DDDB> <catalog name="Ecal"> <!-- Ecal slow control catalog   --> <conditionref href="#scEcal" /> </catalog> <condition name="scEcal"> <param name="Temperature" type="double">20.</param> </condition></DDDB>

Fastcontrol<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE DDDB SYSTEM “../DTD/structure.dtd”><!-- $Id: fastcontrol.xml,v 1.1 2001/12/17 15:46:31 andreav Exp $   --> <DDDB> <catalog name="Ecal"> <!-- Ecal fast control catalog   --> <conditionref href="#fcEcal" /> </catalog> <condition name="fcEcal"> <param name="TFCVoltage" type="double">5.</param> </condition></DDDB>

Page 10: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

10

Velo/Modules Alignment (v11r2)  <?xml version="1.0" encoding="ISO-8859-1" ?> <DDDB><condition classID="6" name="ModulePU00">  <paramVector name="dPosXYZ" type="double">0 0 0</paramVector>   <paramVector name="dRotXYZ" type="double">0 0 0</paramVector> </condition><condition classID="6" name="ModulePU01">  <paramVector name="dPosXYZ" type="double">0 0 0</paramVector>   <paramVector name="dRotXYZ" type="double">0 0 0</paramVector> </condition><condition classID="6" name="ModulePU02">  <paramVector name="dPosXYZ" type="double">0 0 0</paramVector>   <paramVector name="dRotXYZ" type="double">0 0 0</paramVector> </condition><DDDB>

Page 11: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

11

Running test program

I could run a test program that reads file-based Db and prints out the values.

I couldn’t test example that works with actual Db.

The package includes: Algorithm that fills xml to Db. Algorithm that loads xml from Db. A script that creates Db. A script that copies xml to Db.

Page 12: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

12

Update Manager Service

Page 13: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

13

Page 14: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

14

What we’ll need

Alignment data It should be given to reconstruction package(i.e.

tracker finder, track fitter) and calibration package.DAQ Conditions/calibration

It should be given to Sergei’s Readout packages.Cosmic calibration

Need calibration package that calculate calibration date.

The calibration output will be used to other packages.

Page 15: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

15

Mapper software

Using root Read Leo’s manual scan data text file in new

Framework. Some of code is imported from old one. Plan to add a piece that handle binary data from real mapper

DAQ. What’s been done

Basic framework and data class Data is organized into tree structure, so easy to handle for

further complicated analysis Pedestal curve is fitted and pedestal shift is calculated. Transverse scan fit is progress.

Page 16: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

16

Page 17: Conditions Database for Minerva Jaewon Park University of Rochester MINERvA/Jupiter group meeting, Nov 07, 2007

17

Lorenzian functions doesn’t fit data.

Asymmetric

Tail points arehigher than curve