Roman Pöschl CALICE Software Review 1 Details of CALICE Software Model Roman Pöschl LAL Orsay CALICE Software Review 18/12/07 Part I: Calice Dataprocessing.

Slides:



Advertisements
Similar presentations
17 Sep 2009Paul Dauncey1 US DHCAL integration with CALICE DAQ Paul Dauncey.
Advertisements

Adding electronic noise and pedestals to the CALICE simulation LCWS 19 – 23 rd April Catherine Fry (working with D Bowerman) Imperial College London.
1 Databases in ALICE L.Betev LCG Database Deployment and Persistency Workshop Geneva, October 17, 2005.
23/04/2008VLVnT08, Toulon, FR, April 2008, M. Stavrianakou, NESTOR-NOA 1 First thoughts for KM3Net on-shore data storage and distribution Facilities VLV.
31 May 2007LCWS R&D Review - Overview1 WWS Calorimetry R&D Review: Overview of CALICE Paul Dauncey, Imperial College London On behalf of the CALICE Collaboration.
Anne-Marie Magnan Imperial College London Tuesday, December18th 2007 Calice Software Review -- DESY -- A.-M. Magnan (IC London) 1 Tracking and ECAL reconstruction.
Ties Behnke, Vasiliy Morgunov 1SLAC simulation workshop, May 2003 Pflow in SNARK: the next steps Ties Behnke, SLAC and DESY; Vassilly Morgunov, DESY and.
Reconstruction and Analysis on Demand: A Success Story Christopher D. Jones Cornell University, USA.
A preliminary analysis of the CALICE test beam data Dhiman Chakraborty, NIU for the CALICE Collaboration LCWS07, Hamburg, Germany May 29 - June 3, 2007.
1Calice-UK WP1 review 9/9/05D.R. Ward David Ward WP1 covered the completion of the original Calice program as proposed in 2002, i.e. Beam tests (electrons.
Anne-Marie Magnan Imperial College London Kobe, May 11th, 2007 Calice meeting --- Anne-Marie Magnan 1 Status of MC reconstruction MC Reconstruction Chain.
1 Calice UK Analysis Meeting 23/1/07David Ward/Nige Watson UK Analysis tasks (WP1) David Ward Nige Watson TexPoint fonts used in EMF. Read the TexPoint.
1Calice NIU s/w review March D.R. Ward David Ward Recent Technical Board review included software. Summarise some of the main conclusions… Monte.
1 Calice UK Meeting 03/11/06David Ward/Nige Watson Analysis tasks David Ward Nige Watson TexPoint fonts used in EMF. Read the TexPoint manual before you.
LCIO A persistency framework for LC detector simulation studies Frank Gaede, DESY, IT 4 th ECFA/DESY LC Workshop Amsterdam April 1 st -4 th 2003.
STAR C OMPUTING Maker and I/O Model in STAR Victor Perevoztchikov.
06/15/2009CALICE TB review RPC DHCAL 1m 3 test software: daq, event building, event display, analysis and simulation Lei Xia.
Reports from DESY Satoru Uozumi (Staying at DESY during Nov 11 – 25) Nov-21 GLDCAL Japan-Korea meeting.
06/03/06Calice TB preparation1 HCAL test beam monitoring - online plots & fast analysis - - what do we want to monitor - how do we want to store & communicate.
Usability Issues Documentation J. Apostolakis for Geant4 16 January 2009.
HPS Online Software Discussion Jeremy McCormick, SLAC Status and Plans.
Conditions DB in LHCb LCG Conditions DB Workshop 8-9 December 2003 P. Mato / CERN.
AHCAL electronics. Status and Outlook Peter Göttlicher for the AHCAL developers CALICE meeting UT Arlington, March 11th, 2010.
Databases E. Leonardi, P. Valente. Conditions DB Conditions=Dynamic parameters non-event time-varying Conditions database (CondDB) General definition:
Event Data History David Adams BNL Atlas Software Week December 2001.
Some Thoughts about Hits, Geometry etc Rob Kutschke, Hans Wenzel Fermilab March 13, 2007.
Nigel Watson / BirminghamCALICE ECAL, UCL, 06-Mar-2006 Test Beam Task List - ECAL  Aim:  Identify all tasks essential for run and analysis of beam data.
19 July 2007Paul Dauncey - Software Review1 Preparations for the Software “Review” Paul Dauncey.
6/23/2005 R. GARDNER OSG Baseline Services 1 OSG Baseline Services In my talk I’d like to discuss two questions:  What capabilities are we aiming for.
TB1: Data analysis Antonio Bulgheroni on behalf of the TB24 team.
Interactions of hadrons in the SiW ECAL Towards paper Naomi van der Kolk.
CALICE ScECAL software development S. Uozumi Sep-3 rd 2010 Japan-Korea joint workshop.
LCIO A persistency framework and data model for the linear collider CHEP 04, Interlaken Core Software, Wednesday Frank Gaede, DESY -IT-
Why A Software Review? Now have experience of real data and first major analysis results –What have we learned? –How should that change what we do next.
1 The CALICE experiment at MTBF (FNAL) summary of a fruitful test beam experiment Erika Garutti (DESY) On behalf of CALICE.
Ties Behnke: Event Reconstruction 1Arlington LC workshop, Jan 9-11, 2003 Event Reconstruction Event Reconstruction in the BRAHMS simulation framework:
Mokka, main guidelines and future P. Mora de Freitas Laboratoire Leprince-Ringuet Ecole polytechnique - France Linear collider Workshop 2004, Paris.
Database David Forrest. What database? DBMS: PostgreSQL. Run on dedicated Database server at RAL Need to store information on conditions of detector as.
ScECAL Beam FNAL Short summary & Introduction to analysis S. Uozumi Nov ScECAL meeting.
Calorimeter global commissioning: progress and plans Patrick Robbe, LAL Orsay & CERN, 25 jun 2008.
SiW ECAL: the status before Fermilab Marcel Reinhard LLR – Ecole Polytechnique CALICE caollaboration meeting 18/03/08, Argonne.
LHCb 2009-Q4 report Q4 report LHCb 2009-Q4 report, PhC2 Activities in 2009-Q4 m Core Software o Stable versions of Gaudi and LCG-AA m Applications.
1 Calice TB Review DESY 15/6/06D.R. Ward David Ward Post mortem on May’06 DESY running. What’s still needed for DESY analysis? What’s needed for CERN data.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
MAUS Status A. Dobbs CM43 29 th October Contents MAUS Overview Infrastructure Geometry and CDB Detector Updates CKOV EMR KL TOF Tracker Global Tracking.
1 GlueX Software Oct. 21, 2004 D. Lawrence, JLab.
L1Calo Databases ● Overview ● Trigger Configuration DB ● L1Calo OKS Database ● L1Calo COOL Database ● ACE Murrough Landon 16 June 2008.
Calice Days DESY Hamburg Feb CALICE Computing (Status and Practical Tips) Roman Pöschl LAL Orsay CALICE Days - DESY Hamburg February Introductory.
Roman Pöschl LCTW 09 1 CALICE Software Niels Meyer DESY Hamburg Roman Pöschl LAL Orsay LCTW09 Orsay/France November Calice Testbeam Data Taking.
L1Calo DBs: Status and Plans ● Overview of L1Calo databases ● Present status ● Plans Murrough Landon 20 November 2006.
1 MC Production and Reconstruction Summary and Plans Valeria Bartsch, Fabrizio Salvatore, A.-M. Magnan, and Nigel Watson.
Rainer Stamen, Norman Gee
Calice Days DESY Hamburg Feb. 2007
Online Database Work Overview Work needed for OKS database
Final CALICE OsC meeting: Status and summary of project
Online Monitoring : Detector and Performance check
on behalf of ATLAS LAr Endcap Group
Progress on NA61/NA49 software virtualisation Dag Toppe Larsen Wrocław
CMS High Level Trigger Configuration Management
MICE Collaboration Meeting Saturday 22nd October 2005 Malcolm Ellis
Calibrating ALICE.
Existing Perl/Oracle Pipeline
Testbeam Timing Issues.
Valeria Bartsch UCL David Decotigny LLR Tao Wu RHUL
Technical Board – DCAL Software
E. Garutti - Main Meeting
ATLAS DC2 & Continuous production
M. Kezunovic (P.I.) S. S. Luo D. Ristanovic Texas A&M University
Status and plans for bookkeeping system and production tools
Chapter 13: I/O Systems.
Presentation transcript:

Roman Pöschl CALICE Software Review 1 Details of CALICE Software Model Roman Pöschl LAL Orsay CALICE Software Review 18/12/07 Part I: Calice Dataprocessing - Calice Testbeam Data Taking - Data Management - Event Building and Reconstruction Software - Summary Part II: Conditions Data Handling - Conditions Data, LCCD, Database and all that - Discussion of critical items - Summary and Outlook

Roman Pöschl CALICE Software Review 2 Part I Calice Dataprocessing

Roman Pöschl CALICE Software Review 3 TheThe The Three Pillars of Calice Software ILC Software GRI D Database In the following I will outline how these tools are employed and work together and how the objectives are met See talk this afternoon Objectives explicitly: - Application of general ILC Software tools where possible and therefore benefiting from general developments of the ILC Software. At the same time the application of these tools allow for the identification of the needs of the ILC Software for real data already at an early stage of the R&D phase - Since test beam data are taken at different locations they have to be independent of the experimental site This leads to the employment of grid tools - High data integrity which demands the employment of database mechanism - As many users as possible as possible are to get involved in the analysis effort therefore the entry points for an easy start-up of the analysis have to be provided

Roman Pöschl CALICE Software Review 4 CALICE collaboration is preparing/performing large scale testbeam Data taking in Summer 2006/2007 Testbeam program poses software/computing “ challenges” - Data processing from Raw Data to final Clusters in a coherent way - Handling of Conditions Data Detector Configuration Calibration, Alignment etc. -Comparison with simulated data 'Physics' Output TCMT O(15000) calorimeter cells readout by Calice DAQ No Zero Suppression CALICE Testbeam Data Taking Testbeam Setup at CERN 2007 ECA L Analogue HCAL TCMT

Roman Pöschl CALICE Software Review 5 CALICE “TIER 0” – Infrastructure in the Control Room DAQ Computer Disk Array caliceserv.cern.ch - Online Monitoring - Grid Transfers Gigabit Uplink - High Speed Connection to the outside world - Serves all Calice Control Room Computers Picture courtesy of C. Rosemann DESY Well organized setup of computing Thanks to B. Lutz

Roman Pöschl CALICE Software Review 6 CALICE - CERN Data taking 2006/2007 ~200 Mio Events in 'Physics' Runs + O(50 Mio). Muon Calibration Events) Efficient and fast way of data distribution and processing ? Calibration Runs B r e a k B. Lutz, DESY

Roman Pöschl CALICE Software Review 7 Data Handling and Processing DESY dcache (backbone) Mass Storage ~16 TByte for /3 binaries 1/3 converted files Data Replication MC Production started in UK Grid UI for direct access Grid CE for massive processing Experimental Site e.g. CERN Local Storage for online monitoring and fast checks Data Transfer using Grid Infrastructure Speed up to 240 MBit/s in2p3 Lyon fallback site - Raw Data are (usually) available ~20 Min. after Run End - Delay of Converted Files (usually) < 1 day

Roman Pöschl CALICE Software Review 8 The Virtual Organisation - vo calice Hosted by DESY: Page for registration is VO Manager: R.P./LAL, Deputy: A. Gellrich/DESY 58 Members and counting... 8

Roman Pöschl CALICE Software Review 9 Supported by: DESY Hamburg Hosting, Computing and Storage LAL Computing and Storage LLR Computing and Storage DESY Zeuthen Computing and Storage Imperial College Computing and Storage Birmingham Computing and Storage cc in2p3 Lyon Computing and Storage Cambridge Computing and Storage Institute of Physics Computing and Storage Prague (in preparation) University College Computing and Storage KEK Computing and Storage Manchester Computing and Storage CIEMAT Madrid Computing and Storage Fermilab Computing and Storage Exploit started between Fermilab and NIU Colleagues Univ. Liverpool Resources Provided (not yet exploited) Univ. Regina Offer Received Institutes which provide Grid support for Calice - Most of the sites have been involved in recent data and MC processing Smaller Problems at Manchester and KEK (about to be solved)

Roman Pöschl CALICE Software Review 10 Conversion to LCIO DAQ data types are converted/wrapped into LCIO on the basis of LCGenericObjects DAQ Data Files/Types Configuration Data + Slow Control Data Event Data Trigger Data Event Building in lcioconverter LC Event Preliminary checks of data integrity Conversion of 2 Gbyte 'native' file with Hz on a standard Grid WN Further Processing within MARLIN Framework Calice db at DESY MySQL Remark: LCIO and ILC software framework is not needed to analyze calice data but using it delivers important input for future ILC s/w development -> General ILC Concept for low level data handling Conditions Data are handled with LCCD Run stable over all 300 Mio. Events

Roman Pöschl CALICE Software Review 11 Intermezzo: Important Definitions Expert: Person who by position or charge (i.e. In a task force) is entrusted/responsible with preparation and running of the reconstruction jobs More general, person who is able to run the reco job User: Person which starts his/her analysis on the reconstruction files

Roman Pöschl CALICE Software Review 12 Calice Software Three main packages Contributions by groups from DESY, Imperial, LAL, LLR, NIU, RHUL calice_lcioconverter calice_userlib calice_reco Current version v converts calice DAQ format into LCIO (LCGenericObjects) needs DAQ software expert work MARLIN processors Current version v04-10 Interface classes to LCGenericObjects utililty functions e.g. For TriggerHandling Current version v04-06 RawData into CalorimeterHits (standard LCIO) TrackerHits First stages of higher level analysis MARLIN processors 225 classes or functions Data of four different Calorimeter Prototypes are available in LCIO format

Roman Pöschl CALICE Software Review 13 Calice Software Three main packages More details calice_lcioconverter calice_userlib calice_reco Central Library for calice Should be free in dependency of third party packages such as root To be linked against. user applications Clear Expert work No user should link against it Expert work No user should link against it Systematic Studies which require a re-running of the reconstruction are to be performed by dedicated task forces These packages might be completed by a forth package calice_analysis which should contain algorithms needed for analysis (and may depend on third party packages)

Roman Pöschl CALICE Software Review 14 Conditions Data CaliceTriggerProcessor common to all reco Input Trigger Mapping Main Word Search Trigger History Trigger Fifo Trigger Assignment TriggerDelay Nominal Mainword LCIO Stream TriggerBits Event Flags SimpleHitSearch Pedestal Calculation Pedestal Corrections Noise Calculation (for MC) ADC Values Cell Mapping Module /Cell Dimensions RawCaloHits CalibrateAndApplyThreshold Zero Suppression Calibration Calib Const. LCCaloHits LCIO File TBEcalDigitisationProcessor Smearing of Calo Hits Adding of cells not appearing in MC SimCaloHits RawCaloHits Noise. Const. Example for Data Processing - SiW Ecal MC Branch: Graphic following template by G. Gaycken

Roman Pöschl CALICE Software Review 15 Conditions Data CaliceTriggerProcessor common to all reco Input Trigger Mapping Main Word Search Trigger History Trigger Fifo Trigger Assignment TriggerDelay Nominal Mainword LCIO Stream TriggerBits Event Flags SimpleHitSearch Pedestal Calculation Pedestal Corrections Noise Calculation (for MC) ADC Values Cell Mapping Module /Cell Dimensions RawCaloHits CalibrateAndApplyThreshold Zero Suppression Calibration Calib Const. LCCaloHits LCIO File TBEcalDigitisationProcessor Smearing of Calo Hits Adding of cells not appearing in MC SimCaloHits RawCaloHits Noise. Const. Real Data Branch: MC Branch: Graphic following template by G. Gaycken Common to Data and MC

Roman Pöschl CALICE Software Review 16 Reconstructed LCIO files are entry point for newcomers... and starting point of high level analysis Main Line: Should contain only objects as defined by the LCIO data model Contain e.g. 'familiar' CalorimeterHits Principle violated for testbeam tracking (can/should be changed) Unavoidable that the reco files contain 'calice specific' data which can however be accessed by the userlib functions No additional information e,g, from database is needed (as the analyses become sophisticated it looks as if this principle cannot be maintained anymore, see later) Future: Reco files are to be more exploited by an calice_analysis package which is under discussion e.g. Different clustering algorithms, PFAs (?) Track Extrapolation Rule: Classes needed to interpret the 'calice specific' data types go into userlib Classes needed for analysis and go beyond interpretation go to analysis package

Roman Pöschl CALICE Software Review 17 Reconstruction Input - Triggerinformation TriggerMapping (ie. Bits to meaning) defined in database One common class to handle triggers Evaluation of trigger info is tightly coupled to datatypes delivered by calice DAQ - Mapping and Alignment Common classes structure for (currently) three calice detectors Detector specific information is stored in database (e.g. Relation hardware index 'Mokka' index) Access functions are the same for all detectors

Roman Pöschl CALICE Software Review 18 Mapping and Alignment - Details Module Index arbitrary number ModuleConnection Class contains crate, slot, FE layer id module type Module Position ModuleLocation Class Position of modules in subdetector coordinate frame Module Details ModuleDescription class 'Cell Shape' Relation between cell position in r/o sequence and 'Mokka' index Position of cell w/i module Layer id* Module Type Detector independant but hardware dependant (Largely) Detector independant Detector dependant Positioning in world coordinate frame by dedicated class DetectorTransformation Scheme invented for SiW Ecal by G. Gaycken and adopted by AHCal and TCMT *+ indicator to account for vertical subdivision of Ecal

Roman Pöschl CALICE Software Review 19 Additional Complications - Calice takes data at different Locations CERN, DESY and FNAL (in 2008) sometimes even parallel There could have been in principle parallel datataking of several detectors at the same location - Marlin Program execution is piloted by a steering file  different steering files for the reconstruction job Mainly due to different database folders Details on database see this afternoon

Roman Pöschl CALICE Software Review 20 Steering Files - Details - DESY Ecal Running Steering File - CERN Running steering files for three running modes ecal, hcal only combined running In practice 4 to account four periods with missing Hcal Constants Missing calibration constants lead to a significant slow down of job execution time due to large number of thrown exceptions due to missing database entries (can be improved by redesign of Hcal calibration folders in database) - CERN Running 2007 Three steering files (same as 2006) - FNAL Running 2008 DHCAL and ScintEcal to be integrated Additional steering files needed depending on 'detector' permutations

Roman Pöschl CALICE Software Review 21 Steering Files – Details cont'd - Different steering files (for DESY and CERN Running) created from two (three) template steerings during submission of grid jobs One for desy and one(two) for cern, the latter again due to missing calibration constants for parts of the running At FNAL we should able to work with one template steering - Automatization? i.e. Automatic recognition of experimental setup and fetching of database constants w/o steering Running the reconstruction is expert work (i.e. Composition of the steering) Considerable Effort to automize the correct fetching of db constants Propose to stick to the current concept Users can nevertheless fetch a working steering file from grid The used steering is copied together with the reconstructed run

Roman Pöschl CALICE Software Review 22 A view to the Monte Carlo Branch ● Model for the simulation of the CERN (and DESY)test beam is available (in release p03 of Mokka) Common effort of groups at RHUL, DESY, LLR, NIU Do use grid for MC production DESY, RAL, LLR

Roman Pöschl CALICE Software Review 23 Geometry Definitions: Mokka database Calice database E. Garutti Si-W ECAL Scint. Tiles-Fe AHCAL Scint. Strips-Fe TCMT Mokka db for Simulation Calice db for Reconstruction Might lead to conflicts if simulated setup different from reality Needed to simulated run conditions beam energy etc.

Roman Pöschl CALICE Software Review 24 Geometry Definitions: Mokka database Calice database E. Garutti Si-W ECAL Scint. Tiles-Fe AHCAL Scint. Strips-Fe TCMT Mokka db for Simulation Calice db for Reconstruction Might lead to conflicts if simulated setup different from reality Envisaged step Unification i.e. Feed mokka drivers from calice db Needed to simulated run conditions beam energy etc.

Roman Pöschl CALICE Software Review 25 On Digitisation and Strategy to Produce MC - Currently two different ways to digitize SiW Ecal and Ahcal, i.e. Noise overlay SiW Ecal stores (average) noise in database Ahcal intends to work with noise event overlay Honest: I don't enough insight in the details to say more on this at this stage - Since experimental conditions may vary on a run by run basis (e.g. Dead Channels) simulation has to be done according to specific run conditions i.e. MC and data files for each run using the same reco version

Roman Pöschl CALICE Software Review 26 Summary and Conclusion - Calice has a working software chain based on ILC Software Grid Infrastructure - Approach allows for analysis of e.g. Ecal data at > 6 different institutes without major startup problems and expert knowledge - Common classes to define e.g. geometries for different detectors In principle every calice detector can use these classes - General Deficits in design due to the following reasons - Common approach not always in mind of collaborators - Reconstruction software started out from Ecal (therefore strong Ecal Legacy but other detectors were kept in mind) At a given point we had to take what was there Lead to the fact that badly tailored s/w survive in the software - Design phase basically in parallel to data taking This is true for many parts of the calice software Growing (user) community which understands the advantage of a common approach ask for a sharpening of rules and underlying concepts That's why we are here

Roman Pöschl CALICE Software Review 27 Annex A Software packages needed by Experts: calice_reco (+further dependencies), calice_userlib, (calice_analysis) LCIO, Marlin, LCCD, CondDBMySQL Users: LCIO, calice_userlib (indispensable) (calice_analysis (recommended) ) Marlin (highly recommended) LCCD, CondDBMySQL (not needed in first stages of analysis but cannot be excluded, see later) Installation of software will be facilitated by application of cmake building environment which become the standard in calice!!!!

Roman Pöschl CALICE Software Review 28 Annex B: Main Coding Rules or guidelines Formulated for the first time here - Code has to be written in c++ (Extension to java can be considered for the analysis package) - Write code platform independent !!!! - Put comments into the code and prepare for doxygen documentation - Avoid global variables, follow the principle of data encapsulation - Always Initialize variables - No hardcoded parameters, everything has to be steerable - Use stdlib container classes when dealing with arrays Even on the expense of performance penalty - In general, use stdlib methods whereever possible - use c++ methods and not c like methods - Don't work with pointers (or justify why you cannot avoid it) - Don't use 'new' operator (or justify why you cannot avoid it) - Avoid termination of a program in case you enter an odd situation in your package, i.e. No 'assert' (can be used for debugging) Rather use std::exception mechanism and 'throw try catch' - Avoid complicated inheritance structures or templates (or justify why you need them)

Roman Pöschl CALICE Software Review 29 Part II: Conditions Data Handling Based on a talk I gave at the Calice Collaboration Meeting NIU March 2005 which in turn makes largely use of talks by F. Gaede on the topic

Roman Pöschl CALICE Software Review 30 Introduction to LCCD LCCD – Linear Collider Conditions Data Framework: Software package providing an Interface to conditions data database LCIO files Author Frank Gaede, DESY Conditions Data: all data that is needed for analysis/reconstruction besides the actual event data typically has lifetime (validity range) longer than one event can change on various timescales, e.g. seconds to years need for tagging mechanism, e.g. for calibration constants

Roman Pöschl CALICE Software Review 31 Sources of Conditions Data – Use Cases Simple(LCIO)File Database Snapshot of DB stored in LCIO File ConditionsData flowing with event stream

Roman Pöschl CALICE Software Review 32 Simple(LCIO)File Database Snapshot of DB stored in LCIO File ConditionsData flowing with event stream Sources of Conditions Data – Use Cases

Roman Pöschl CALICE Software Review 33 ConditionsDBMySQL – Overview Digged out and explored out by Frank Gaede for us Interfaced to LCCD by Frank ● Open source implementation of CondDB API – Conditions data interface for ATLAS (Cern IT) ● developed by Lisbon Atlas group ● features – C++ interface to conditions database in MySQL – data organized in folder/foldersets – objects stored as BLOBs (binary large objects) e.g. LCIO objects or std::vector..... – tagging mechanism similar to CVS – scalability through partitioning options – outperforms implementation based on Oracle

Roman Pöschl CALICE Software Review 34 ConditionsDBMySQL – Folder Organization | fld_id | fparent | insert_t | fpath | fdesc | fattr | ddtype | db_id | is_se | | 1 | 0 | | / | romans new folder | | 0 | 1 | 1 | | 2 | 1 | | /roman | romans new folder | | 0 | 1 | 1 | | 3 | 2 | | /roman/mapfolder | romans new folder | | 0 | 1 | 0 | | 4 | 2 | | /roman/calibfolder | romans new calib folder | | 0 | 1 | 0 | | 5 | 1 | | /lccd | | | 0 | 1 | 1 | | 6 | 5 | | /lccd/myhcal | | | 0 | 1 | 0 | | 7 | 1 | | /lccd_calice | | | 0 | 1 | 1 | | 8 | 7 | | /lccd_calice/CellMap | | | 0 | 1 | 0 | UNIX-Like Tree Structure Each Folder Contains one set of ConditionsData LCCD provides Streamer Methods to read LCIO data types back from DB Access via Folder Name Folders have to be filled by us (templates do exist)

Roman Pöschl CALICE Software Review 35 ConditionsDBMySQL – Versioning of Conditions Data CVS-like management system 'Horizontal' and vertical browsing in time possible Time Stamp (by LCCD) in units of nanoseconds

Roman Pöschl CALICE Software Review 36 CALICE Database Hosted by DESY Trigger Info: Assignment of triggerbits Trigger Configuration Info to validate Trigger information Calibration Data Cell Mappings: Relation electronic channel and geometrical channel i.e. Cabling of devices Hardware configuration during data taking. Attempt to visualize Conditions Data (S.Schmidt, M.Schenk, R.P.) Largely used by R.P. To inspect data Might need to be advocated to larger community

Roman Pöschl CALICE Software Review 37 Validity Range for Conditions Data Conditions Data in CALICE Database Tags Time Layer/Cycle Number Organization of Conditions Data in terms of time stamps requires the creation of different folders in case of parallel data taking!!!

Roman Pöschl CALICE Software Review 38 Acessing ConditionsData Using LCCD – Users Point of View MARLIN is prepared to deal with Conditions Data (Note: LCCD does not depend on MARLIN and vice versa) - Source of ConditionsData defined in MARLIN steering File e.g. ConditionsData for Cell Mapping from DB - Handling of Conditions Data (updating etc.) within a ConditionsProcessor (provided by MARLIN) User has to provide ChangeListeners which will be notified if Conditions Data Change - Code is completely transparent to Conditions Data Source DBCondHandler channelmap /lccd_calice/CellMap V00-01 Access to Conditions Data should always happen via the LCCD Interfaces!!!! And yes, this implies that users have to learn LCCD!!! Stronger user support by (calice) experts clearly needed

Roman Pöschl CALICE Software Review 39 Conditions Data and Systematic Studies - The running of a database is indispensable for and experiment as big as calice allows e.g. for quick reproduction of running conditions - The interface to the database (or better conditions data) may lack convenience However, all studies needed can be done with the available software - As of today systematic studies as e.g. varying the calibration constants do need a re-running of the reconstruction (different collections in raw and reco files) In principle no database access is needed for these LCCD allows for other sources (see above) => New set of calibration constants can be put into (LCIO) files The following use cases can be imagined =>

Roman Pöschl CALICE Software Review 40 Systematic Studies – Use Cases User made set of calib constants true to format needed for reco stored in a (LCIO) file do not to be stored into a db 'Usual' Reconstruction note that other processors might need the database Hand tailored set of calibration constants e.g. Flat file User defined processors to be run on CaloHit collections in reco files (can be standardized) The latter scenario however might lead to conflicts with other cuts applied earlier in reco (e.g. noise cuts) Please note that conditions data does not mean automatically literal database access, can e.g. work with a snapshot of the db It means however using the LCCD interfaces!!!

Roman Pöschl CALICE Software Review 41 Conditions Data – Critical Issues - Starting Point: Nothing else but LCIO needed to work with reco files (+userlib to interpret calice specific data stored in LCGenericObjects), i.e. no LCCD - ~95% of the conditions data are handled currently in the reco job and hidden from the user (i.e. Non expert) (As experience and sophistication of analysis grows) Analysis might require to access conditions data not yet handled Users have to be ready to use LCCD also during analysis since it is difficult to predict what might be needed - There are sets of conditions data useful for analysis, e.g. Dead Cell Map a) Only Storage in database b) Identify these data and attach them to the (first) event in addition to the storage in the database a) is the cleanest solution (and my proposal)!!! In any case access to be performed via LCCD interface Easy benefit from updates of this map - Studies of different Alignments Looks like we have to store the difference to the default alignment into the file – Details to be discussed

Roman Pöschl CALICE Software Review 42 Conditions Data Handling – General Comment, Guidelines and Improvements(?) General Comment: - The handling of ~95% of the conditions data is already handled and hidden from the user e.g. Details of the trigger handling (Default) Alignment Application of Calibration Constants Guideline: - (Again) If conditions data apart from these are needed use the Lister Pattern Improvements(?): - Trust the handling of 'identified as being important' conditions data to manager/handler classes which may act as Singleton User can (even outside processors) use the interface classes to access important conditions data Done already for the trigger handling The latter is a still a bit doubtful since it has no correspondenc in ILC Software and will remain naturally calice tailored/calice specific

Roman Pöschl CALICE Software Review 43 Conditions Data - Summary - Conditions Data are an integral part of the calice data processing First experiment withing ILC which produce these data extensively - LCCD allows to handle conditions data in a clean way Common interfaces for different sources - Users have to be prepared to use LCCD Still a major step which users like to circumvent Better training, examples needed - Need to define a strategy to handle conditions data which are intimately needed for analysis or which might need to be changed for systematic studies at the 'core' of the data processing, i.e. During MC simulation