FAIR Simulation & Analysis Framework FairRoot Mohammad Al-Turany (IT-GSI) Denis Bertini (IT-GSI) Florian Uhlig (IT-GSI)

Slides:



Advertisements
Similar presentations
O. Stézowski IPN Lyon AGATA Week September 2003 Legnaro Data Analysis – Team #3 ROOT as a framework for AGATA.
Advertisements

Algorithms and Methods for Particle Identification with ALICE TOF Detector at Very High Particle Multiplicity TOF simulation group B.Zagreev ACAT2002,
Status and roadmap of the AlFa Framework Mohammad Al-Turany GSI-IT/CERN-PH-AIP.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
PPR meeting - January 23, 2003 Andrea Dainese 1 TPC tracking parameterization: a useful tool for simulation studies with large statistics Motivation Implementation.
THE SIMULATION- AND ANALYSIS-FRAMEWORK FAIRROOT CHEP 2012, New York.
CBM Simulation&Analysis Framework Cbmroot Mohammad Al-Turany & Denis Bertini.
IFluka : a C++ interface between Fairroot and Fluka Motivations Design The CBM case: –Geometry implementation –Settings for radiation studies –Global diagnosis.
CBM Collaboration Meeting 1 Simulation Status V. Friese.
1 Tracking Reconstruction Norman A. Graf SLAC July 19, 2006.
Radiation levels in CBM Radiation effects iFluka (Fluka C++ interface to CbmRoot) Fluka Geometry Models Results Conclusion.
FairRoot Build and Test System
ALICE Upgrade for Run3: Computing HL-LHC Trigger, Online and Offline Computing Working Group Topical Workshop Sep 5 th 2014.
FAIR Simulation & Analysis Framework FairRoot M. Al-Turany, D. Bertini, F. Uhlig GSI-IT.
Real data reconstruction A. De Caro (University and INFN of Salerno) CERN Building 29, December 9th, 2009ALICE TOF General meeting.
STS track recognition by 3D track-following method Gennady Ososkov, A.Airiyan, A.Lebedev, S.Lebedev, E.Litvinenko Laboratory of Information Technologies.
SoLID simulation Zhiwen Zhao Uva SoLID Collaboration Meeting 2011/6/2 1.
Root based event display Dmitry Romanov October 19, 2010.
CMake refactoring P. Hristov 19/03/2014. History I  Recursive makefiles (F.Carminati):  Problems in dependencies  Slow  "Recursive Makefiles.
ALICE Simulation Framework Ivana Hrivnacova 1 and Andreas Morsch 2 1 NPI ASCR, Rez, Czech Republic 2 CERN, Geneva, Switzerland For the ALICE Collaboration.
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.
October 20th, 2006 C. Gatto 1 4 th Concept Software Status Report.
17-Aug-00 L.RistoriCDF Trigger Workshop1 SVT: current hardware status CRNowFinal Hit Finders64242 Mergers31616 Sequencers2312 AMboards4624 Hit Buffers21212.
A Technical Validation Module for the offline Auger-Lecce, 17 September 2009  Design  The SValidStore Module  Example  Scripting  Status.
Darmstadt, 15. November 2015 Tobias Stockmanns, FZ Jülich1 A STEP to ROOT converter for the FairRoot framework ALICE-FAIR Computing Meeting, GSI,
Simulations for CBM CBM-India Meeting, Jammu, 12 February 2008 V. Friese
Standalone FLES Package for Event Reconstruction and Selection in CBM DPG Mainz, 21 March 2012 I. Kisel 1,2, I. Kulakov 1, M. Zyzak 1 (for the CBM.
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 ECAL simulation status Prokudin Mikhail ITEP.
SoLID simulation with GEMC Zhiwen Zhao 2015/03/26.
CBM Simulation Walter F.J. Müller, GSI CBM Simulation Week, May 10-14, 2004 Tasks and Concepts.
Statistical feature extraction, calibration and numerical debugging Marian Ivanov.
Features needed in the “final” AliRoot release P.Hristov 26/10/2006.
ALFA - a common concurrency framework for ALICE and FAIR experiments Mohammad Al-Turany GSI-IT/CERN-PH.
CBM-Meet, VECC July 21, Premomoy Ghosh CBM – MUCH Simulation for Low-mass Vector Meson Work done at GSI during June 2006.
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
Pavel Nevski DDM Workshop BNL, September 27, 2006 JOB DEFINITION as a part of Production.
1 G4UIRoot Isidro González ALICE ROOT /10/2002.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
AliRoot survey: Reconstruction P.Hristov 11/06/2013.
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.
Marc Labiche 15 th AGATA week, 18 th -20 th Nov 2014, GANIL, Caen.
D. Elia (INFN Bari)ALICE Offline week / CERN Update on the SPD Offline Domenico Elia in collaboration with H. Tydesjo, A. Mastroserio Overview:
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.
Tracking, Computing & other Stuff. Correlation of detector hits The track segments of inner and outer MDCs are matched on Cluster level The track segments.
14/06/2010 Stefano Spataro Status of LHE Tracking and Particle Identification Status of LHE Tracking and Particle Identification Stefano Spataro III Panda.
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.
CMake: Experience in ALICE P. Hristov 19/06/12. History I Recursive makefiles (F.Carminati): – Problems in dependencies – Slow "Recursive Makefiles.
Monthly video-conference, 18/12/2003 P.Hristov1 Preparation for physics data challenge'04 P.Hristov Alice monthly off-line video-conference December 18,
Susanna Costanza - Pavia Group PANDA C.M., Stockholm – June 14, 2010
(LHE) tracking and PID packages
V4-18-Release P. Hristov 21/06/2010.
Build and Test system for FairRoot
Analysis Frame for MC data
EicRoot: a brief overview
CMS High Level Trigger Configuration Management
ALICE analysis preservation
Finalizing the CBM-MVD Geometry: CAD and Simulation
v4-18-Release: really the last revision!
Tracking muons in Panda(Root)
FAIR Simulation&Analysis Framework FairRoot
Silicon Tracking with GENFIT
Use of Geant4 in experiment interactive frameworks AliRoot
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
Presentation transcript:

FAIR Simulation & Analysis Framework FairRoot Mohammad Al-Turany (IT-GSI) Denis Bertini (IT-GSI) Florian Uhlig (IT-GSI)

M. Al-Turany 2 Overview Motivation FairRoot Features CMake: Testing and building system Geometry Interface Runtime Database and Parameter Handling Fast simulation Integrated Track follower (Geane) Event display Grid Summary

M. Al-Turany 3 Motivation Which simulation engine to choose? –One would like to use the modern and maintained GEANT4 –But: 1. We have to: –Work fast ! ( LOI, TDR deadlines … ) –Make reliable simulation 2.In the CBM community and locally at the GSI : –Better knowledge of “old” MC’s: GEANT3, FLUKA … –less knowledge about GEANT4 ( intrinsic cuts / physics list …) –It was extremely difficult to get support for working with Geant4

M. Al-Turany 4 Features No Executable: (Only Rootcint) –Compiled Tasks for analysis, reconstruction, etc. –Root macros for steering simulation or reconstruction –Root macros for configurations (G3, G4, external decyers, etc.) The same framework can be used for Simulation and Analysis VMC and VGM for simulation TTask to organize the analysis data flow Use of TGeoManager for Simulation and Reconstruction Eve (Alice Event display) as base for a general event display Dynamic Event structure based on ROOT tree

M. Al-Turany 5 Features Use of a Geometry Interface. –G3 Native geometry –Geometry Modeller (TGeoManager) –Different geometry input format Grid: AliEn is working fine for us and we use it! CMake: Makefiles, dependencies, QM,... Doxygen for class documentation Use PROOF for interactive analysis

M. Al-Turany 6 FairRoot IO Dynamic Tree creation at initialization time –TFolder to organize memory –Simulation: CbmDetector::Init() –Analysis: CbmTask::Init() ( automatic partial IO ) Chaining Input data –TChain services Connection of Data levels –Use of Root Friend mechanism

M. Al-Turany 7 Tasks Mechanism CBMTask *Task1=new CBMTask("Task1") CBMTask *Task2=new CBMTask("Task2") CBMTask *Task3=new CBMTask("Task3") CBMTask *Task4=new CBMTask("Task4") CBMTask *Task5=new CBMTask("Task5") CBMTask *Task6=new CBMTask("Task6") Task1->Add(Task2) Task1->Add(Task3) Task2->Add(Task4) Task2->Add(Task5) Task3->Add(Task6) Task1 Task2 Task4Task5 Task3 Task6

M. Al-Turany 8 Run Manager Event Generator Magnetic Field Detector base IO Manager Tasks RTDataBase Oracle Conf, Par, Geo Root files Conf, Par, Geo Root files Hits, Digits, Tracks Application Cuts, processes Event Display Track propagation ROOT Virtual MC Geant3 Geant4 FLUKA G4VMC FlukaVMC G3VMC Geometry STS TRD TOF RICH ECAL MVD ZDC MUCH ASCII Urqmd Pluto Track finding digitizers Hit Producers Dipole Map Active Map const. field CBM Code STT MUO TOF DCH EMC MVD TPC DIRC ASCII EVT DPM Track finding digitizers Hit Producers Dipole Map Solenoid Map const. field Panda Code common developments Always in close contact Close contactDesign

M. Al-Turany 9 Simulation-Reconstruction Chain Simulation-Reconstruction Chain Event Generator Transport Digitizer Hit Finder Reconstruction Physics Analysis Full Simulation Analysis Determine particle properties at target vertex Transport particles through the detector material Determine detector response Determine physical space point parameters from detector hits Determine momentum vector and PID for all tracks Calculate physics observables Storage Levels SIM RAW Fast Simulation

M. Al-Turany 10CMake Why CMake: –It supports great variety of platforms ( basically every *ix, Mac OS, Windows) ( Win: Borland, MS Visual C++, cygwin, mingw) –CMake generates out of simple rules native Makefiles for all supported platforms –Input files (rules) are the same on all platforms –CMake additionally can produce project files for IDE's (KDevelop, XCode, VStudio) –Big community because Cmake is the build tool for KDE 4 –CMake has a testing framework –Porting FairRoot to Mac OS X took 30 minutes –Porting the rest of the needed Software (Root, Geant4 etc.) took more than 1 week

M. Al-Turany 11 Why test daily Large code base is too large/complicated for a single developer to understand/maintain Identify problems when they occur Project depends on external packages which can cause problems Provide direct feedback to the developers as they experiment with new features

M. Al-Turany 12 Define automatic testing Update source from SVN Generate Makefiles Build the project Run Tests Submit results to a webserver

M. Al-Turany 13 Software Process Dashboards SVN maintains source code revision Typical developer checks in code CTest/CMake compiles and test the newly commited source code on distributed clients Developer reviews the results

M. Al-Turany 14Dashboards Client/Server architecture Cross platform testing Memory testing (purify, valgrind) Coverage testing Create documentation on a nightly basis (Doxygen) Check coding conventions (Rule Checker) If it's not tested it's not working

M. Al-Turany 15 CbmRoot Quality Dashboard

M. Al-Turany 16

M. Al-Turany 17 Rule Checker Need to change the rules according to CBM/Panda Coding Conventions

M. Al-Turany 18 Detector geometry in FairRoot Hades Geometry interface –Advantage: more flexibility : different inputs can be used. closer to technical drawings and analysis coordinate systems –Oracle interface Hades geometry table design reusable Step converter (Tobias Stockmann) –Step To Root –Step To Hades ASCII –Step To DDL (Not used in FairRoot) Defined directly (TGeo) in the detector code –(make sense for certain geometries CbmEcal, PandaEMC)

M. Al-Turany 19 Tobias Stockmanns, FZ Jülich Step converter : Status? supports now: box tube cone trap subtraction-solid Arb8 Xtru DDL output CBM output Root output

M. Al-Turany 20 CAD converter, updates and improvements Tobias Stockmanns Usage of CAD converter tool was already successful for MVD Usage of CAD converter tool was already successful for MVD

M. Al-Turany 21 CAD converter, updates and improvements Tobias Stockmanns Some geometries are too complex to convert “blindly” Solenoid, Barrel Yoke

M. Al-Turany 22 RootBooleanPart Tobias Stockmanns, FZ Jülich -

M. Al-Turany 23 Finally in TGeo:

M. Al-Turany 24 Runtime Database 2 Inputs 1 Output List of Parameter Containers ASCII File ROOT File Oracle List of Runs The Runtime Database is the manager class for all Parameter containers: Creation, Initialization, Output Container Factories IO defined in the macro Created in the init() function of the tasks via the container factories or in the macro Filled during initialization read() write()

M. Al-Turany 25 Version management in Oracle For time dependent information a version management is needed which fulfills the following requirements: –It must be possible to get a consistent set of information for any date (e.g.the start time of a certain run). –To preserve the history, no information - even if wrong - should be overwritten without trace, which means that only inserts should be made, no deletes nor updates. –It must be possible to get an answer to the question: 'Which parameters were used when analyzing this run X years ago?' (The calibration might have been optimized several times since this date. Maybe some bugs have been detected and corrected in the mean time.)

M. Al-Turany 26 Version management in Oracle Time dependant entries have a time stamp (date + time with the precision of one second) in form of three columns (Format: DATE): valid_since :First date when the entry is valid. valid_until :Last date when the entry is still valid invalid_since :Date when the entry is replaced by a correct entry or a better version in case of e.g. calibration parameters and therefore gets invalid.

M. Al-Turany 27 Initialisation scheme (Analysis) RunId1 RunId2 File=1 File=2 Sim. Data CbmTaskParameters RunId1 RunId2 Par. Cont. Par. Cont CbmTask::SetContainers() CbmTask::init() CbmTask::Exec() CbmTask::Reinit() CbmParIo Data

M. Al-Turany 28 Particle Transport Digitization Calibration Reconstruction Effective parametrization - acceptance cuts - resolution smearing - PID info Full SimulationFast Simulation Event Generation Physics Analysis PANDA: Fast Simulations Klaus Goetzen

M. Al-Turany 29 Compared to Full Sim Comparison to Full Sim are reasonable (channel: pp  D s D s0 ) (10 k Signal events; absolute numbers)

M. Al-Turany 30 Split offs – Compared to Full Sim Overall multiplicity per pp candidate are quite reasonable (channel: pp  D s D s0 )  0 mass shape and background also looks quite ok

M. Al-Turany 31 Geane Integration in FairRoot The integration into the VMC (TGeant3) is done In FairRoot: –Geane can be used in the analysis or from macro –Propagation to –Length –Plane –Volume (Enter or Exit point) –To Line –To Point –Point of closest approch on a wire New Methods introduced by Pavia group in PANDA

M. Al-Turany 32 Muon Absorber in CBM

M. Al-Turany 33 Pulls for the Panda STT 500 MeV/c We have defined a plane to which we extrapolate the track parameters. RMS 0.95RMS 0.93 RMS 0.92 Kapton 1.42 g/cm3 Isobutan 2.7e-3 g/cm3

M. Al-Turany 34 ROOT : New Event Display A new package Eve (Event Visualization Environment )is introduced to ROOT –Built on top of ROOT's GUI, GL and GED infrastructure –Based on experiment-independant part of the ALICE event display –It has been used in ALICE for more than a year to perform high- level event visualization, debugging of simulation and reconstruction code as well as for raw-data visualization.

M. Al-Turany 35 Eve in FairRoot Integration is straight forward (already done) Some features can be used directly (even from macro)

M. Al-Turany 36 Examples: Panda Detector

M. Al-Turany 37 FairEventManager FairEventManager: (Sub-class of TEveEventManager) –Read Events directly from FairRoot Tree –Select Events for Display –Apply cuts to whole event –Navigation (Next Event, Previous Event and Event No) –Read and display the geometry

M. Al-Turany 38 FairRootManagerEditor

M. Al-Turany 39 Event Display Macro panda_eve() { gSystem->Load("libEventDisplay"); CbmRunAna *fRun= new CbmRunAna(); fRun->SetInputFile("testsimu10.root"); fRun->LoadGeometry(); FairEventManager *fMan= new FairEventManager(); FairMCTracks *Track = new FairMCTracks ("Monte-Carlo Tracks"); FairMCPointDraw *MvdPoints = new FairMCPointDraw ("MVDPoint"); FairMCPointDraw *EMCPoints = new FairMCPointDraw ("EmcPoint"); fMan->AddTask(Track); fMan->AddTask(MvdPoints); fMan->AddTask(EMCPoints); fMan->Init(); }

M. Al-Turany 40 CBM: Points and Tracks

M. Al-Turany 41 CBM Muon detector

M. Al-Turany 42 Examples: Panda Detector (MVD)

M. Al-Turany 43 Examples: HADES Detector

M. Al-Turany 44 Status Event Diplay Any TGeoManager based geometry can be used directly Combined with trajectory visualization in FairRoot, it can be used directly from macro to display TGeoTracks (MC Tracks) and all sub-classes of CbmPoint A task which should handle CbmHit subclasses is in preparation. Digits has to be implemented by detectors

M. Al-Turany 45 Status Event Diplay: Tracks TEveTrack and TEveTrackPropagator: –Can be used directly with Track visualization option in FairRoot MCTracks and Reconstructed Tracks –Need A realistic track propagator –Field maps has to be taken into account Possible solution would be Geane Propagator!!

M. Al-Turany 46 Existing sites Upgraded to version 2-13 at the last Grid Workshop, Vienna, 1-5 October 2007 Ateneo/Manila Kilian Schwarz and Dan Protopopescu

M. Al-Turany 47 Control panel Centralised control of all sites is now implemented via MonALISA: services can be remotely (re)started/stopped, Kilian Schwarz and Dan Protopopescu

M. Al-Turany 48 Simulation-analysis chain  In recent test productions on the Grid the simulation-analysis chain presented by S. Lange in the last PandaRoot status talk (September 2007 meeting) has been used Kilian Schwarz and Dan Protopopescu

M. Al-Turany 49 Job jdl and scripts – FairRoot on Grid Some arbitrary submission id Kilian Schwarz and Dan Protopopescu

M. Al-Turany 50 Results Message from the validation job Message from the validation job

M. Al-Turany 51 FairRoot on GRID - Results Kilian Schwarz and Dan Protopopescu

M. Al-Turany 52 Digitization, pattern recognition, tracking algorithms, and validation/tuning of simulations using REAL (=realistic) data

M. Al-Turany 53 What we have now! CBM: –Mainly using Geant3 for simulation –TFulka is ready but we still straggling to get a license –We have our own work around to use native FLUKA and put the output in FairRoot format (Dosimetery study ) PANDA: –Mainly using Geant4 and compare to Geant3 –Some prototypes for EMC, TPC are build, test beams data is available and will be compared to Geant3 and Geant4 HADES: –Mainly used by us to compare to the data and existing native Geant3 simulation (e.g. Cerenkov production etc.) NUSTAR: –Still evaluating if FairRoot will be suitable for them.

M. Al-Turany 54 Availability Tested on Linux and Mac OS Some documentation: fairroot.gsi.de subversion.gsi.de/fairroot/cbmroot subversion.gsi.de/fairroot/pandaroot