Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / 20.4.2005 / Matthias Schneebeli ROME Wednesday Seminar Presented by Matthias Schneebeli a universally.

Slides:



Advertisements
Similar presentations
H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2004 Go4 v2.8 Analysis Design.
Advertisements

O. Stézowski IPN Lyon AGATA Week September 2003 Legnaro Data Analysis – Team #3 ROOT as a framework for AGATA.
SUNY Morrisville-Norwich Campus-Week 12 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
© Prentice Hall CHAPTER 3 Computer Software.
Guide To UNIX Using Linux Third Edition
C++ fundamentals.
1 Exception and Event Handling (Based on:Concepts of Programming Languages, 8 th edition, by Robert W. Sebesta, 2007)
New Features of APV-SRS-LabVIEW Data Acquisition Program Eraldo Oliveri on behalf of Riccardo de Asmundis INFN Napoli [Certified LabVIEW Developer] NYC,
CLEO’s User Centric Data Access System Christopher D. Jones Cornell University.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Sept 11, 2003ROOT Day1, Suzanne Panacek39 ROOT An object oriented HEP analysis framework. Day 1.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Zhonghua Qu and Ovidiu Daescu December 24, 2009 University of Texas at Dallas.
UNIX SVR4 COSC513 Zhaohui Chen Jiefei Huang. UNIX SVR4 UNIX system V release 4 is a major new release of the UNIX operating system, developed by AT&T.
Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Root based Object oriented Midas Extension Presented by Matthias.
Shuei MEG review meeting, 2 July MEG Software Status MEG Software Group Framework Large Prototype software updates Database ROME Monte Carlo.
Introduction to Hall-D Software February 27, 2009 David Lawrence - JLab.
Imperial College Tracker Slow Control & Monitoring.
Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Root based Object oriented Midas Extension Presented by Matthias.
Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Softies Meeting Presented by Matthias Schneebeli.
As of 28 Juni 2005Getting Starged with GEM - Shuei Yamada 1 Getting Started with GEM Shuei YAMADA ICEPP, University of Tokyo What is GEM? Before you start.
CSE 219 Computer Science III Program Design Principles.
Update on the new reconstruction software F. Noferini E. Fermi center INFN CNAF EEE Analysis Meeting - 14/09/20151.
14 February 2007Fabrizio Cei1 INFN and University of Pisa PSI Review Meeting PSI, 14 February 2007 Status of MEG Software.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Prediction W. Buchmueller (DESY) arXiv:hep-ph/ (1999)
Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME CHEP 2006 Presented by Matthias Schneebeli a universally applicable.
Introduction to Processing. 2 What is processing? A simple programming environment that was created to make it easier to develop visually oriented applications.
ROOT What & Why? ROOT Status ROOT Application ROOT Install ROOT Example ROOT References Introduction to March 13, 2003 Dae Jung CHEP.
H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2003 GSI Online Offline Object Oriented Go4.
News on GEM Readout with the SRS, DATE & AMORE
Tracker Visualization Tool: integration in ORCA Maria S. Mennea, Giuseppe Zito University & INFN Bari, Italy Tracker b-tau Cosmic Challenge preparation.
Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME CHEP 2006 Presented by Matthias Schneebeli a universally applicable.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Paul Scherrer Institut 5232 Villigen PSI CHEP 2006 in Mumbay / / Matthias Schneebeli ROME CHEP 2006 Presented by Matthias Schneebeli a universally.
Talk. Paul Scherrer Institut 5232 Villigen PSI CHEP 2006 in Mumbay / / Matthias Schneebeli ROME CHEP 2006 Presented by Matthias Schneebeli a.
Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Root based Object oriented Midas Extension Presented by Matthias.
SoLID simulation with GEMC Zhiwen Zhao 2015/03/26.
Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Collaboration Meeting in Pisa Presented by Matthias Schneebeli.
Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Wednesday Seminar Presented by Matthias Schneebeli a universally.
Online Monitoring System at KLOE Alessandra Doria INFN - Napoli for the KLOE collaboration CHEP 2000 Padova, 7-11 February 2000 NAPOLI.
Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Root based Object oriented Midas Extension Presented by Matthias.
TDAQ Experience in the BNL Liquid Argon Calorimeter Test Facility Denis Oliveira Damazio (BNL), George Redlinger (BNL).
M. Oldenburg GridPP Metadata Workshop — July 4–7 2006, Oxford University 1 Markus Oldenburg GridPP Metadata Workshop July 4–7 2006, Oxford University ALICE.
October Test Beam DAQ. Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram.
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
S.Linev: Go4 - J.Adamczewski, H.G.Essel, S.Linev ROOT 2005 New development in Go4.
The MEG Offline Project General Architecture Offline Organization Responsibilities Milestones PSI 2/7/2004Corrado Gatto INFN.
GLAST 1 Event Display VRVS meeting Glast software collaboration Pisa experience with ROOT N Lumb and G Spandre INFN-Pisa.
1 G4UIRoot Isidro González ALICE ROOT /10/2002.
Go4 Workshop J.Adamczewski-Musch, S.Linev Go4 advanced features.
Talk. Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Softies Meeting Presented by Matthias Schneebeli.
AliRoot Classes for access to Calibration and Alignment objects Magali Gruwé CERN PH/AIP ALICE Offline Meeting February 17 th 2005 To be presented to detector.
Thomas Ruf, CERN EP Experience with C++ and ROOT used in the VX Beam Test Thomas Ruf, CERN, EP  Why? Event structure for VX-data rather complex: raw hits.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Root based Object oriented Midas Extension Presented by Matthias.
May 18th, 2003 RT2003, Montreal1/100 MIDAS Short Course Stefan Ritt (Paul Scherrer Institute, Switzerland) Pierre André Amaudruz (TRIUMF, Canada)
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
Fermilab Scientific Computing Division Fermi National Accelerator Laboratory, Batavia, Illinois, USA. Off-the-Shelf Hardware and Software DAQ Performance.
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
Go4 v2.2 Status & Overview CHEP 2003
CSC 222: Object-Oriented Programming
Presented by Matthias Schneebeli
CMS High Level Trigger Configuration Management
Key Ideas from day 1 slides
Distributed object monitoring for ROOT analyses with Go4 v.3
ROME Root based Object oriented Midas Extension
Talk.
Presentation transcript:

Talk

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Wednesday Seminar Presented by Matthias Schneebeli a universally applicable analysis framework generator

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Index Short introduction to ROOT Data acquisition/analysis Introduction to the ROME Environment o Objects inside ROME Projects o The code generation mechanism Monitoring Tools o Argus o Roody

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Short introduction to ROOT

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli What’s ROOT ? ROOT is an object oriented HEP analysis framework It provides class libraries for o handling and analyzing large amount of data o data visualization o Monte Carlo, parallel processing, …

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Three User Interfaces GUI windows, buttons, menus Root Command line CINT (C++ interpreter) Macros, applications, libraries (C++ compiler and interpreter) int main() { TH1F *h; h = new TH1F(“h“); h->Fill(1); h->Draw(); TBrowser t; }

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROOT vs. PAW Regular grammar (C++) on command line Single language (compiled and interpreted) Object Oriented (use your class in the interpreter) Advanced Interactive User Interface Object I/O including Schema Evolution 3-d interfaces with OpenGL and X3D. Well Documented code. HTML class descriptions for every class.

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Root > float x=5, y=7; Root > x*sqrt(y) (double) e+01 Root > TF1 fl(“fl”,”sin(x)/x”,0,10) Root > fl.Draw() Example of a ROOT interactive session

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Histogram Views All these plots can be rotated with the mouse

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Data acquisition/analysis

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli DAQ Setup Event buffer LoggerAnalyzer Run control Trigger Front-end Histogram display VME CAMAC Tape Back-end computer Office computers WWW ROME Argus, Roody

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Introduction to ROME

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Framework Requirements Object oriented Program should deal with objects, not with single values. Modular Possibility to easy exchange calculation modules. Universal The framework should be usable by as many experiments as possible. Easy to use The user should write as less and as simple code as possible.

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME Objects Folders Data objects in memory Tasks Calculation objects Trees Data objects saved to disc Histograms Graphical data objects Steering Parameters Framework steering Midas Banks Midas raw data objects ROME Objects : Only 6 different objects. Access methods have same naming conventions

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Interconnections Folders Tasks Fill Read Trees Fill Flag Histograms Fill Disk (Output) Write (ROOT) Disk (Input) Read (any Format)

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ADC Bank Value 1 Value 2... DMND Bank Value 1 Value 2... From Banks to Folders PMT Folder ADC TDC X x PMT Folder ADC TDC X x PMT Folder ADC TDC HV demand HV measured HV current Scaler Readout values of a sub-detectors Sub-detector with all it’s readout values TDC Bank Value 1 Value 2... SCLR Bank Value 1 Value 2... MSRD Bank Value 1 Value 2... CRNT Bank Value 1 Value 2...

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ADC counts TDC header chn./value Pedestal subtraction Counts -> Charge Decoding (chn./crate/… -> number) Offset correction Mapping ADC/TDC -> counter Raw data *.root Decoded data *.root Object data *.root Optional analysis of decoded data High level analysis Task Banks ROME folder Proposed Analysis Structure ADC charge TDC time Hit charge time HV scaler Hit charge time HV scaler Hit charge time HV scaler

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Modularity ROME is based on Tasks and Folders. Tasks are independent calculation modules. The interface to the tasks are folders. Tasks can be combined or exchanged arbitrarily, as long as the interface matches. E.g. one can execute different calibration tasks without re-linking. A1A2B1A3B2 A4  Possible even during runtime

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME is clearly separated into an experiment independent part of the framework e.g. Event loop, IO, Database access. Works for all event based experiments an experiment dependent part of the framework e.g. Data structure, program structure Summarized in a framework definition file. Translated into c++ code by the ROMEBuilder. the calculation code Has to be filled in by the experimenter Universality Part of ROME Generated by ROMEBuilder Written by the user

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli The framework generation ROMEBuilder o Translation program. o Reads in a XML framework definition file and translates this information into c++ code. o Links the generated project. o Documents the generated project. o Like the MAKE command in ODBEdit ROME classes Summarization XML File ROME classes Exp. classes ROMEBuilder Executable Documentation Project ROME Environment Add calculation code

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Introduction to XML Extensible Markup Language (XML) Standardized ascii format Tree structure Syntax is similar to html Ferrari Red Fiat Blue Bianchi White XSD File XML File

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli XML Project Definition File Folder definitions … Task definitions … Tree definitions … Steering Parameters definitions … Midas Bank definitions … Folder Classes Analyzer Class Task Classes

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Folders Folder Name Field Name 1 Field Type 1 Field Name 2 Field Type 2 XML File [Field Type 1] Get[Folder Name]()->Get[Field Name 1](); void Get[Folder Name]()->Set[Field Name 1]([Field Type 1] value); Code

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Task Name … XML File void [Experiment Shortcut]T[Task Name]::Init() { } void [Experiment Shortcut]T[Task Name]::BeginOfRun() { } void [Experiment Shortcut]T[Task Name]::Event() { } void [Experiment Shortcut]T[Task Name]::EndOfRun() { } void [Experiment Shortcut]T[Task Name]::Terminate() { } Code Tasks

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Easy to use User can summarize the experiment dependent part of the framework in a XML file. The XML file is then translated by the romebuilder into c++ code. The user adds only calculation code to predefined event methods of the tasks. Calculation code is ‘c-code’.

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Benefit of a generated Framework Consistent Program Structure o All classes look the same o Better readability Less Handwritten Code o Code of a class is written once (in the builder) and reproduced many times Easier Maintenance o Modification are done once (in the builder) and then available in the whole framework

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Configuration File 1001, offline midas Task 1 yes/no Value 123 XML File

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Program structure Start read configuration file BOR EOR Event read database fill tree read raw data write tree End of Analysis Start ROOT interactive session

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Run Program C:\Sample> ROMEBuilder.exe sample.xml link messages C:\Sample> XYZ q : Terminates the program e : Ends the program s : Stops the program r : Restarts the program c : Continuous Analysis o : Step by step Analysis g : Run until event # i : Root interpreter root [0] TBrowser t root [1] cout GetPMTData()->GetADC() Windows

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Monitoring Tools

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Monitoring ROME Objects ROME can distribute objects over a socket interface.  Any third party application can access and even modify ROME objects.  The distribution of the objects goes over the network.  Used for monitoring/displaying ROME objects  Users can display online histograms. E.g. at home.

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ARGUS Written by Ryu Sawada Experiment independent GUI framework Helps to write an full experiment dependent event display Provides connection to oROME oMidas Analyzer oSQL Database, Midas ODB

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Socket Connections Argus Network MIDAS Analyzer ROME Database

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ARGUS Samples

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROODY Written at the Triumf, Vancouver Histogram Display Final application (unlike ARGUS) but only for histograms Provides connection to oROME oMidas Analyzer

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROODY Samples

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Summary ROME is a framework generator. Only 6 different objects with up to 6 access methods. All classes are generated, only event methods have to be written. No knowledge about object oriented programming is needed. Folders and Tasks support a very clear program structure. Modularity : tasks can be easily exchanged even at runtime. Socket connection to third party applications

Sample

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Sample Experiment

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Sample Overview 2 Folders o PMTData o Calib(Data base) 2 Tasks o ReadMidas o ADCCalib 1 Midas Bank o ADC0

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli XML Definition File I PMTData 228 ADC Float_t PMTCalib 228 true ADCPedestal Float_t /RunCatalog(id=#)/LPCalib[0,227]/pedestal sample.xml

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli XML Definition File II ReadMidas ADCCalib ADCHisto TH1F ADC0 unsigned short sample.xml

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Read Midas Task void XYZTReadMidas::Event() { for (int i=0;i<228;i++) { Float_t adcValue = gAnalyzer->GetADC0BankAt(i); gAnalyzer->GetPMTDataAt(i)->SetADC(adcValue); } XYZTReadMidas.cpp

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ADC Calibration Task void XYZTADCCalib::Event() { for (int i=0;i<228;i++) { float pmtData = gAnalyzer->GetPMTDataAt(i)->GetADC(); float pedestal = gAnalyzer->GetCalibAt(i)->GetADCPedestal(); FillADCHistoAt(i,pmtData - pedestal); } void XYZTADCCalib::EndOfRun() { for (int i=0;i<228;i++) { DrawADCHistoAt(i); } XYZTADCCalib.cpp

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Run Program C:\Sample> ROMEBuilder.exe sample.xml link messages C:\Sample> XYZ q : Terminates the program e : Ends the program s : Stops the program r : Restarts the program c : Continuous Analysis o : Step by step Analysis g : Run until event # i : Root interpreter root [0] TBrowser t root [1] cout GetPMTData()->GetADC() Windows

ROME vs. AliROOT

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Comparison of AliROOT and ROME

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME vs. AliROOT ROMEAliROOT Usable for MEG ?Used by the ALICE collaboration. (Maybe also others) Used for the LP. Midas Analyzer used for PiBeta. Needed modifications ?Classes have to be modified to match the data structure. Calculation code has to be rewritten. Classes holding data structure have to be generated. Calculation code has to be written. Requirements on the user ?Good knowledge of C++ and object oriented programming. Knowledge of C, no knowledge about OO- programming needed. Question

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Modifications AliROOTFeatures Control ClassesLittle modifications.No changes. Detector Classes (Geometry, clustering, reconstruction, …) Have to be completely rewritten. Classes can only be used as templates. Data structure will be generated. Calculations have to be written. Virtual Monte CarloLittle changes.Can be added easily (ROOT feature). MonitorNeeds modifications.LP monitor. ROME’s online monitor can be used offline! Data baseNeeds modifications.No changes. ROME  Info about AliROOT form Federico Carminati (AliROOT Offline Project Leader)

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Differences between ROME and AliROOT ROMEAliROOT Objects are classes containing calculations and data. Objects are composite items. Calculations and data are strictly separated. C D AB A1A2B1A3B2 A’ A4  Has to be relinked  Tasks have a clearly defined interface  The interfaces are automatically documented by the romebuilder  Possible even during runtime

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Monitors AliROOT LPMonitor

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Summary Both frameworks need about the same amount of work to adopt for MEG. The only question is, which framework is better suited for the MEG collaboration? oLittle experienced programmers can use ROME. oROME is easier to use. oROME generates a framework.

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Comments form the ALICE Collaboration From a mail of Federico Carminati (Offline Project Leader) :  “AliRoot was not meant to be a ‘framework’ for experiments” Out of 51 modules: ElectroMagnetic calorimeter code. To be discarded  AliRoot main program, probably to be modified Methods for the production of raw data. To be modified  Analysis classes, to be modified, possibly lightly Online monitoring code. May be interesting, to be modified  Main steering classes, needs modification Display Code. Has to be modified Interface with the FLUKA MC. Can be reused Event generator interfaces. To be modified

Additional Slides

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli XML Editors XMLSpy -Table Format -Commercial Software (50 Euro) -Only for Windows EditiX -Nice Tree Format -Commercial Software (30 Euro) -Windows, Linux, Mac ROME works with any Editor

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Installation Installation of ROOT Installation of MIDAS (only online, Linux) [~]$ setenv ROMESYS ~/ROME [~]$ setenv PATH $ROMESYS/bin:$PATH [~]$ cvs checkout ROME [~/ROME]$ make [../MyExp]$ romebuilder myExp.xml [-o Output Path] [~/MyExp]$ progname Linux CVS checkout of ROME Define environment variable ROMESYS Define environment variable ‘Path’ C:\> set ROMESYS=C:/ROME C:\> set Path=%Path%;%ROMESYS%/bin C:\> cvs checkout ROME C:\ROME> nmake –f Makefile.win C:\MyExp> ROMEBuilder.exe myExp.xml –v [–o Output Path] C:\MyExp> progname Windows

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Advantages of Proposed Analysis Structure High level analysis accesses data in objects –no knowledge of cable mapping or ADC/TDC decoding necessary ADC/TDC decoding is decoupled from mapping and high level analysis –If ADC/TDC module is changed, only decoding task needs to be changed –If counter is reconnected to different ADC/TDC, only mapping task needs to be changed Data can be stored/retrieved between different tasks in ROOT format –Analyze raw data –Analyze decoded data –Analyze object data

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME vs. Midas Analyzer ROMEMidas Analyzer Banks -> Arrays or structures Folders -> Objects (Classes) odbedit> make -> experim.h containing data structure romebuilder -> classes containing data structure and access methods Midas required for online and offlineMidas not needed for offline Calibration and configuration data in ODBCalibration and configuration data in mySQL, XML,... User code added to BOR,EVENT,EOR functions User code added to BeginOfRun, Event, EndOfRun functions Input format : midasInput format : midas, root Output format : midas, rootOutput format : root

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Features Tool for Event based Data Analysis Fully Object Oriented Root based Full connection to the Midas Environment Online and Offline Based on Tasks and Folders for an easy Data and Program Structure Experiment independent Base Classes Experiment dependent Classes are generated out of simple XML-Files The Users write only experiment specific code (physics) Administrative code is implemented in the generated code Self Documenting Code Self Linking Project

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli ROME classes Tasks Classes in the Generated Project The generated classes are : Task classes o Implement 5 user methods : Init(), BeginOfRun(), Event(), EndOfRun(), Terminate(). Folder classes o Define how the data is stored. Analyzer class o Main class. The Analyzer provides all user-methods. IO class o The IO handles all input and output. Folders ROMEEventLoop Analyzer Folders Steering fAnalyzer IO Trees Data base

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Trees XML File

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli General Steering Parameters XML File [Type 1] GetGSP()->Get[Field 1]() [Type 2] GetGSP()->Get[SubClass]()->Get[Field 2]() Code XML File

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Midas Banks XML File [Type 1] Get[Bank 1]BankAt(int index) Int Get[Bank 1]BankEntries() [Structure Name]* Get[Bank 2]BankAt(int index) Int Get[Bank 2]BankEntries() e.g. : [Type 2] Get[Bank 2]BankAt(int index)->[Field 2] Code Simple BanksStructured Banks

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Comparing to Midas ASUM - Sum - Average In the Online Data Base : In the XML-File : Midas Library is not used for offline analysis

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli class [Experiment Shortcut][Folder Name] : public TObject { protected: [Field Type 1] f[Field Name 1]; // [Comment 1] public: [Experiment Shortcut][Folder Name]([Field Type 1] value1=[Init Value 1] ) { f[Field Name 1] = value1; }; [Field Type 1] Get[Field Name 1]() { return f[Field Name 1]; }; void Set[Field Name 1]([Field Type 1] value1) { f[Field Name 1] = value1; }; ClassDef([Experiment Shortcut][Folder Name],[Version Number]) }; Code Generated Code XML File

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Data base SQL Data base see Ryu’s presentation XML data base If no network connection available

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Read and Write Data Input Data o Root files o Midas files o Online buffer o Data base Output Data o Root files o Database Read by the Framework. Data accessed via Midas Bank access methods. Read and filled to the Folder by the Framework Written by the Framework, can be flagged Written with : fAnalyzer->Write[Folder]DataBase(this);

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Summary Structure of the framework is defined in XML-files All code is generated, except the physical calculations The framework provides access functions for the user SQL Data base XML Configuration file

Paul Scherrer Institut 5232 Villigen PSI ROME / / Matthias Schneebeli Class Structure main Analyzer gAnalyzer ConfigFolders Tasks DB-Classes DAQ-Systems EventLoop