90 likes | 305 Views
Framework. Framework is a system that provides the user with a common interface and methodology for doing event analysis. Framework passes event data from package to package in the order and configuration specified by the user at run time. Definitions.
E N D
Framework • Framework is a system that provides the user with a common interface and methodology for doing event analysis. • Framework passes event data from package to package in the order and configuration specified by the user at run time. P. Demine (ISN Grenoble)
Definitions • Package: a user-written application program that conforms to the framework package interface definition and usually designed to perform a reconstruction activity using data in an event. • RCP: Run Control Parameters. RCP is a list of parameters that are used to configure a user package. P. Demine (ISN Grenoble)
Setting up environment • setup n32 (IRIX only !) • setup D0RunII t01.45.00 (a release version) • setup d0cvs • cd <workdir> (your development area) • newrel -t t01.45.00 <topdir> (setup release directory structure) • cd <topdir> • d0setwa (initialize local RCP DB) P. Demine (ISN Grenoble)
Running the Framework • Copy framework rcp file and package rcp files to working directory. • Run framework program. Give framework rcp file on command line: > MyProgram.x -rcp framework.rcp • Use -help option or run program without any options to see list of supported options. P. Demine (ISN Grenoble)
Working Area working area framework.rcp *.dat package1 rcp *.rcp package2 rcp *.rcp P. Demine (ISN Grenoble)
The Framework RCP File stringInterfaceName = "process" stringInterfaces = "generator decide builder filter modify analyze process dump jobSummary runEnd runInit" stringFlow = "generator decide builder filter modify process analyze dump" // Packages to be run in RECO stringPackages = "init read cfgm unpack det gtr vtx pid analyze write fini" RCPinit = <d0reco reco_init> // Initialize reco RCPread = <d0reco D0recoReadEvent>// ReadEvent RCPcfgm = <run_config_mgr run_config_mgr_mc>// Configuration manager RCPunpack = <d0reco reco_unpack_mcraw> // Unpack for raw data RCPdet = <d0reco reco_det> // Detectorreco RCPgtr = <d0reco reco_gtr> // Track reconstruction RCPvtx = <d0reco reco_vtx> // Vertex reconstruction RCPpid = <d0reco reco_pid> // Particlereco RCPanalyze = <d0reco reco_analyze> RCPwrite = <d0reco D0recoWriteEvent>// WriteEvent RCPfini = <d0reco reco_fini> // Finish up intDumpPeriod = 1 P. Demine (ISN Grenoble)
Commonly Used Packages • Packages available in io_packageslibrary: • ReadEvent • Read events from DØOM file. • NewEvent • Create an empty edm event. • MergeEvents • Merge events from several generators (copies chunks). • DropChunks • Drop chunks by name (builder hook). • WriteEvent • Write DØOM format file. • DumpEvent • Produce an ascii dump of edm events using method. P. Demine (ISN Grenoble)
Links • General: • www-d0.fnal.gov/~schelma/d0cpp/d0cpp.html • Framework: • www-d0.fnal.gov/run2_offline_software/framework/framework.html • www-d0.fnal.gov/d0dist/dist/releases/test/framework/doc/ • RCP: • cdspecialproj.fnal.gov/d0/rcp/index.html • SAM: • d0db.fnal.gov/sam • mc_runjob: • clued0.fnal.gov/mc_runjob/mainframe.html • Event Display: • www-d0.fnal.gov/computing/graphics/d0graphics.html P. Demine (ISN Grenoble)
Links • EDM: • cdspecialproj.fnal.gov/d0/edm/index.html • Coding: • www-d0.fnal.gov/~jkrane/docs/tracking/run2coding.html • CTEST: • www-d0.fnal.gov/software/cmgt/ctest/ctest200.ps • CVS: • www-d0.fnal.gov/~schelma/runII_cvs/ P. Demine (ISN Grenoble)