1 ROOT vs PAW Davide Grandi INFN Milano. 2 Summary AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano ROOT and NT file size (different compressions.

Slides:



Advertisements
Similar presentations
Números.
Advertisements

Symantec 2010 Windows 7 Migration Global Results.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
/ /17 32/ / /
Reflection nurulquran.com.
EuroCondens SGB E.
Worksheets.
ROOT tests AMS Computing meeting March 31 st 2003 Davide Grandi INFN Milano.
& dding ubtracting ractions.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Sequential Logic Design
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Addition and Subtraction Equations
Multiplication X 1 1 x 1 = 1 2 x 1 = 2 3 x 1 = 3 4 x 1 = 4 5 x 1 = 5 6 x 1 = 6 7 x 1 = 7 8 x 1 = 8 9 x 1 = 9 10 x 1 = x 1 = x 1 = 12 X 2 1.
Division ÷ 1 1 ÷ 1 = 1 2 ÷ 1 = 2 3 ÷ 1 = 3 4 ÷ 1 = 4 5 ÷ 1 = 5 6 ÷ 1 = 6 7 ÷ 1 = 7 8 ÷ 1 = 8 9 ÷ 1 = 9 10 ÷ 1 = ÷ 1 = ÷ 1 = 12 ÷ 2 2 ÷ 2 =
AIDS epidemic update Figure AIDS epidemic update Figure 2007 Estimated adult (15–49 years) HIV prevalence rate (%) globally and in Sub-Saharan Africa,
AIDS epidemic update Figure AIDS epidemic update Figure 2007 Estimated adult (15–49 years) HIV prevalence rate (%) globally and in Sub-Saharan Africa,
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
1 1  1 =.
CHAPTER 18 The Ankle and Lower Leg
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
I can count in decimal steps from 0.01 to
The 5S numbers game..
Photo Slideshow Instructions (delete before presenting or this page will show when slideshow loops) 1.Set PowerPoint to work in Outline. View/Normal click.
突破信息检索壁垒 -SciFinder Scholar 介绍
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Break Time Remaining 10:00.
This module: Telling the time
The basics for simulations
Factoring Quadratics — ax² + bx + c Topic
1 Heating and Cooling of Structure Observations by Thermo Imaging Camera during the Cardington Fire Test, January 16, 2003 Pašek J., Svoboda J., Wald.
PP Test Review Sections 6-1 to 6-6
Look at This PowerPoint for help on you times tables
Figure 3–1 Standard logic symbols for the inverter (ANSI/IEEE Std
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
1 Prediction of electrical energy by photovoltaic devices in urban situations By. R.C. Ott July 2011.
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Progressive Aerobic Cardiovascular Endurance Run
1..
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
TCCI Barometer September “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
When you see… Find the zeros You think….
2011 WINNISQUAM COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=1021.
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
Subtraction: Adding UP
: 3 00.
5 minutes.
Numeracy Resources for KS2
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Static Equilibrium; Elasticity and Fracture
Converting a Fraction to %
Age Biased Technical and Organisational Change, Training and Employment Prospects of Older Workers Luc Behaghel, Eve Caroli and Muriel Roger Paris School.
Resistência dos Materiais, 5ª ed.
Clock will move after 1 minute
PSSA Preparation.
& dding ubtracting ractions.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Select a time to count down from the clock above
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Schutzvermerk nach DIN 34 beachten 05/04/15 Seite 1 Training EPAM and CANopen Basic Solution: Password * * Level 1 Level 2 * Level 3 Password2 IP-Adr.
Presentation transcript:

1 ROOT vs PAW Davide Grandi INFN Milano

2 Summary AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano ROOT and NT file size (different compressions and split) ROOT and PAW I/O performance (selection functions for analysis and compiled codes) PAW and ROOT functionality (C++ knowledge, GUI etc.)

3 Hardware & Software AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano MACHINE: pcamsf2 OS: RH Linux 7.2 RAM 1 GB local DISK RAID5 ROOT version: 3.03/04 19 April 2002 PAW version: 2.12/22 13 June 2001

4 ROOT and NT file size (10k ev) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano modeMB NT122.6 NT gzipped46.7 NT h2root53.4 Root indicesSplit = 1Comp = Root pointersSplit = 1Comp = RootSplit = 2Comp = 254.3

5 I/O performance AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano PAW features: UWFUNC Code automatically compiled by PAW Chain of ntuples Gzipping ntuples to compare with Root space occupancy ROOT features: MakeSelector (create a *.C and *.h) TChain ACLiC to compile, create shared lib and link TClonesArray

6 PAW & ROOT Chains AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano PAW: ntuples (6 of approx 120 MB) used for first test of PAW speed Ntuples gunzipped to compare with ROOT speed PAW tests with/without gunzipping ntuples ROOT: Trees written with normla compression level (1) and maximum (9) 6 trees loaded with TChain MakeSelector code executed with ACLiC calls (automatic creation of a shared lib, link and compilation from ROOT)

7 few words on ROOT (1) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano

8 few words on ROOT (2) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano Compression: gzip algorithm Branches (independent variables: object, list, folder, array) Leaves (variables in a branch) Split level default is 99 (object split to the maximum) N.B. Level 1 TClonesArray not splitted More split: fast to read slow to write Collections (object, pointers to cast)

9 Variables selection AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano PAW has a nice feature of reading only variables required by the code (optimized for end users) Selection function from V. Choutko (fortran function) ROOT hasnt the automatical feature of redaing only variables requird by the code Selection fortran function transformed to C/C++ style (not so easy…)

10 PAW & ROOT speed (1) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano filesAnalysis time (U S E CPU%) NT gunzipped : % Root comp=1Creating sh lib : % Root comp=1Sh lib created : % All ROOT tree branches (400) read when function requires only 40-50

11 PAW & ROOT speed (2) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano filesAnalysis time (U S E CPU%) NT no gunzip : % Root comp=1Creating sh lib : % Root comp=1Creating sh lib : % Root comp=9Creating sh lib : % Root comp=9Sh lib created : % Only required branches (40-50) read, but carefully in creation order (*.h file) !!!!

12 Clone sArray AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano New production (from A. Klimentov) with TClonesArray (manage objects of the same class, constant size of element, reuses memory), compression level 2 and 2 different split levels (1 and 2) Selection function always from V. Choutko For split level 1: all tree was loaded For split level 2: only needeb branches are readed (similar to h2root converted file…) N.B. probably optimization is possible…

13 Clone sArray (1K events) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano filesAnalysis time (U S E CPU%) NT gunzipped : % NT : % Root split 1Creating sh lib : % Root split 1Sh lib created : % Root split 2Creating sh lib : % Root split 2Sh lib created : %

14 Clone sArray (10K events) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano filesAnalysis time (U S E CPU%) NT gunzipped : % NT : % Root split 1Creating sh lib : % Root split 1Sh lib created : % Root split 2Creating sh lib : % Root split 2Sh lib created : %

15 Clone sArray (30K events) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano filesAnalysis time (U S E CPU%) NT gunzipped : % NT : % Root split 1Creating sh lib : % Root split 1Sh lib created : % Root split 2Creating sh lib : % Root split 2Sh lib created : %

16 PAW and ROOT functionality AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano CPU: PAW is almost always below 50% Well known analysis tool Easy to write a fortran code for ntuple analysis CPU: Root seems to optimize load (nearly 100% the machine is almost blocked!) Many features not yet explored Easy to produce.ps or.gif files

17 ROOT GUI & other features AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano Graphics in ROOT is greately improved: you can select with mouse TBrowser (window and folders) CINT support C/C++ (better than only C++) Fit is simple Insert Text & Latex math expression 3D histograms rotated with the mouse ……. sometimes not stable!

18 ROOT GUI(2) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano

19 ROOT GUI(3) AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano

20 C++ knowledge AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano For h2root converted: fortran users dont need big experience in C++ for normal selections For CloneArrays C++ needed is more complicated (MakeSelector doesnt recognize ClonesArray…. So they have been loaded by hand) Root Macros: easy to realize when skeleton produced by root features as MakeSelector or MakeClass A bit harder if made by hand (>400 branches/variables)

21 Preliminary conclusions AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano h2root: PAW is faster compared with root selections because of recognizing required variables Hand made modification of ROOT macro gives ROOT faster than PAW (2 times) ClonesArray: PAW is faster than ROOT (comparable speed: more tests are needed) Split level 1 seems better (need to study optimization as reading only branches required)

22 Aknowledgements AMS Computing Meeting june 10th 2002 Davide Grandi INFN Milano Id like to thank for the support and for important suggestions and programming lessons: Alexei Klimentov Vitaly Choutko of CERN AMS staff Matteo Boschini Mikhail Levtchenko of Milano AMS staff