Tag/Micro Filter Tutorial Chris Roat Stanford 31 July 2000.

Slides:



Advertisements
Similar presentations
C Language.
Advertisements

Michigan State University 4/15/ Simulation for Level 2 James T. Linnemann Michigan State University NIU Triggering Workshop October 17, 1997.
Single Top Trigger Studies Top Trigger Meeting, 21 May Patrick Ryan, MSU Single Top Trigger Studies Top Trigger Meeting 21 May 2007 Patrick Ryan.
Exclusive D s Semileptonic decays using kinematic fitting.
B-Tagging Common Interface Y.D. Mutaf, S. Towers 20 March 2003 H b _b.
Object-Oriented Enterprise Application Development Javadoc Last Updated: 06/30/2001.
14 User Documents and Examples I SLAC Geant4 Tutorial 3 November 2009 Dennis Wright Geant4 V9.2.p02.
Exclusive D s Semileptonic decays using kinematic fitting.
Τ ± → π ± π + π - π 0 ν τ decays at BaBar Tim West, Jong Yi, Roger Barlow The University of Manchester Carsten Hast, SLAC IOP HEP meeting Warwick, 12 th.
Zeus Monday Meeting, DESY, The ZEUS Event Store (ZES) How to make the most efficient data selection in ZEUS Ulrich Fricke, DESY, Hamburg.
CLEO’s User Centric Data Access System Christopher D. Jones Cornell University.
L3 Filtering: status and plans D  Computing Review Meeting: 9 th May 2002 Terry Wyatt, on behalf of the L3 Algorithms group. For more details of current.
C++ Object Oriented 1. Class and Object The main purpose of C++ programming is to add object orientation to the C programming language and classes are.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Status of Onboard Filter & Ground Software Integration Work done by Navid Golpayegani Steve Ritz J.J. Russell David Wren SLAC Ground Software Workshop:
SVX Software Overview Sasha Lebedev VTX meeting 09/07/ SVX Software web page:
Nachos Phase 1 Code -Hints and Comments
1 Workshop 4 (B): Visual Basic Test Project Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.
JAS3 + AIDA LC Simulations Workshop SLAC 19 th May 2003.
User Documents and Examples I Sébastien Incerti Slides thanks to Dennis Wrigth, SLAC.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Update on the new reconstruction software F. Noferini E. Fermi center INFN CNAF EEE Analysis Meeting - 14/09/20151.
David N. Brown Lawrence Berkeley National Lab Representing the BaBar Collaboration The BaBar Mini  BaBar  BaBar’s Data Formats  Design of the Mini 
PANDA collaboration meeting2.-4. June 2004 simulation statusOverview New Framework  why  status  schedule Simulation subdetector  Forward spectrometer.
BESIII MC Release notes & planned development Dengzy, Hem, Liuhm, Youzy, Yuany Nov. 23, 2005.
Status report from T2K-SK group Task list of this group discussion about NEUT Kaneyuki, Walter, Konaka We have just started the discussion.
Introduction Advantages/ disadvantages Code examples Speed Summary Running on the AOD Analysis Platforms 1/11/2007 Andrew Mehta.
ECE122 Feb. 22, Any question on Vehicle sample code?
Update on the new reconstruction software F. Noferini E. Fermi center INFN CNAF EEE Analysis Meeting - 15/06/20151.
Experience With CBM Muon Simulation Partha Pratim Bhaduri.
Gaudi Framework Tutorial, April Algorithm Tools: what they are, how to write them, how to use them.
Jose A. Hernando Trigger Gaudies Reconstruction Tools & Algorithms Inspectors MC & Data Algorithms Template preserved container Jose A. Hernando.
Jul. 27, 2005 BESIII Software Meeting , IHEP 1 Physics Analysis with ROOT July 27, 2005 Yajun Mao School of Physics, Peking University.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
Andrei Gheata, Mihaela Gheata, Andreas Morsch ALICE offline week, 5-9 July 2010.
Argonne Jamboree January 2010 Esteban Fullana AOD example analysis.
Threaded Programming Lecture 2: Introduction to OpenMP.
CBM Simulation Walter F.J. Müller, GSI CBM Simulation Week, May 10-14, 2004 Tasks and Concepts.
FOCOMM_CAMAC Setup and Usage Guide Andrew Wong, Larry Ruckman.
1 What I did last year Nick Barlow Manchester Christmas meeting January 2005.
October Test Beam DAQ. Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram.
Status of Analysis Software Kanglin He For Analysis Software Group.
Muon Persistency Persistent Analysis Objects Muon Persistency Norbert Neumeister µ-PRS meeting February 10, 2004.
Processing large data sets Brad Abbott. Now J/Psi Starting with root-tuples Add 4-momentum to look for candidates Pick events (raw) -> reconstruct event.
20 October 2005 LCG Generator Services monthly meeting, CERN Validation of GENSER & News on GENSER Alexander Toropin LCG Generator Services monthly meeting.
Tau31 Tracking Efficiency at BaBar Ian Nugent UNIVERSITY OF VICTORIA Sept 2005 Outline Introduction  Decays Efficiency Charge Asymmetry Pt Dependence.
BEACH 04J. Piedra1 SiSA Tracking Silicon stand alone (SiSA) tracking optimization SiSA validation Matthew Herndon University of Wisconsin Joint Physics.
Elisa manoni FastSim meeting January 21st, FastSim meeting, FastSim meeting, January 21st, 2010 Had Breco code: status report Elisa Manoni INFN.
News on Rho PANDA Collaboration Meeting, Bochum K. Götzen, GSI 1.
Gaudi Framework Tutorial, April Histograms And N-tuples.
MAUS Status A. Dobbs CM43 29 th October Contents MAUS Overview Infrastructure Geometry and CDB Detector Updates CKOV EMR KL TOF Tracker Global Tracking.
Starting Analysis with Athena (Esteban Fullana Torregrosa) Rik Yoshida High Energy Physics Division Argonne National Laboratory.
Session 7: More Module Interface Rob Kutschke art and LArSoft Course August 4, 2015.
David Adams ATLAS DIAL Distributed Interactive Analysis of Large datasets David Adams BNL May 19, 2003 BNL Technology Meeting.
An AOD analysis example Esteban Fullana Torregrosa High Energy Physics Division Argonne National Laboratory.
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
Update on the new reconstruction software F. Noferini E. Fermi center INFN CNAF EEE Analysis Meeting - 28/09/20151.
DANA David Lawrence Oct. 21, D. Lawrence, JLab GlueX Software Workshop Oct Outline Requirements Philosophy Overview of Features Open Questions.
AOD example analysis Argonne Jamboree January 2010
Winter 2009 Tutorial #6 Arrays Part 2, Structures, Debugger
ALICE analysis preservation
User Documents and Examples I
BTeV Muon Trigger Algorithm: Timing: R&D: Overview
Introduction to Athena
Hadronic recoil analysis:
2 Getting Started.
2 Getting Started.
2 Getting Started.
C++ Object Oriented 1.
Intro to Programming (in JavaScript)
Presentation transcript:

Tag/Micro Filter Tutorial Chris Roat Stanford 31 July 2000

Outline zAim of this Tutorial zDefinitions of Tag and Micro zPlan of Attack zDetails of Filters zTools Overview (Lists, Iterators, Vertexers) zExecution zAdditional Exercises

Aim of this Tutorial zTeach a novice audience zProvide an example of using BaBar code zStep-by-step instructions to get a working executable zUse simple to understand code z(maybe enlighten you as to the meaning of some of the lingo)

What is the tag database? zmost distilled version of data - event-wide zcontains: yanalysis bits: loose selections for certain processes (Bprong2, Tau3Loose, etc.) yevent parameters (eTotal, thrustMag, etc.) ytrigger flags (which Level 1&3 triggers fired) zshort time to read, so filtering at this level saves reading in details of events

What is the micro database? zmore information then “tag”, but less information than available in reconstruction zgeared toward fast analysis zcontains ykinematics (candidate charge, mass) ylists (tracks, electrons, kaons) ydetector info (# EMC crystals, # DCH hits)  tracking (  2,...) and PID (consistency)

Plan of Attack - Our Example find B decays to J/psi( l + l - ) K s (  +  - ) ztag requirements ya possible J/psi (single bit in database) y6 tracks (2 leptons, 2 pions, 2 from tag-B) y4 from IP (pions don’t have to be from IP) zmicro requirements y>=2 positive, >=2 negative tracks yvertex oppositely charged tracks, to find J/psi or K s yvertex J/psi and K s to find B

Details of Filters - Tag zinherits from TagFilterModule zTagFilterModule::event(anEvent); // gets tag ztag()->getInt(myInt, “nTracks”); // retrieves the integer counting the # of tracks in event zsetPassed(true); // tells filter to pass the event on to the next part of the code

Details of Filters - Micro zinherits from APPFilterModule zuser defined cuts, like on electron consistency yprivate data member (.hh) xAbsParmGeneral _eleCons; yin constructor (.cc) x, _eleCons("eleConsCut",this,-0.01) // default=-0.01 xcommands()->append(& _eleCons); // can use in tcl yused in code (.cc) x_eleCons.value() // return current value zuses lists, iterators, trees, and vertexers...

Tools - Lists ztemplated - floats, BtaCandidates, any class! zUseful in looping over tracks or creating ntuples. zHepAList * bcList; // construct zbcList.append(myCand); // add to it zgetTmpAList(anEvent, bcList, _btaCandList.value()); // get it from the event (_btaCandList is a tcl variable).append().purge().isEmpty().hasMember().reverse().sort( fcn ).remove().swap() Methods

Tools - Iterators zUsed hand-in-hand with lists zFirst call with () returns first member of list zSubsequent () calls iterate (null = all done!) BtaCandidate* theCand; HepAListIterator iterCand(*bcList); while ( 0 != ( theCand = iterCand() ) ) { code.. }.next()() overloaded as.next().prev().rewind().skip(int).current().skipAll() Methods

Tools - Vertexers zFitters are a general class that can constrain a decay tree through kinematics and/or geometry. Here we use only geometry. VtxLeastChiVertexer theVertexer; BtaOpMakeTree cVert( theVertexer ); BtaCandidate* cand=cVert.create(*bc1,*bc2); double mass = cand->mass(); zSee Physics->Vertexing&Composition for a User’s Guide

Tools - Modules zTypes yGeneral Purpose and Initialization yInput/Output yFilter/Analysis zExecutable has code for all modules, but it doesn’t know any more than that! zTcl files tell say in what order to call modules zJob begin/end calls are important for writing out the files, or other initialization/finalization zJob event calls are important for analysis

Execution zThe next slides take you through a first analysis with tag/micro. zWe will use the analysis-3 release zA more in-depth tutorial of these steps can be found at: yDocumentation->Physics Analysis How-to ->How to skim on tag, do an analysis on micro ( OtherDoc/microtut/NanoMicroTut-analysis-3/)

Execution - Setup Release zlog on to tersk with ssh zunset all Beta variables yunsetenv Beta* zvariable pointing to scratch space (x= first letter of logon) ysetenv MYWORK $BFROOT/work/x/${USER} ymkdir ${MYWORK} zcreate the release directory ysrtpath 8.6.3d-physics-1 SunOS5 ynewrel -s $MYWORK -t 8.6.3d-physics-1 tut-anal3

Execution - Setup Packages zload in packages to your release directory yaddpkg workdir yaddpkg BetaExamples NanoMicroTutorial zset up your workdir package ygmake workdir.setup

Execution - Compile & Link zcompile BetaExamples package (all on 1 line) ybsub -q bldrecoq -o lib.log gmake BetaExamples.lib ROPT=-Shared-noFastbuild zlink your executable (all on 1 line) ybsub -q bldrecoq -o extrabin.log gmake BetaExamples.extrabin ROPT=-Shared- noFastbuild

Execution - Run! zset up your environment to look at SP3 database ysp3analboot zrun your executable in workdir ycd workdir yBtaExampleFilterApp../BetaExamples/bdbFilter.tcl zat Framework prompt, type the following to bypass a bug, run over 10 events, and finish! ymod disable SvtBdbLoad1 SvtBdbLoad2 yev cont -nev 10 yexit

Output HBOOK file zThe job will produce and hbook file, framework.hbook, in your workdir directory that contains: yan ntuple named "Jpsi Ks micro Analysis" ya set of histograms named 'TagFilter;xxx' with the histograms produced by the JpsiK0sTagFilter ya set of histograms named 'MicroFilter;xxx' with the histograms produced by the JpsiK0sMicroFilter

Additional Exercises zRequire a good primary vertex in the tag filter. zTry histogramming the different consistencies. Examine the histograms and implement new cuts on in tcl. zAdd constraints to the vertexer (use a BeamSpot constraint, for example) zUse Kanga instead of Objectivity!