Layout in ROOT. Mira Krämer DESY. Mira Krämer. ROOT Tutorial,

Similar documents
HMS/SHMS Drift Chambers Calibration. Carlos Yero June 26, 2017

Lab 1. Adiabatic and reversible compression of a gas

MTB 02 Intermediate Minitab

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Wenbing Zhao. Department of Electrical and Computer Engineering

Outline. Terminology. EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Steps in Capacity Planning and Management

DCS World Plugin for g-seats.

5.1. Data Displays Batter Up. My Notes ACTIVITY

Start the Polars program and load this file by using the explorer tab on the left side. You will get following picture:

GEOPHYSICAL RESEARCH LETTERS

HORIZONT. TWS/Webadmin. Guide for upgrading TWS on z/os to newer version. Software for Datacenters

Equine Cannon Angle System

For questions 1-15 please assume a distribution with a mean of 30 and a standard deviation of 2.

3D Scan Processing Procedures for Surfer

Analysis of Variance. Copyright 2014 Pearson Education, Inc.

Walk - Run Activity --An S and P Wave Travel Time Simulation ( S minus P Earthquake Location Method)

Equine Results Interpretation Guide For Cannon Angles May 2013

Operating Manual. BACVis. Manual BACVis. for. Sensors and MilliGascounter. Rev

The Coriolis Effect - Deflect the Arrows!

Complete Wristband System Tutorial PITCHING

Organizing Quantitative Data

Carolina TM Coriolis Effect and Atmospheric Circulation Kit STUDENT GUIDE

Report Steen Henriksen. Applications of the tension spline method to 18 weather stations in Iceland

Lab 4: Transpiration

Terminals Operators Guide

McKnight Hockey Association

Sesam HydroD Tutorial

ADVANCED. CATIA V5 Workbook. Knowledgeware and Workbenches. Release 16. Knowledgeware. Workbenches. Richard Cozzens. Southern Utah University

Team Manager's Manual

Chromat Calibration Updated October 27th, 2017

CSE 154: Web Programming Spring 2017 Homework Assignment 5: Pokedex. Overview. Due Date: Tuesday, May 9th

The activity is designed to take about an hour start to finish.

7 th International Conference on Wind Turbine Noise Rotterdam 2 nd to 5 th May 2017

SHIMADZU LC-10/20 PUMP

Integrated Sports Systems (ISS) Inc. Meet Management Suite

Saphir Guided Session #8

HOW TO ACKNOWLEDGE YOUR FUNDING

Singularity analysis: A poweful technique for scatterometer wind data processing

Working with Marker Maps Tutorial

MJA Rev 10/17/2011 1:53:00 PM

SHOT ON GOAL. Name: Football scoring a goal and trigonometry Ian Edwards Luther College Teachers Teaching with Technology

Excel 2013 Pivot Table Calculated Field Greyed Out

A Conceptual Approach for Using the UCF Driving Simulator as a Test Bed for High Risk Locations

2009 Manual on Uniform Traffic Control Devices

Lab 3: Pumps in Series & Pumps in Parallel

ORF 201 Computer Methods in Problem Solving. Final Project: Dynamic Programming Optimal Sailing Strategies

σ = force / surface area force act upon In the image above, the surface area would be (Face height) * (Face width).

ACC Grassroots Website - Guide for the Member / Player

by Robert Gifford and Jorge Aranda University of Victoria, British Columbia, Canada

Background Information. Project Instructions. Problem Statement. EXAM REVIEW PROJECT Microsoft Excel Review Baseball Hall of Fame Problem

EXPERIMENT XI. Careful!! Improper handling of the vacuum line may result in the release of SO 2 which is an irritating and suffocating gas.

Mini Golf. Thank you, Try a direct shot. Can you get a hole in one? Nancy Norem Powell. Nancy Norem Powell. This won't work...

ERA Trainers Website User Guide

GN21 Frequently Asked Questions For Golfers

UNIQUE ADVANTAGES OF PIPENET

1wsSMAM 319 Some Examples of Graphical Display of Data

XC2 Client/Server Installation & Configuration

Operating instructions for. For visualization of your measurements

Write Your Own Twine Adventure!

Ball Toss. Vernier Motion Detector

Activity P07: Acceleration of a Cart (Acceleration Sensor, Motion Sensor)

DUTCH5 USER GUIDE February 2013

Fundamentals of Machine Learning for Predictive Data Analytics

Sontek RiverSurveyor Test Plan Prepared by David S. Mueller, OSW February 20, 2004

Tennis...32 Stay above...34 Decimal...36 Bundesliga simulator...38 Shooter management...41 Installation...43 Registration...45 Where do I get the

Diver Training Options

Direct to your goal.

Proform Software Upgrade v1.9.1 Release Notes Welcome to release of the Proform Form Book and System Builder.

1. First start a new scratch project and remove the default sprite.

Track. Track return. Interval protocols. Phosphate Decrement Test (PDT) Modified PDT (10 x 40m on 30)

Thermal Profiling the Reflow Process

Hazard Reporting Training Guide

THE 2018 ROSENTHAL PRIZE for Innovation in Math Teaching. Geometry Project: DARTBOARD

Fastball Baseball Manager 2.5 for Joomla 2.5x

CONTENTS. Welcome to Season Setup in Play Football Setting Up Our Details Setting up Age Groups... 9

Full-Time Results and Respect Version 5.0

Lab 5: Descriptive Statistics

Section 5 Critiquing Data Presentation - Teachers Notes

iregatta User Manual

Direct to your goal.

User s Guide for inext Online: Software for Interpolation and

Laybotpro Automated Betfair Bot. LayBotPro User Manual

Tying Knots. Approximate time: 1-2 days depending on time spent on calculator instructions.

Sail Chart Drafter for Deckman v.2

b

Motion Graphing Packet

GUIDE TO THE ARCTIC SHIPPING CALCULATION TOOL

The ICC Duckworth-Lewis-Stern calculator. DLS Edition 2016

Table of Contents Diagnosis ICD9 to ICD10 GEM Report... 1 Diagnosis Form... 5 Helpful Hints on Correcting Issues... 8 Disclaimer...

1. SYSTEM SETUP AND START TOURNAMENT... 8

Sample Final Exam MAT 128/SOC 251, Spring 2018

THE STATCREW SYSTEM For Basketball - What's New Page 1

Axis Camera with VaxALPR On Camera software: License key

Pressure Measurement Unit HEMP

BEFORE YOU OPEN ANY FILES:

CENTER PIVOT EVALUATION AND DESIGN

CHAPTER 2 Modeling Distributions of Data

Allocation of referees, hours and pistes User manual of Engarde - August, 2013

B Ji Th By: Jim Thompson August 2018

Analyzing Categorical Data & Displaying Quantitative Data Section 1.1 & 1.2

b

Transcription:

Layout in ROOT Mira Krämer 28.7.211 DESY Mira Krämer 1

Setup First steps: go to /afs/desy.de/user/k/kraemerm/public/summerstudents/ copy the complete directory to your favourite location using > cp -r /afs/desy.de/user/k/kraemerm/public/summerstudents/ yourlocation set the ROOT environment using > source rootenv.sh Content: you will find there a rootfile in rootfiles/uep9_25ev.root several numbered ROOT macros which are called MyMacro1.C helper functions in func.c Mira Krämer 2

Default Setup: MyMacro1.C Start ROOT and use the first macro: > root >.x MyMacro1.C You will find a TGraph on the left side and the corresponding TH1F on the right: 5 d1_x1_y1_histo 5 d1_x1_y1_histo Entries 14 Mean.4678 RMS.289 1 1.2.4.6.8 1 1.2 1.4 1.6 1.8 2.2.4.6.8 1 1.2 1.4 1.6 1.8 2 Mira Krämer

Surroundings: MyMacro2.C Surroundings: gstyle->setpadticky(1); // ticks on right side of histo gstyle->setoptstat(); // get rid of the statistics box histo->settitle( boxtitle;x axis title [unit];y axis title [unit] ) or: histo->settitle( ;x axis title [unit];y axis title [unit] ) // box is gone then 5 1.2.4.6.8 1 1.2 1.4 1.6 1.8 2 Mira Krämer 4

The Axis: MyMacro.C Manipulate the labels: (following methods work for labels and titles) histo->setlabelsize(.4, X ) // the size histo->getxaxis()->setlabeloffset(number) // shift histo->getxaxis()->setndivisions(55) // divisions of labels histo->getxaxis()->setrange(firstbin, lastbin) // bin counting starts at 1.5 1 1.5 2 Mira Krämer 5

Lines and Markers: MyMacro4.C Change the Style of the histogram: histo->setlinewidth(2) // for better visibility histo->setmarkerstyle(8) // the dot. More markers on page 115 in the manual histo->setmarkersize(.7) // the size of the marker Draw more histos as line to same canvas: histo1->draw( E ) histo2->draw( samehist ) histo->draw( samehist ).5 1 1.5 2 Mira Krämer 6

Colours: MyMacro5.C histo->setlinecolor(kviolet) // see page 14 for color defintions histo->setfillcolor(17) // fills area below curve, but axes are gone then histo->draw( sameaxis ) // redraws the axes Btw: you can also define your own color: YourColourName = new TColor(NewColourNumber,r,g,b, NewColourName ).5 1 1.5 2 Mira Krämer 7

The Legend: MyMacro6.C mylegend = new TLegend(x1,y1,x2,y2) // create legend mylegend->setfillcolor() // white background mylegend->setbordersize() // get rid of the box mylegend->settextsize(.45) // set text size mylegend->addentry(&histo, name, option ) // options: p,l,f mylegend->draw(); black points purple line grey area.5 1 1.5 2 Mira Krämer 8

Text: MyMacro7.C To write additional text in histos, use TLatex with syntax \ -> # mylatex = new TLatex(x1,y1, your text ) // coordinates are absolute here mylatex->settextsize(.6); mylatex->draw(); TLatex Text black points purple line grey area.5 1 1.5 2 Mira Krämer 9

Writing out as eps files: MyMacro8.C To store the created histo as eps file (or whatever format you like): mysubpad = (TPad*) mycanvas->getpad(1) // create a TPad mysubpad->print( psfiles/myhisto.eps ) // write it to the file Check the eps file you just created the histo is in the middle, but the titles are close to the bottom and left margin redefine the margins with MyMacro9.C: gpad->setleftmargin(.14) gpad->setrightmargin(.8) gpad->setbottommargin(.15) gpad->settopmargin(.1) Mira Krämer 1

The Comparison Default: User defined: d1_x1_y1_histo 5 d1_x1_y1_histo Entries 14 Mean.4678 RMS.289 TLatex Text black points purple line grey area 1.2.4.6.8 1 1.2 1.4 1.6 1.8 2.5 1 1.5 2 Mira Krämer 11

Excercises i. Change the style of the purple solid line to a dashed line in your favourite colour ii. iii. Change the style of the grey area from plain to one with a pattern Create artificial error bands for the histogram with black points: the upper error should be 1%, the lower one 15% for every point Hint: Have a look at the ROOT manual http://root.cern.ch/drupal/content/users-guide See also the class descriptions at http://root.cern.ch/root/html526/classindex.html Mira Krämer 12