1 Introduction to SimTools Akiya Miyamoto KEK Jan 2006.

Slides:



Advertisements
Similar presentations
ITR3 lecture 7: more introduction to UNIX Thomas Krichel
Advertisements

H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2004 Go4 v2.8 Analysis Design.
1 OBJECTIVES To generate a web-based system enables to assemble model configurations. to submit these configurations on different.
1 Status of Software Tools Akiya Miyamoto KEK 8 th ACFA, EXCO, Daegu 12 July 2005 Short summary of work done by K.Fujii(KEK), T.Fujikawa(Tohoku), K.Kawagoe(Kobe),
STAR Software Walk-Through. Doing analysis in a large collaboration: Overview The experiment: – Collider runs for many weeks every year. – A lot of data.
Lesson 22 – Introduction to Linux Systems Administration.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
FULL CHAIN SIMULATION of CMS DETECTOR Ijaz Ahmed National centre for Physics, Islamabad.
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>>
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
BSC tools hands-on session. 2 Objectives Copy ~nct00001/tools-material into your ${HOME} –cp –r ~nct00001/tools-material ${HOME} Contents of.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
Shuei MEG review meeting, 2 July MEG Software Status MEG Software Group Framework Large Prototype software updates Database ROME Monte Carlo.
Introduction to Hall-D Software February 27, 2009 David Lawrence - JLab.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
System Administration and Basic Functionality Version 4.0 – September 2007 Q-Advisor Quick Start.
JAS3 + AIDA LC Simulations Workshop SLAC 19 th May 2003.
CENT 305 Information Systems Security Linux Introduction.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
1 ACFA8, July , 2005, Youngjoon Kwon (Yonsei Univ.) Simulation / Recon. Workgroup summary for ACFA8  The Framework for Sim./Recon. Status report.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Contents 1.Introduction, architecture 2.Live demonstration 3.Extensibility.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
As of 28 Juni 2005Getting Starged with GEM - Shuei Yamada 1 Getting Started with GEM Shuei YAMADA ICEPP, University of Tokyo What is GEM? Before you start.
Updating JUPITER framework using XML interface Kobe University Susumu Kishimoto.
Bookkeeping Tutorial. Bookkeeping & Monitoring Tutorial2 Bookkeeping content  Contains records of all “jobs” and all “files” that are created by production.
Software Tools in GLD study Akiya Miyamoto KEK For Orsay Software Workshop 2 May, Based on ACFA-SIM-J activities K.Fujii 2, Y.Fujishima 8, H.Hano.
Software tools for ILC Studies Akiya Miyamoto KEK CIAW07 November 5-7, IHEP, Beijing, China.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Summary of Simulation and Reconstruction Shaomin CHEN (Tsinghua University)  Framework and toolkit  Application in ILC detector design Jupiter/Satellites,
GLD Simulation tools and PFA studies Akiya Miyamoto KEK At 9-January-2007 FJPPL meeting.
ILC DBD Common simulation and software tools Akiya Miyamoto KEK ILC PAC 14 December 2012 at KEK.
Getting started DIRAC Project. Outline  DIRAC information system  Documentation sources  DIRAC users and groups  Registration with DIRAC  Getting.
9-13/9/03 Atlas Overview WeekPeter Sherwood 1 Atlfast, Artemis and Atlantis What, Where and How.
Paris package: practical aspects Installation / presentation To run a simulation Analysis To add a new module to Paris Installation / presentation To run.
1 Software tools for GLC studies Akiya Miyamoto KEK 20 April, 2004 Representing ACFA-Sim Group
1 Using Jupiter and Satellites Akiya Miyamoto KEK Jan 2006.
H.G.Essel: Go4 - J. Adamczewski, M. Al-Turany, D. Bertini, H.G.Essel, S.Linev CHEP 2003 GSI Online Offline Object Oriented Go4.
Lab 3 + Using the Terminal 1. "Under Linux there are GUIs (graphical user interfaces). where you can point and click and drag, and hopefully get work.
Software tools and Computing Akiya Miyamoto KEK 29-September-2006 At FJPPL meeting.
1 Software tools and Computing Akiya Miyamoto KEK Gakujyutsu Sousei Kaigi 28-June 2006 KEK 4 th Building Seminar Hall.
Page 1 Printing & Terminal Services Lecture 8 Hassan Shuja 11/16/2004.
HIGUCHI Takeo Department of Physics, Faulty of Science, University of Tokyo Representing dBASF Development Team BELLE/CHEP20001 Distributed BELLE Analysis.
SoLID simulation with GEMC Zhiwen Zhao 2015/03/26.
J.P. Wellisch, CERN/EP/SFT SCRAM Information on SCRAM J.P. Wellisch, C. Williams, S. Ashby.
Report from Software Workshop before TILC09 (16-April) Akiya Miyamoto, KEK 21-April-2009 ILD Meeting.
2/4/20079th ACFA ILC Detector Simulation Works 9 th ACFA IHEP Feb. 4 th -7 th, 2007 Tamaki Yoshioka ICEPP, Univ. of Tokyo on behalf.
1 Introduction to SimTools Akiya Miyamoto KEK June 2005.
Software Status for GLD Concepts Akiya Miyamoto 31-October-2007 ILD Optimization Meeting References: - Y.Sugimoto, “GLD and GLDc”, talk at ALCPG07, ILD.
1 Software tools in Asia Akiya Miyamoto KEK 18-March-2005 Simulation and Reconstruction Session LCWS2005 Representing acfa-sim-j activity M.C.Chang 1,K.Fujii.
1 Jupiter and Satellites Akiya Miyamoto KEK June 2005.
INFSO-RI Enabling Grids for E-sciencE Using of GANGA interface for Athena applications A. Zalite / PNPI.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring Windows Server 2008 Printing.
1 Software tools for GLD Studies Akiya Miyamoto KEK 25 May, 2005 at IHEP Based on acfa-sim-j activity.
Go4 Workshop J.Adamczewski-Musch, S.Linev Go4 advanced features.
Wouter Verkerke, NIKHEF 1 Using ‘stoomboot’ for NIKHEF-ATLAS batch computing What is ‘stoomboot’ – Hardware –16 machines, each 2x quad-core Pentium = 128.
Software framework and batch computing Jochen Markert.
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.
1 Jupiter, Satellites and SimTools Akiya Miyamoto KEK 16-March-2005 Simulation Mini Workshop Based on acfa-sim-j activity.
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
Advanced Computing Facility Introduction
Submit BOSS Jobs on Distributed Computing System
Jupiter, Satellites and SimTools
Jupiter and Satellites
Introduction to SimTools
Presentation transcript:

1 Introduction to SimTools Akiya Miyamoto KEK Jan 2006

2 Plan of Tutorials KEK ILC Computing JSF  Intorudction,  Go through examples  learn how to access JSF classes Jupiter / Satellites  Intorudction  Go through examples Kick-off studies

3 KEK ILC Computing KEK DMZ Zone FJ Network Outside KEK JLCGATE KEKCC-Gate router GW jlclogin jlclogin2 jlccpu06 jlccpu07 jlccpu jlccpuxx

4 CPU Configuration jlcloginRedHat 9.0 /home /data, /data2, /data3 /data4/users /data4/soft/samples jlclogin2SL4.2 Will be terminated /home /data2, /daat3, /data4 ( NFS mount of jlclogin disk) /data5, /data6 : for public soft files.

5 Local commands Submit job  $ submit [-h host] command Submit job as a batch job  $ submit command > log 2>&1 & ( in case of bash ) Show job status in CPU server  $ showjob Monitor CPU loads of each CPU server  $ cpui To kill job running at CPU server  $ rsh jlccpuXX “ps –ef | grep username”  $ rsh jlccpuXX “kill –15 XXXX”

6 How to setup your account $ cd $ cp /home/miyamoto/Tutorials/misc/dot.rootrc ~/.rootrc $ mkdir Tutorials $ cd Tutorials $ cp /proj/soft/Release/1.21/setup.bash. $ source setup.bash  You are ready to run jsf/jupiter/satellites program

7 Information on the web

8 Files in SimTools SimTools tools lcbase Leda jsf Jupiter Uranus Satellites docs examples Jupiter exam01 QuickSim Satellites setup.bash Readme..... Physsim

9 Functions of each components lcbase : configuration files Leda : Analysis tools (Kalman fitter, 4vector and jet findinder utilities ) jsf : Root-based framework lclib : QuickSim and other fortran based utilities physsim : Helas-based generator Jupiter : Full simulation based on Geant4 Uranus : Data analysis packages Satellites : Data analysis packages for MC data  We use only C++, except old fortran tools.  Link to various tools at  All packages are kept in the CVS. Accessible from

10 JSF JSF provides common framework for studies using  Quick Simulator  Jupiter/Satellites To start interactive session of jsf, do $ jsf gui.C JSF control panel popes up

11 Using JSF Control Panel Controls menu  run mode  generator type  generator parameters  pythia –event type  zh  save parameters Next Event button

12 Batch Run root option:  -b : run without X  -q : quit at the end jsf option  --maxevt=N : N is number of events $ jsf -b -q --maxevt=100 gui.C

13 JSF Basics

14 JSF features - 1 JSF is based on ROOT  User needs to lean just one language, C+ JSF provides a framework for modular analyses  Common framework for event generation, detector simulation, and analyses.  Same framework for beam test data analysis Unified framework for interactive and batch jobs  GUI for control of an interactive run Histogram and event display packages included  A file similar to.rootrc is used to set parameter.  Default values an be overidden by command line argument at run time.

15 JSF Features – 2 Object I/O  Each modules can save/read their event data as branches of a root tree.  Job parameters, histograms, ntuples and private analysis tree can be saved in the same file Packages  Included in the release  Pythia6.3, Bases/Spring++, ZVTOP, JETNET, BSGEN Provided as separated packages  Physsim (Event generators and analysis utilities)  LCLIB (QuickSim, Helas)  Jupiter (Geant4)  Uranus/Satellites

16 JSF Conponents Libraries ( $JSFROOT/lib )  Pre-compiled C++ classes to build JSF application such as libJSFGenerator.so, libJSFQuickSim.so, … Executables (main program ) ($JSFROOT/bin)  “jsf” command : built with ROOT+libJSF.so Macros ($JSFROOT/macro)  C++ program is used as Macro thanks to CINT (No need to compile and link)  In JSF, Macros are used to set run parameters and provide a simple analysis code. gui.C, GUIMainMacro.C, UserAnalysis.C

17 JSF Kernel JSF is a framework for event-by-event data analysis Provides a modular framework suitable for analysis consists of several sub-detectors Job flow control Create modules Jon Initialization Begin Run Event analysis End Run Job Termination  Job flow is controlled by a class, JSFSteer  Analysis modules are inherited from a class, JSFModule  Member functions of JSFModule Initialize(), BeginRun(..), Process(…), EndRun(), Terminate() JSF job flow concept A simple example without Macros is prepared in $JSFROOT/example/ZHStudy

18 JSF Kernel - FileIO  A class, JSFEventBuf, is defined by JSFModule  It is used to define branch of a ROOT Tree ( used to save/get event data )  JSFModule  JSFEventBuf : 1-to-1 correspondance  Information of JSFModule written in a root file is used to define branch for read-in data.  In a user program,  To get pointer to JSFModule objects, mod= (JSFModule*) gJSF->FindModule(“module_name”)  To get pointer to JSFEventBuf objects, buf=(JSFEventBuf*)mod->EventBuf()

19 Access to JSFModule and JSFEventBuf In script  JSFSteer *jsf (defined in gui.C) jsf->GetEventNumber(); JSFXXX *mod=(JSFXXX*)jsf- >FindModule("JSFXXX"); JSFXXXBuf *buf=(JSFXXXBuf*)mod->EventBuf(); In compiled code,  JSFSteer *gJSF (defined in JSFSteer.h)

20 Useful Web information JSF Class Documents CVS 

21 Parameter file All parameters are managed by JSFEnv class  In the userprogram, they are obtained by a method, JSFEnv::GetValue(“Parameter.name”,default) At run time, paremetercan be changed by three method  In a file, jsf.conf Parameter.Name: value #!argname # comments ….  As a command line argument, like $ jsf –argname=value gui.C  Through the popup menues of JSF Control Panel Each user can add their own menu by a function, UserMenu() argname is an alias of Parameter.Name used to parse command line argument

22 Macro in JSF In JSF, macros ( xxx.C file ), are used extensively to define type of jobs and job parameters. GUIMainMacro.C : Define a standard set of modules and their parameters gui.C : Load GUIMainMacro.C and libraries for GUI UserAnalysis.C : An sample user macro file for Initialization, event analysis and drawing histogram Important macro files in $JSFROOT/macro directory

23 JSF – First example in SimTols Examples inSimTools $ cd [SimTools]/examples/JSF_QuickSim/exam01 $ jsf gui.C JSF control panel popes up

24 UserAnalsis.C Example in $JSFROOT/macro/UserAnalysis.C Three functions:  UserInitialize() : Called at Job initialization define Histgrams, etc.  UserAnalysis() : Called at each event for event analysis  DrawHist() : Called to draw histogram

25 GUIMainMacro

26 Build Compilied library buildjsf command

27 Other examples Exam02 Exam03 Exam04

28 JSF Generators JSFGenerator PythiaGenerator JSFBases - JSFSpring - JSFHadronizer JSFMEGenerator - JSFSHGenerator JSFReadMEGenerator - JSFPythiaHadronizer

29 PythiaGenerator Parameters  Process : ZH, ZZ, WW, enW, eeZ, gammaZ  BeamStrahlung  Decay: Z, W, H InitPythia.C

30

31 JSFGeneratorParticle Particle information ID, Mass, Charge, P, X, DLPointers to Mother, 1st_Daughter, NDaughter Example  jsf/generator  using JSFGeneratorParticle  EventShape

32 JSFQuickSim Quick Simulator module  Detector parameter file  $(LCLIBROOT)/simjlc/param/detect7.com -- "JLC-I ” Green Book Detector (2 Tesla), default  $(LCLIBROOT)/simjlc/param/jlc3T.com -- "ACFA Report" (3 Tesla)  $ (LCLIBROOT)/simjlc/param/gld_v1.com -- “ GLD_V1" (3 Tesla) (performance needs to be checked.)  JSFQuickSimParam : parameter class  JLCQuickSim.ParameterFile: env. param. Simulator Output data  JSFQuickSimBuf VTX (+IT), CDC, EMC, HDC, LTKCLTrack

33 SIMDSTBuf The format agreed among ACFA group. JSFQuickSIM + JSFGenerator Same information can be written to a file accesible by FORTRAN program.

34 Classes for QuickSim Output JSFSIMDSTBuf Int_t GetNLTKCLTracks(); Int_t GetNCDCTracks(); Int_t GetNVTXHits(); Int_t GetNEMCHits(); Int_t GetNHDCHits(); Int_t GetNSMHits(); Int_t GetNGeneratorParticles(); TObjArray *GetLTKCLTracks(); // Pointers to LTKCLTracks objects array TClonesArray *GetCDCTracks(); // Pointers to CDCTracks object array TClonesArray *GetVTXHits(); // Pointers to VTXhits object array TClonesArray *GetEMCHits(); // Pointers to EMhits object array TClonesArray *GetHDCHits(); // Pointers to HDhits object array TClonesArray *GetSMHits(); // Pointers to SMhits object array TClonesArray *GetGeneratorParticles(); // Pointers to GeneratorParticle objects array important Member functions:

35 JSFLTKCLTrack Information based on "Combined Track Bank"  Data in class  P at closest approach to IP  Particle type: 1=Pure gamma, 2=Gamma in mixed EMC, 3=Pure neutral Hadron, 4=Hadron in mixed HDC, 5=Pure charged hadron, 6=Unmached Track 11=Electron candidate, 13=muon candidate  Source of information : 100*IHDC + 10*IEMC + ICDC  Nsig  Pointer to CDC Tracks

36 Anlib ANL4DVector: TLorentz, Lockable ANLEventSahpe  Using TObjArray of ANL4DVector  Calculate Thrust, Oblateness, Major/Minor Axis ANLJetFinder  base class for Jade, JadeE, Durham jet finder ANLJet : ANL4DVector See examples in $(LEDAROOT)/Anlib/examples

37 JLCCVS Latest packages are available at How to get: $ cvs -d login Password: $ cvs -d co jsf Update $ cvs update -P See CVS log $ cvs log Web interface to see a code history

38 Information on Web Home page of ACFA-Sim group SimTools 

39 Backup slides

40 jsf gui.C Construct JSFSteer IsBatch ? gui=new JSFGUIFrame() Start Interactive session BatchRun() yes no

41 Setup.bash #.bashrc # Following two lines are essential export SIMTOOLS_DIR=/home/sample/SimTools export ROOTSYS=/home/root/root # next three lines are required to compile package export JDK_HOME=/home/soft/JDK/j2sdk1.4.2_06 export G4INSTALL=/home/soft/Geant4/geant4.6.1 export LCIO=/home/soft/lcio/v

42.rootrc ROOT uses.rootrc file to set configuration parameters. Following two parameters must be defined to run JSF..rootrc file is in your current directory or in your home directory.

43 Getting started with SimTools SimTools is a collection of precompiled binaries of JSF, Jupiter, Satellites and related package.  Compiled on Redhat 9 linux, using gcc  Requires ROOT  Package will be updated every 1 or 2 months Web site - For installation,  Download from the web site  Edit setup.bash properly  Do "source setup.bash"