THE SIMULATION- AND ANALYSIS-FRAMEWORK FAIRROOT CHEP 2012, New York.

Slides:



Advertisements
Similar presentations
23/04/2008VLVnT08, Toulon, FR, April 2008, M. Stavrianakou, NESTOR-NOA 1 First thoughts for KM3Net on-shore data storage and distribution Facilities VLV.
Advertisements

O. Stézowski IPN Lyon AGATA Week September 2003 Legnaro Data Analysis – Team #3 ROOT as a framework for AGATA.
ALFA: The new ALICE-FAIR software framework
Reconstruction and Analysis on Demand: A Success Story Christopher D. Jones Cornell University, USA.
EventStore Managing Event Versioning and Data Partitioning using Legacy Data Formats Chris Jones Valentin Kuznetsov Dan Riley Greg Sharp CLEO Collaboration.
CHEP03 - UCSD - March 24th-28th 2003 T. M. Steinbeck, V. Lindenstruth, H. Tilsner, for the Alice Collaboration Timm Morten Steinbeck, Computer Science.
Status and roadmap of the AlFa Framework Mohammad Al-Turany GSI-IT/CERN-PH-AIP.
FairRoot framework Mohammad Al-Turany (GSI-Scientific Computing)
Shuei MEG review meeting, 2 July MEG Software Status MEG Software Group Framework Large Prototype software updates Database ROME Monte Carlo.
IFluka : a C++ interface between Fairroot and Fluka Motivations Design The CBM case: –Geometry implementation –Settings for radiation studies –Global diagnosis.
Root, GLAST, and IDL Heather Kelly NASA/GSFC Emergent Corporation.
IMPLEMENTATION OF SOFTWARE INPUT OUTPUT CONTROLLERS FOR THE STAR EXPERIMENT J. M. Burns, M. Cherney*, J. Fujita* Creighton University, Department of Physics,
Radiation levels in CBM Radiation effects iFluka (Fluka C++ interface to CbmRoot) Fluka Geometry Models Results Conclusion.
IFluka : a C++ interface between Fairroot and Fluka Motivations Design The CBM case: –Geometry implementation –Settings for radiation studies –Global diagnosis.
Implementing a dual readout calorimeter in SLIC and testing Geant4 Physics Hans Wenzel Fermilab Friday, 2 nd October 2009 ALCPG 2009.
ALICE Upgrade for Run3: Computing HL-LHC Trigger, Online and Offline Computing Working Group Topical Workshop Sep 5 th 2014.
David N. Brown Lawrence Berkeley National Lab Representing the BaBar Collaboration The BaBar Mini  BaBar  BaBar’s Data Formats  Design of the Mini 
FAIR Simulation & Analysis Framework FairRoot M. Al-Turany, D. Bertini, F. Uhlig GSI-IT.
DB-based DAQ monitoring and Physics analysis tools Emiliano Barbuto European Emulsion Group (LNGS May 2003)
Event Data History David Adams BNL Atlas Software Week December 2001.
The european ITM Task Force data structure F. Imbeaux.
9 February 2000CHEP2000 Paper 3681 CDF Data Handling: Resource Management and Tests E.Buckley-Geer, S.Lammel, F.Ratnikov, T.Watts Hardware and Resources.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
LOGO PROOF system for parallel MPD event processing Gertsenberger K. V. Joint Institute for Nuclear Research, Dubna.
CBM Software Workshop for Future Challenges in Tracking and Trigger Concepts, GSI, 9 June 2010 Volker Friese.
Andreas Morsch, CERN EP/AIP CHEP 2003 Simulation in ALICE Andreas Morsch For the ALICE Offline Project 2003 Conference for Computing in High Energy and.
ROOT I/O for SQL databases Sergey Linev, GSI, Germany.
Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI,
LOGO Development of the distributed computing system for the MPD at the NICA collider, analytical estimations Mathematical Modeling and Computational Physics.
Simulations for CBM CBM-India Meeting, Jammu, 12 February 2008 V. Friese
H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2003 GSI Online Offline Object Oriented Go4.
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
Simulations and Software CBM Collaboration Meeting, GSI, 17 October 2008 Volker Friese Simulations Software Computing.
CBM Software Meeting 1 CBM Simulation & Analysis Framework Geant3 / Gean4 configuration M. Al-Turany, D. Bertini.
TB1: Data analysis Antonio Bulgheroni on behalf of the TB24 team.
VMC workshop1 Ideas for G4 navigation interface using ROOT geometry A.Gheata ALICE offline week, 30 May 05.
CBM ECAL simulation status Prokudin Mikhail ITEP.
PROOF and ALICE Analysis Facilities Arsen Hayrapetyan Yerevan Physics Institute, CERN.
SoLID simulation with GEMC Zhiwen Zhao 2015/03/26.
Claudio Grandi INFN-Bologna CHEP 2000Abstract B 029 Object Oriented simulation of the Level 1 Trigger system of a CMS muon chamber Claudio Grandi INFN-Bologna.
FairRoot Status and plans Mohammad Al-Turany 6/25/13M. Al-Turany, ALICE Offline Meeting1.
Online Monitoring System at KLOE Alessandra Doria INFN - Napoli for the KLOE collaboration CHEP 2000 Padova, 7-11 February 2000 NAPOLI.
ALFA - a common concurrency framework for ALICE and FAIR experiments Mohammad Al-Turany GSI-IT/CERN-PH.
Geant4 on GPU prototype Nicholas Henderson (Stanford Univ. / ICME)
General requirements for BES III offline & EF selection software Weidong Li.
M. Oldenburg GridPP Metadata Workshop — July 4–7 2006, Oxford University 1 Markus Oldenburg GridPP Metadata Workshop July 4–7 2006, Oxford University ALICE.
Update G4builder issues Talk written almost entirely by Stan Bentvelsen with a few updates from Christopher Lester ATLAS G4 Workshop December 2000 CAMBRIDGE.
The MEG Offline Project General Architecture Offline Organization Responsibilities Milestones PSI 2/7/2004Corrado Gatto INFN.
Requirements for the O2 reconstruction framework R.Shahoyan, 14/08/
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
The HADES Oracle database and its interfaces for experimentalists Ilse Koenig, GSI Darmstadt for the HADES collaboration.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Object-Oriented Track Reconstruction in the PHENIX Detector at RHIC Outline The PHENIX Detector Tracking in PHENIX Overview Algorithms Object-Oriented.
ALFA - a common concurrency framework for ALICE and FAIR experiments Mohammad Al-Turany GSI-IT/CERN-PH.
1 SLAC simulation workshop, May 2003 Ties Behnke Mokka and LCDG4 Ties Behnke, DESY and SLAC MOKKA: european (france) developed GEANT4 based simulation.
Barthélémy von Haller CERN PH/AID For the ALICE Collaboration The ALICE data quality monitoring system.
Tracking, Computing & other Stuff. Correlation of detector hits The track segments of inner and outer MDCs are matched on Cluster level The track segments.
Fermilab Scientific Computing Division Fermi National Accelerator Laboratory, Batavia, Illinois, USA. Off-the-Shelf Hardware and Software DAQ Performance.
GPU's for event reconstruction in FairRoot Framework Mohammad Al-Turany (GSI-IT) Florian Uhlig (GSI-IT) Radoslaw Karabowicz (GSI-IT)
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
PROOF system for parallel NICA event processing
GEANT4 for Future Linear Colliders
EicRoot: a brief overview
CMS High Level Trigger Configuration Management
Event Reconstruction and Data Analysis in R3BRoot Framework
Bonn Test Station data analysis with PandaRoot
Distribution of MC Information
Linear Collider Simulation Tools
Use of Geant4 in experiment interactive frameworks AliRoot
Working with HADES WebDB HADES analysis workshop, Darmstadt, Germany, 31 January - 1 February 2012 Ilse Koenig, GSI Darmstadt Outline: Version management.
Presentation transcript:

THE SIMULATION- AND ANALYSIS-FRAMEWORK FAIRROOT CHEP 2012, New York

Outline  History  Features  New and Recent Projects  Time Based Simulation  Example  Summary and Outlook Florian Uhlig CHEP 2012, New York 2

FairRoot: timeline Florian Uhlig CHEP 2012, New York 3 Start testing the VMC concept for CBM First Release of CbmRoot MPD (NICA) start also using FairRoot ASYEOS joined (ASYEOSRoot) GEM-TPC separated from PANDA branch (FOPIRoot) Panda decided to join-> FairRoot: same Base package for different experiments R3B joinedEIC (Electron Ion Collider BNL) EICRoot

Developer Team Core Team:  Mohammad Al-Turany GSI-IT 2003  Denis Bertini GSI-IT 2003  Florian Uhlig CBM/IT 2006  Radek Karabowicz PANDA/IT 2008  Dmytro Kresan R3B/IT 2011  Tobias Stockmanns PANDA People participated major features:  Ilse König HADES  Volker Friese CBM Florian Uhlig CHEP 2012, New York 4

FairRoot  Framework for simulation, reconstruction and data analysis  Very flexible  No executable Use plug-in mechanism from Root to load libraries only when needed Use Root macros to define the experimental setup or the tasks for reconstruction/analysis Use Root macros to set the configuration (Geant3, Geant4, …)  No fixed simulation model Use different simulation models (Geant3, Geant4, …) with the same user code (VMC) Florian Uhlig CHEP 2012, New York 5

FairRoot cont.  Very flexible  No fixed navigation engine / geometry management Use Root TGeoManager for geometry management Geometry can be defined using different input formats ASCII files in format inherited from HADES Root files Defined directly in the source code Use TEve as base for general event display Geometry is described once. Then it can be converted (VGM) to choose between different MC’s and different navigations G4 native geometry and navigation G4 native geometry and Root … Florian Uhlig CHEP 2012, New York 6

FairRoot cont.  Very flexible  No fixed output structure Use a dynamic event structure based on Root TFolder and TTree which is created automatically Depend on registered data classes Data output possible after each step Simulation and reconstruction can be done in one go or in several steps  Use runtime data base Developed for the HADES experiment Decouple parameter handling in FairRoot from parameter storage runtime data base IO to/from ASCII files Root files Database Florian Uhlig CHEP 2012, New York 7

Parameter IO Florian Uhlig CHEP 2012, New York 8 Generic parameter container parameterobject different versions name type: Int_t, Float_t, Double_t, Char_t, Text_t, UChar_t, class type value(s) stored as byte array (RAW or BLOB) number of values (single value or array) class version streamer info, root version for ROOT classes own version management any class derived from TObject decoded in the analysis interface by ROOT streamer

FairRoot DB Florian Uhlig CHEP 2012, New York 9 FairRoot Run Manager RunTime Database ASCII File Configuration parameters. ASCII File Configuration parameters. IO Manager Root File MC-points Digits, etc Root File MC-points Digits, etc Root File Configuration parameters. Root File Configuration parameters. Oracle triggers on changing RunId Init registered parameter containers

FairRoot DB extended Florian Uhlig CHEP 2012, New York 10 FairRoot Run Manager RunTime Database ASCII File Configuration parameters. ASCII File Configuration parameters. IO Manager Root File MC-points Digits, etc Root File MC-points Digits, etc Root File Configuration parameters. Root File Configuration parameters. TSQLServer Oracle Postgresql MySQL DB Interface

Version management Florian Uhlig CHEP 2012, New York 11 Detector Time Version Validity time range (UTC) STT CAL MVD CAL MVD TEMP The Query process 1.Context (Timestamp,Detector,Version) is the primary key 2.Context converted to unique SeqNo 3.SeqNo used as keys to access all rows in main table 4.System gives user access of all such rows

Proof in FairRoot  PROOF - Parallel ROOt Facility.  It allows parallel processing of large amount of data. The output results can be directly visualized (e.g. the output histogram can be drawn at the end of the proof session).  The data which you process with PROOF can reside on your computer, PROOF cluster disks or grid.  The usage of PROOF is transparent: you use the same code you are running locally on your computer.  No special installation of PROOF software is necessary to execute your code: PROOF is included in ROOT distribution.  Proof runs on computing clusters as well as on your local many core computer Florian Uhlig CHEP 2012, New York 12

Trivial parallelism Florian Uhlig CHEP 2012, New York 13 Sequential processing data Event 1 Event 2 Event 3 Event 4 Event 5 Event 6 Event 7 Event 8 Event 9 Event 10 Event 11 Event 12 results Unordered processing data Event 3 Event 2 Event 1 Event 4 Event 5 Event 8 Event 9 Event 7 Event 6 Event 12 Event 11 Event 10 resultsresults data 1 data 1 Event 1 Event 2 Event 3 Event 4 results 1 data 2 data 2 Event 5 Event 6 Event 7 Event 8 results 2 data 3 data 3 Event 9 Event 10 Event 11 Event 12 results 3 Parallel processing == == Σ ++ In FairRoot change one line in the macro to use it: FairRunAna *fRun = new FairRunAna(); To FairRunAna *fRun = new FairRunAna(“proof”); In FairRoot change one line in the macro to use it: FairRunAna *fRun = new FairRunAna(); To FairRunAna *fRun = new FairRunAna(“proof”);

Proof on Demand Florian Uhlig CHEP 2012, New York 14 PoD: Anar Manafov, GSI ([22] 21/05; [21] Postersession 1)

GPU support in FairRoot CUDA is fully integrated into the FairRoot build system CMake creates shared libraries for cuda part FairCuda is a class which wraps CUDA implemented functions so that they can be used directly from ROOT CINT or compiled code  See talk of Mohammad Al-Turany  [353] 24/05, 5.25PM, Room 905/ Florian Uhlig CHEP 2012, New York 15

Radiation length info FairRadLenManager Florian Uhlig CHEP 2012, New York 16 Example: Contributions of different Functional parts of the PANDA MVD to the overall material budget

Dose studies FairRadMapManager Florian Uhlig CHEP 2012, New York 17  What energy dose will be accumulated during a certain time of operation?  Create all physical volumes with correct material assignment  Run the simulation engine  FairRadMapManager will sum up every deposited energy in each volume in the geometry

Dose studies FairRadGridManager Florian Uhlig CHEP 2012, New York 18 Determine the particle fluency through a certain boundary (surface) and deduce a map. Knowing the volume and density of the object of interest and the specific energy loss doses can be estimated

FairRoot for real data  FairRoot was designed from the beginning to combine simulation and analysis in one tool.  Using the same internal structure the user can compare easily at any time/level the real data with the simulation Florian Uhlig CHEP 2012, New York 19 Reconstructed Beam EVENT The large GEM-TPC Prototype L. Fabbietti for the GEM-TPC Collaboration

NeuLAND: The High Resolution Neutron Time-of-Flight Spectrometer for R3B Florian Uhlig CHEP 2012, New York 20 Comparison of LAND response to neutrons from 170 to 1050 MeV from experiment (black lines) and from R3BRoot simulations (red lines).

Triggered Experiment Use SHIP (Separator for Heavy Ion reaction products) as example If particle enters detector region the data tacking is triggered When DAQ reads out the detectors everything belongs to this event Florian Uhlig CHEP 2012, New York 21

Triggered Experiment Florian Uhlig CHEP 2012, New York 22

Triggered Experiment Florian Uhlig CHEP 2012, New York 23

The Challenge Central events have up to 1000 charged particles inside acceptance Looking for rare probes require events rates up to 10 7 per second Complicated trigger signature Searching for secondary vertex requires reconstruction of a large part of the event Florian Uhlig CHEP 2012, New York 24

The Challenge Central events have up to 1000 charged particles inside acceptance Looking for rare probes require events rates up to 10 7 per second Complicated trigger signature Searching for secondary vertex requires reconstruction of a large part of the event Conventional hardware trigger not feasible: no dead time allowed Self-triggered autonomous front- ends pushing time-stamped data forwards to DAQ D0D0D0D0 D0D0D0D0 K-K- π+π Florian Uhlig CHEP 2012, New York 25

The Challenge Florian Uhlig CHEP 2012, New York 26

Task for FairRoot Florian Uhlig CHEP 2012, New York 27

Time based simulation  Provide functionality for the tasks “event mixing” in the digitization stage and “time sorting” in the reconstruction stage Generator 1 Event Generator N … Transport Simulation Transport Simulation Digitizer Buffer Sorter Cluster Finder Cluster Finder Hit Finder Hit Finder Track Finder Track Finder Florian Uhlig CHEP 2012, New York 28

Event Time The absolute event time is calculated by the framework Experiments define functions for event time calculation Time of detector digi is this absolute time + the time inside the MC event Florian Uhlig CHEP 2012, New York 29

FairWriteoutBuffer  Base class to store detector data (digis) between events  Buffer stores data together with absolute time until this data is active and can be influenced by later events  This time is detector dependent and is defined individually  If the same detector element is hit at a later time the data can be/is modified  Modifications are detector and electronics dependent  Result is a randomized data stream which is stored in a TClonesArray which would be the input to the DAQ Florian Uhlig CHEP 2012, New York 30

Randomized Digi Data Same color = same event Array index Florian Uhlig CHEP 2012, New York 31

Sorter – Technical Implementation 0-Element Pointer Number of storage cells given by the spread of the time stamps within the data stream Width of one storage cell given by time resolution of detector Storage Pointer position calculated numerically from time stamp If a storage position is calculated which would override old data, the old data is saved to disk and the storage cell is freed Florian Uhlig CHEP 2012, New York 32

Sorted Digi Data Array index Florian Uhlig CHEP 2012, New York 33

Sorted Digi Data Array index Florian Uhlig CHEP 2012, New York 34

Task for Experiments Event Builder Florian Uhlig CHEP 2012, New York 35

Read back the Data Eventbuilder  Read data from IO Manager using different functions  Different algorithms already available  Read data up to a given absolute time  Read data in a given time window  Read data until next time gap of certain size  Other algorithms can be (easily) implemented if needed Florian Uhlig CHEP 2012, New York 36

Example: Rutherford Experiment  Scattering of 5MeV alpha particles at a 2 μ m gold foil  Unexpected large scattering angles observed  Implementation using FairRoot needs  600 lines of c++ source code created mostly automatically (copied from a template)  60 lines of code for the build system  200 lines of code for the steering macros  70 lines of code for the geometry and media definition Florian Uhlig CHEP 2012, New York 37

Rutherford Experiment Change experimental setup Change material properties Change simulation engine Change physical processes Florian Uhlig CHEP 2012, New York 38

Summary and Outlook  Hope I could show you that FairRoot  is flexible  is easy to use  is easy to extend  Special tools to do dose studies  Tools for time based simulation are implemented  Calculation of event time  Mixing of events by automatic buffering and write out when needed  Fast sorting of data  Several event builder functions Florian Uhlig CHEP 2012, New York 39

Summary and Outlook  Many more topics only touched or not showed at all  Proof integration  Database connectivity  GPU usage inside of FairRoot  Build and test system  …  Resources  Webpage:  Forum:  Test Dashboard: Florian Uhlig CHEP 2012, New York 40

FairRoot related talks and poster  [606] Future Experiments and Impact on Computing  [394] Event reconstruction in the PandaRoot framework  [353] Track finding and fitting on GPUs, first steps toward a software trigger  [40] STEPtoRoot – from CAD to monte carlo simulations  [399] Electron reconstruction and identification capabilities of the CBM Experiment at FAIR Florian Uhlig CHEP 2012, New York 41