FAIRROOT RECONSTRUCTION Panda Computing Week 2012, Torino.

Slides:



Advertisements
Similar presentations
User-Defined Functions Like short programs Can operate on their own data Can receive data from callers and return data to callers.
Advertisements

Lecture 14 User-defined functions Function: concept, syntax, and examples © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
Slide C.1 SAS MathematicalMarketing Appendix C: SAS Software Uses of SAS  CRM  datamining  data warehousing  linear programming  forecasting  econometrics.
Copyright © 2008 Pearson Addison-Wesley. All rights reserved. Chapter 5 Functions for All Subtasks.
CS162B: POSIX Threads Jacob Chan. Objectives ▪ Review on fork() and exec() – Some issues on forking and exec-ing ▪ POSIX Threads ▪ Lab 8.
File I/O Dr. Nancy Warter-Perez. Introduction to Python – Part II2 Homework Submission Guidelines Submit your programs via
Guide To UNIX Using Linux Third Edition
Creating Dynamic Surveys with Maintain Mark Derwin and Mark Rawls Information Builders Information Builders Summit 2011 User Conference June 2011 Copyright.
Trains status&tests M. Gheata. Train types run centrally FILTERING – Default trains for p-p and Pb-Pb, data and MC (4) Special configuration need to be.
Chapter 1 - Introduction. Ch 1Goals To understand the activity of programming To learn about the architecture of computers To learn about machine code.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
Prepare a CoreView Project for In-Line Process Measurement Date: Octobre2014.
Chapter 3 Interactivity and Expressions CSC 125 Introduction to C++ programming.
Python programs How can I run a program? Input and output.
Introduction to C++ - How C++ Evolved Most popular languages currently: COBOL, Fortran, C, C++, Java (script) C was developed in 1970s at AT&T (Richie)
System software operating system 1.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
Compiled Matlab on Condor: a recipe 30 th October 2007 Clare Giacomantonio.
How to Create a Videogame By: Connor McCann. Java Java is one of many programming languages Java is used to run web browsers and most PC video games I.
EEC4133 Computer Organization & Architecture Chapter 6: Languages and the Machine by Muhazam Mustapha, May 2014.
Learning to Use Root for STAR Gene Van Buren (UCLA) for the STAR Collaboration Accessing STAR Data Programming for STAR (Makers) Star => Computing => Tutorials.
CS 320 Assignment 1 Rewriting the MISC Osystem class to support loading machine language programs at addresses other than 0 1.
Practice and Evaluation. Practice Develop a java class called: SumCalculator.java which computes a sum of all integer from 1 to 100 and displays the result.
OSP Tutorial An Introduction. Getting to OSP  Obtain a CSE account  Recommend xming to remote log in from USF Website 
Unit 1: Java and Eclipse The Eclipse Development Environment.
Lecture 31 Creating Executable Programs on the Mainframe Tuesday, January 20, 2009.
I Power Higher Computing Software Development Development Languages and Environments.
”Java and JMLfor Dummies” The Java source code is written in a text file using your favourite editor (Notepad) and is saved with extension.java. Be careful.
Using the while-statement to process data files. General procedure to access a data file General procedure in computer programming to read data from a.
1. FINISHING FUNCTIONS 2. INTRODUCING PLOTTING 1.
GUIs Basic Concepts. GUI GUI : Graphical User Interface Window/Frame : a window on the screen Controls/Widgets : GUI components.
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
INFSO-RI Enabling Grids for E-sciencE Using of GANGA interface for Athena applications A. Zalite / PNPI.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
Go4 Workshop J.Adamczewski-Musch, S.Linev Go4 advanced features.
FAIRROOT SIMULATION Panda Computing Week 2012, Torino.
News on Rho PANDA Collaboration Meeting, Bochum K. Götzen, GSI 1.
Joe Foster 1 This talk extends the one I gave in 2006 called Visualizing Data with ROOT. –
Files in Python Opening and Closing. Big Picture To use a file in a programming language – You have to open the file – Then you process the data in the.
ANALYSIS TRAIN ON THE GRID Mihaela Gheata. AOD production train ◦ AOD production will be organized in a ‘train’ of tasks ◦ To maximize efficiency of full.
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
WP12 - General Development News Sandro Wenzel
ENEE150 Discussion 04 Section 0101 Adam Wang.
Online Database Work Overview Work needed for OKS database
Basic aliensh S. Bagnasco, INFN Torino CNAF Nov 27-28, 2007.
Lesson #6 Modular Programming and Functions.
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Experiment 01 C programming environment
Lesson #6 Modular Programming and Functions.
Bonn Test Station data analysis with PandaRoot
Basic operations in Matlab
Systems Programming 3rd laboratory Test_driven Development
PL/SQL Scripting in Oracle:
JCreator Setup Instructions
Lesson #6 Modular Programming and Functions.
Ruth Anderson UW CSE 160 Winter 2017
Compilation VS Interpretation
Ruth Anderson UW CSE 160 Spring 2018
Fill the screen challenge!
Reading and Writing Files
Text Files All the programs you've seen so far have one thing in common: Any data the program uses or calculates is lost when the program ends. In order.
Topics: Programming Constructs: loops & conditionals Digital Input
Advanced Programming Behnam Hatami Fall 2017.
File I/O in C++ I.
Lesson #6 Modular Programming and Functions.
Explain what touch develop is to your students:
File I/O in C++ I.
Presentation transcript:

FAIRROOT RECONSTRUCTION Panda Computing Week 2012, Torino

Everything is a task  A task is a procedure to read an already existing data level and produce a new one, or change the existing one.  Complex structures of Tasks and Subtasks are possible  Up to now only a simple sequence of tasks is used Task1 Task2Task3 Task4Task6Task5 Task1 Task2 Task3 Task4 Task6 Task5

Hands On: Create a dummy task  create a digitization directory in torinoDetector  Copy content of the template/NewTask directory into new digitization directory  Run the rename script  Try to understand the new Class  Edit files and try to compile PandaRoot

Basic functions of a task  Init()  Do all the initialization which are needed to run the task Get pointer to the data classes Initialize variables Whatever you have to do before starting the event loop  ReInit()  Do the same if run conditions (Unique run ID) change  SetParContainers()  Define the parameter container which are needed by the task  Exec()  Here the work is done (whatever this might be)  The function is called for each event  Finish()  The function is called at the end of the run  Here you should do all the cleanup

Reconstruction Macro  Load the necessary libraries void run_digi() { gROOT->LoadMacro("$VMCWORKDIR/gconfig/rootlogon.C"); rootlogon(); gSystem->Load("libPndTorinoDetector.so");  Define Input and Output // Input file (MC events) TString inFile = "data/testrun.root”; // Parameter file TString parFile = "data/testparams.root”; // Output file TString outFile = "data/testhits..root"; FairRunAna *fRun= new FairRunAna(); fRun->SetInputFile(inFile); fRun->SetOutputFile(outFile);

Reconstruction Macro  Setup of the Runtime Database FairRuntimeDb* rtdb = fRun->GetRuntimeDb(); FairParRootFileIo* parInput1 = new FairParRootFileIo(); parInput1->open(parFile.Data()); rtdb->setFirstInput(parInput1);  Define the task PndTorinoDetectorHitProducerSmearing* hitProducer = new PndTorinoDetectorHitProducerSmearing(); fRun->AddTask(hitProducer);  Initialize and run the reconstruction fRun->Init(); timer.Start(); fRun->Run();

Hands On: Create and run the macro  Create the simple macro from the slides before  Run the macro  Look for the output on the screen