Session 7: More Module Interface Rob Kutschke art and LArSoft Course August 4, 2015.

Slides:



Advertisements
Similar presentations
Step 1 Start your web browser (Internet Explorer or Firefox). Step 2 Type: in the Address box Step 3 Press Enter on the keyboard.
Advertisements

CINAHL DATABASE FOR HINARI USERS: nursing and allied health information (Module 7.1)
PubMed/How to Search, Display, Download & (module 4.1)
To print your results, click on the printer icon. Choose from the printing options suggested. You can choose to remove items from folder after printing.
MY NCBI (module 4.5). MODULE 4.5 PubMed/How to Use MY NCBI Instructions - This part of the: course is a PowerPoint demonstration intended to introduce.
MY NCBI (module 4.5).
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Accessing and Using the e-Book Collection from EBSCOhost ® When an arrow appears, click to proceed to the next slide at your own pace. To go back, click.
#10 Useful Reports Election Eligibility February
Online Training at your Fingertips
Getting Started. Edline Web Site Requirements Provide Students and Parents With: 1.A Brief Course Description 2.Your Address 3.Course Syllabus 4.Major.
Surfing the Net. Surfing the net Browsers – Internet Explorer, Firefox, others Dissecting URLs Some web page definitions Browser navigation Bookmarks.
HINARI website interface, journals, and other full text resources (module 2)
Automating Tasks With Macros
1 Applets Chapter 1 To understand:  why applets are used to extend the capabilities of Web pages  how an applet is executed and know about the restrictions.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
Exploring the Basics of Windows XP
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
PubMed/How to Search, Display, Download & (module 4.1)
This PowerPoint document will help you learn about hyperlinks and action buttons. 1.
PubMed/History; Accessing Full-Text Articles (module 4.4)
Common Experiment Workbook Status Report Anne Heavey, Rob Kutschke May 22, 2013.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
OARE Module 3: OARE Portal.
HINARI website interface, journals, and other full text resources (module 2)
Making a Virtual Book With PowerPoint 2007 How to make a virtual book Using PowerPoint 2007 This is not a presentation template. This is not the venue.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
STAT!Ref New User Interface. The simplest way to search STAT!Ref is to enter the search term into the field at the top of the page and click the Search.
Welcome to the Reale Tutorial I’ll be there on every page to help you!
Scoring Program Updates & XML upload to the NSRCA web site July 2013.
Another Method to Open WebSpace as a Web Folder Alternative Method for Creating Web Folder in WebSpace, Slide 1Copyright © 2004, Jim Schwab, University.
Navigation Section 2. Objectives Student will knowhow to navigate through the browser.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
CINAHL DATABASE FOR HINARI USERS: nursing and allied health information (Module 7.1)
PubMed/How to Search, Display, Download & (module 4.1)
PubMed/History, Advanced Search and Review (module 4.3)
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
#5 Useful Reports Training Record Report February
PubMed Overview From the HINARI Content page, we can access PubMed by clicking on Search inside HINARI full-text using PubMed. Note: If you do not properly.
PubMed/How to Search, Display, Download & (module 4.1)
Microsoft ® Office SharePoint ® Server 2007 Training SharePoint document libraries II: All about checkout Bellwood-Antis School District presents:
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
Accessing journals by via PubMed Note the link to find articles through HINARI/PubMed. Using this option will be covered in later in the Short Course.
Teacher Web Page Creation Eileen Musselman. Log on to Muhlenberg’s Intranet Click Submit button.
1 Hyperlinks and Action Buttons This PowerPoint document will help you learn about hyperlinks and action buttons.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
We now will look at options for saving searches in CINAHL. We have accessed the Results for Chloroquine AND Pyrimethamine AND Sulfadoxine search. We now.
PubMed/Limits and Advanced Search (module 4.2). MODULE 4.2 PubMed/Limits & Advanced Search Instructions - This part of the:  course is a PowerPoint demonstration.
An Introduction to Forms. The Major Steps of a MicroSoft Access Database  Tables  Queries  Forms  Macros  Reports  Modules On our road map, we are.
MGS 351 Introduction to Management Information Systems RECITATION 12.
Getting Started. Package Overview (GradeQuick)‏ Web-based grade book –Access Anywhere –Always Current Paper grade book “look and feel” Flexible grading.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
Word Create a basic TOC. Course contents Overview: table of contents basics Lesson 1: About tables of contents Lesson 2: Format your table of contents.
Advanced Powerpoint Features Design Software BTT101 Credit: Mr. Spinelli.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
HINARI website interface, journals, and other full text resources (module 2)
Creating Web Pages with Links, Images, and Embedded Style Sheets
Online Recruiting System Hiring Manager Presentation This presentation will take about 15 minutes. Click on your mouse to go to the next slide OR click.
PubMed/How to Search, Display, Download & (module 4.1)
Comprehensive Continuous Improvement Plan(CCIP) Training Module 4 Funding Application.
XP Creating Web Pages with Microsoft Office
PubMed Database Interface (Basic Course Module 4 Part A)
LGC Website, Software updates, Documentation, and Videos
Microsoft® Office Word 2007 Training
PubMed Database Interface (Basic Course: Module 4)
PubMed/How to Search, Display, Download & (module 4.1)
Navigating NEIU Blackboard 417 – 418a
Presentation transcript:

Session 7: More Module Interface Rob Kutschke art and LArSoft Course August 4, 2015

Welcome to Day 2! Yesterday, you: –Followed the site specific setup procedure source /products/course_setup.sh –Source window: cloned a repository and checked out a branch –Build window: built and ran code How to continue after logging out and back in: –See Chapter 11 of the art workbook writeup (2 pages)art workbook writeup Follow the site specific setup procedure. Open source and build windows source one setup script in each of the source and build windows –Continue to work on the previous exercise or start a new one. –(Note the two meanings of “source”; is it clear?) 8/3/2015Kutschke/Session 7: More Module Interface2

Recap: The Event Loop Your experiment groups events into runs and subruns –Your experiment the meaning of a run or subrun –Art provides bookkeeping tools to help manage them A short art job might see the following: 8/3/2015Kutschke/Session 7: More Module Interface3 A longer art job might see many runs, many subruns per run and many events per subrun. If I read all of my data to choose very rare but very interesting events (a sparse skim), I might have many runs and subruns with zero events! art can manage both situations

Recap: The analyze Member Function 8/3/2015Kutschke/Session 7: More Module Interface4 analyze is called once for every event. art::Event is an art::EventID plus data products Art::EventID 3 parts: run, subrun and event numbers. namespace tex { class First : public art::EDAnalyzer { public: explicit First (fhicl::ParameterSet const& ); void analyze (art::Event const& event ) override; }; }

New With the First Part of this Exercise: A module may choose to define member functions that art will call at start of the job, at the start of each run and at the start of each subrun. You will also see the endJob, endRun and endSubRun member functions. 8/3/2015Kutschke/Session 7: More Module Interface5 class Optional : public art::EDAnalyzer { public: explicit Optional(fhicl::ParameterSet const& ); void beginJob () override; void beginRun ( art::Run const& run ) override; void beginSubRun( art::SubRun const& subRun ) override; void analyze ( art::Event const& event ) override; };

art::Run and art::SubRun objects: art::Event –An art::EventID plus a collection of data products. art::Run –An art::RunID plus a collection of data products. art::SubRun –An art::SubRunID plus a collection of data products. art::SubRunID –has 2 parts: run and subrun numbers art::RunID –has 1 part: run number 8/3/2015Kutschke/Session 7: More Module Interface6 void beginJob () override; void beginRun ( art::Run const& run ) override; void beginSubRun( art::SubRun const& subRun ) override; void analyze ( art::Event const& event ) override;

beginJob vs Constructor Both are called once at the start of job. What tasks should be done in each? –Always initialize member data in the constructor Prefer initializer list over initialization in the body of the c’tor –Some other operations must be done in the constructor These will be described as you encounter them. –Other advice: Your experiment may have a policy – ask! One choice is to do as much as possible in the constructor. My choice: create histogram, ntuple and TTree objects at beginJob, beginRun or beginSubRun, never in the constructor. –In my mind this separates the “computing infrastructure” work from the physics work. 8/3/2015Kutschke/Session 7: More Module Interface7

This tells art to print an informational message just before and just after every call to user supplied code –And just before and after some of its own internal operations. You can use this to see if art is calling your code at the times when you expect it to be called. If you don’t understand what art is doing, this is one of the tools you can use to help understand. You will use this option in this exercise. Tracer art has a command line option --trace 8/3/2015Kutschke/Session 7: More Module Interface8 art –c file.fcl --trace

Module Hygiene Did you remember to use override? When you look at the example code, you will see that does not provide a destructor. Because the destructor has no work to do, the compiler supplied destructor will do the right thing –If it will do the right thing, let the compiler write it for you 8/3/2015Kutschke/Session 7: More Module Interface9

Questions so Far? 8/3/2015Kutschke/Session 7: More Module Interface10

Hints on Navigating the Giant PDF file Title page Blank page List of Chapters (3 pages long) Detailed Table of Contents (16 pages long) Everything is internally hyperlinked: –Page numbers in the TOC, and index –Table, Listing, Figure and Section cross-references –Configure your browser to highlight hyperlinks. Many PDF browsers have previous and next buttons –MAC Safari Back: Apple-[ Forward: Apple-] 8/3/2015Kutschke/Session 7: More Module Interface11

Get Started Start to work on Chapter 13 (Exercise 3) in the are workbook writeup – /art-documentation.pdfhttps://web.fnal.gov/project/ArtDoc/Shared%20Documents /art-documentation.pdf 8/3/2015Kutschke/Session 7: More Module Interface12 My Powerpoint is flakey. If the above link fails or if it display pdf as text, try: – –Under latest releases, click on the document with the highest version number. If both links fail, mouse in the url.

Backup Slides: 8/3/2015Kutschke/Session 7: More Module Interface13

Data Products See section of the art workbook writeup.art workbook writeup The unit of event-data that is managed by art –More precisely by art::Event Examples: –Raw data is often one data product per sub-system –Each module in the reconstruction chain will create one or more data products. Unpacked hits for each subsystem Reconstructed tracks, showers, jets, electrons, muons …. Reconstructed neutrino interactions –Sometimes called “events”, just to create more confusion … –The simulation chain will create many data products 8/3/2015Kutschke/Session 7: More Module Interface14

The Assembly Line Metaphor art is like an assembly line The art::Event is the product being built Each function in each module is a work station along the line art’s job is to make sure that the product (the art::Event) gets to each work station (functions supplied by modules) in the right order. 8/3/2015Kutschke/Session 7: More Module Interface15