FULL CHAIN SIMULATION of CMS DETECTOR Ijaz Ahmed National centre for Physics, Islamabad.

Slides:



Advertisements
Similar presentations
Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
Advertisements

Lauri A. Wendland: Hadronic tau jet reconstruction with particle flow algorithm at CMS, cHarged08, Hadronic tau jet reconstruction with particle.
Types of Data SimTracks: generated particles SimHits: energy depositions in a detector volume Digis: Single-channel pieces of the detector’s raw binary.
US FAST site EMU CSC test results – a global view from ROOT N. Terentiev (Carnegie Mellon University) Fermilab July 23, 2004.
Introduction to Hadronic Final State Reconstruction in Collider Experiments Introduction to Hadronic Final State Reconstruction in Collider Experiments.
14 Overview of Geant4 Examples 2 nd Finnish Geant4 Workshop 6-7 June 2005 Dennis Wright (SLAC)
14 User Documents and Examples II SLAC Geant4 Tutorial 17 May 2007 Dennis Wright Geant4 V8.3.
OSCAR 2 (for the Tracker) (Adattamento della presentazione di T. Boccali al Tracker Tutorial 3/3/2003)
17-19 Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan Oct, 2007Geant4 Japan 2007 Geant4 Japan.
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.
ROOT An object oriented HEP analysis framework.. Computing in Physics Physics = experimental science =>Experiments (e.g. at CERN) Planning phase Physics.
14 Overview of Geant4 Examples Geant4 Tutorial 8-10 March 2004 Dennis Wright (SLAC)
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.
Introduzione al Software di CMS N. Amapane. Nicola AmapaneTorino, Aprile Outline CMS Software projects The framework: overview Finding more.
ALCPG Software Tools Jeremy McCormick, SLAC LCWS 2012, UT Arlington October 23, 2012.
Validation and TestEm series Michel Maire for the Standard EM group LAPP (Annecy) July 2006.
Readiness of CMS Simulation towards LHC Startup Outline  Introduction  Framework and Interface with GEANT4  Detector specific components  How have.
I3PropagatorMMC module Dmitry Chirkin, LBNL IceCube meeting, Uppsala, 2004.
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.
Pedro Arce Introducción a GEANT4 1 GAMOS tutorial Plug-in’s Exercises Pedro Arce Dubois CIEMAT
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 
Bookkeeping Tutorial. Bookkeeping & Monitoring Tutorial2 Bookkeeping content  Contains records of all “jobs” and all “files” that are created by production.
G.Corti, P.Robbe LHCb Software Week - 19 June 2009 FSR in Gauss: Generator’s statistics - What type of object is going in the FSR ? - How are the objects.
BeamCal Simulations with Mokka Madalina Stanescu-Bellu West University Timisoara, Romania Desy, Zeuthen 30 Jun 2009 – FCAL Meeting.
Analysis with DSTs N. Amapane – INFN Torino CMS Software Tutorial November 4, 2004.
R.T. Jones, Newport News, May The GlueX Simulation Framework GEANT4 Tutorial Workshop Newport News, May 22-26, 2006 R.T. Jones, UConn Monte Carlo.
CHEP06, Mumbai-India, Feb 2006V. Daniel Elvira 1 The CMS Simulation Validation Suite V. Daniel Elvira (Fermilab) for the CMS Collaboration.
Update on the new reconstruction software F. Noferini E. Fermi center INFN CNAF EEE Analysis Meeting - 15/06/20151.
Muon Software Tutorial Rick Wilkinson Caltech. The Basics Q: Is there a Muon class? A : No. A muon is just a RecTrack, the same class as the Tracker uses.
CMS pixel data quality monitoring Petra Merkel, Purdue University For the CMS Pixel DQM Group Vertex 2008, Sweden.
Alexander Richards, UCL 1 Atlfast and RTT (plus DCube) Christmas Meeting 18/12/2007.
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.
Introduction to CMSSW Framework Concepts Simulation & Reconstruction Liz Sexton-Kennedy January 10, 2008.
Detector Monte-Carlo ● Goal: Develop software tools to: – Model detector performance – Study background issues – Calculate event rates – Determine feasibility.
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
CBM Software Meeting 1 CBM Simulation & Analysis Framework Geant3 / Gean4 configuration M. Al-Turany, D. Bertini.
J.P. Wellisch, CERN/EP/SFT SCRAM Information on SCRAM J.P. Wellisch, C. Williams, S. Ashby.
25 Oct 2007Jeremy McCormick, ALCPG MC1 ALCPG Monte Carlo Framework.
Top mass error predictions with variable JES for projected luminosities Joshua Qualls Centre College Mentor: Michael Wang.
Bookkeeping Tutorial. 2 Bookkeeping content  Contains records of all “jobs” and all “files” that are produced by production jobs  Job:  In fact technically.
CBM Simulation Walter F.J. Müller, GSI CBM Simulation Week, May 10-14, 2004 Tasks and Concepts.
1 Introduction to SimTools Akiya Miyamoto KEK June 2005.
Claudio Grandi INFN-Bologna CHEP 2000Abstract B 029 Object Oriented simulation of the Level 1 Trigger system of a CMS muon chamber Claudio Grandi INFN-Bologna.
TDAQ Experience in the BNL Liquid Argon Calorimeter Test Facility Denis Oliveira Damazio (BNL), George Redlinger (BNL).
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.
INFSO-RI Enabling Grids for E-sciencE Using of GANGA interface for Athena applications A. Zalite / PNPI.
CERN Tutorial, September Overview of LHCb applications and software environment.
Muon Persistency Persistent Analysis Objects Muon Persistency Norbert Neumeister µ-PRS meeting February 10, 2004.
27/02/04 ATLAS weekTileCal Athena tutorial, part 21 TileCal Athena tutorial Part 2: Reading GEANT hits from ZEBRA and POOL Reading HLT and testbeam ByteStream.
Go4 Workshop J.Adamczewski-Musch, S.Linev Go4 advanced features.
RP Software Collaboration Meeting 7 Mars 2007 Hubert Niewiadomski TOTEM, CERN Brunel University.
BES III Software: Beta Release Plan Weidong Li 19 th October 2005.
Object-Oriented Track Reconstruction in the PHENIX Detector at RHIC Outline The PHENIX Detector Tracking in PHENIX Overview Algorithms Object-Oriented.
A Short Course on Geant4 Simulation Toolkit Introduction
HYDRA Framework. Setup of software environment Setup of software environment Using the documentation Using the documentation How to compile a program.
Monthly video-conference, 18/12/2003 P.Hristov1 Preparation for physics data challenge'04 P.Hristov Alice monthly off-line video-conference December 18,
GEANT4 for Future Linear Colliders
Simulation Tools for Test Beam
Introduction Goal: Can we reconstruct the energy depositions of the proton in the brain if we are able to reconstruct the photons produced during this.
Vincenzo Innocente CERN/EP/CMC
Introduction to Analysis with DSTs CMS Software Tutorial
CMS Pixel Data Quality Monitoring
Use of Geant4 in experiment interactive frameworks AliRoot
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
2 Getting Started.
Mantis a framework and toolkit for Geant4 simulation in CMS
2 Getting Started.
Presentation transcript:

FULL CHAIN SIMULATION of CMS DETECTOR Ijaz Ahmed National centre for Physics, Islamabad

Simulation Components (OSCAR) Primary Event Physics event (e.g. H → ZZ → eemm for mH = 300 GeV/c2) produced by an event generator: event production, decay tree, kinematics Detector Description Materials, shapes, geometrical hierarchies and positions as well as specific attributes (e.g. sensitive detector) of the CMS detectors; description of the CMS magnetic field Physics Processes The physics interactions (transportation, decay, electromagnetic and hadronic processes e.g. ionization, multiple scattering, bremsstrahlung, inelastic processes etc) for all types of particles (photons, electrons, muons, neutrinos, pions, kaons, protons, neutrons etc) in the event Particle tracking and propagation in the detector (in matter) and magnetic field User actions Miscellaneous selection cuts, tracking parameters, specific actions for tuning and monitoring a simulation application

How to run OSCAR OSCAR is managed by SCRAM; the current public OSCAR release is OSCAR_3_3_0 log on to a linux node cd scram project OSCAR OSCAR_3_3_0 to set up a local project area for OSCAR cmscvsroot OSCAR cvs login password: 98passwd cd OSCAR_3_3_0/src cvs co –r OSCAR_3_3_0 Workspace cd Workspace eval `scram runtime –csh` source writeTrigger.csh oscar –c oscarrc Contains HEPEVT Ntuple address

What is in a POOL File Catalog ? XML file that knows where all the data files are. PoolFileCatalog.xml needs to be in current directory (or have to specify location via InputFileCatalogURL parameter in orcarc)

1) Digitization: from Hits to Digis Output of Simulation (OSCAR) are Hits Position, where a particle entered a sensitive detector volume Direction of the particle, Exit point of the particle Energy deposited (exact format depends on detector type) ORCA simulates reaction of detectors to the passing particle E.g. ionization of gas in drift tube muon chamber, drift of particles to wire, avalanche, signal Detector electronics (analog to digital conversion, data compression, …) Parameterizations of actual processes used Also includes full emulation of Level-1 Trigger electronics Result: Digis Digis are like the raw data that will come out of the experiment!!!

1) Digitization: adding Pileup At high LHC luminosity an average of 17 interactions occur in the same bunch crossing Detector response is slower than 25ns: also have to consider interactions before and after Overlay crossings -5 to +3 ~200 “minimum bias” events added to 1 signal event (before digitization) SimHits/Signal SimHits/minbias ORCA Digitization Digis 1 = 200

2) Reconstruction ORCA does Reconstruction of Raw Detector Data (or the Digis) in several steps 1) Detector-specific processing Data unpacking, cluster finding, hit reconstruction, tracking, applying calibration constants 2) Global Tracking include hits from different subsystems, e.g. Tracker and Muon System for muons 3) Vertex Finding Bases on Tracks found in the previous step 4) Particle Identification Physics Objects Produce objects used in physics analyses: electrons, photons, muons, jets, … Both Offline Reconstruction / and High-Level Trigger reconstruction Similar algorithms, but offline algorithms may consume more time, may use more calibration constants, … Can save output of reconstruction: DSTs (“Data Summary Tapes”)

Creating a Working Area login with your CMS account (group zh) cd $SCRATCH can also work on AFS workspace or AFS scratch scram listcompact ORCA […] ORCA ORCA_8_2_0 /afs/cern.ch/cms/Releases/ORCA/ORCA_8_2_0 scram project ORCA ORCA_8_2_0 new directory ORCA_8_2_0 with subdirectories src, config, tmp, logs cd ORCA_8_2_0/src eval `scram runtime –csh` rehash Ready to use pre-compiled executables Set environment variables Rebuild hash table of executables

Standard Executables ORCA can be used in many different ways Data can be processed in steps ( Digitization, Reconstruction,… ) Many different executables exist Standard executables Test executables You can make your own executables (e.g. in Workspace) Standard Executables from Examples/ExProduction writeAllDigis (read hits, digitize, write digis) writeDST (read digis, reconstruct, write DST)

Example 1: from Hits to Digis Log into CVS cmscvsroot ORCA; cvs login (password: 98passwd) Check out the code from CVS (in ORCA_8_2_0/src) cvs co –r Summies04 Example/ExProduction cd Examples/ExProduction Set the parameters writeAllDigis-Tutorial04.orcarc

Setting Parameters: orcarc files writeAllDigis-Tutorial04.orcarc Attention: The file.orcarc in the current directory is always read and used. Specify any other orcarc file with the –c option.

Analysis with ExRootAnalysis This tutorial is dedicated to a ROOT-based analysis out of the CMS data samples stored in the POOL DB. The tool is an ORCA application released under Examples/ExRootAnalysis. The program can access any information stored in POOL (MC information, Digis and Reconstructed objects), process such information and store it in a ROOT tree. The ROOT tree can then be analysed with ROOT A number of examples will be carried out during the tutorial showing the main functionalities of the tool.

>cd scratch0 >mkdir AnalysisTutorial >cd AnalysisTutorial Quick start with ExRootAnalysis To use ORCA under the SLC3 system we need to setup the SCRAM_ARCH environement variable: for sh/ksh/bash >export SCRAM_ARCH=slc3_ia32_gcc323 for csh/tcsh > setenv SCRAM_ARCH slc3_ia32_gcc323 Setup a private ORCA project area: >scram project ORCA ORCA_8_7_2 Configure CVS: >cmscvsroot ORCA >cvs login Password for the anonymous CVS login: 98passwd Now, we can get the code producing ROOT tree: >cd ORCA_8_7_2/src cvs co -rTutorial_872 Examples/ExRootAnalysis > cd Examples/ExRootAnalysis Commands to compile the code: for sh/ksh/bash >scram b; > eval `scram runtime -sh` for csh/tcsh >scram b; >eval `scram runtime -csh` Configure.orcarc (PoolCatalogFile, InputCollections, FirstEvent, MaxEvents): $EDITOR.orcarc

Finally, we can run ExRootAnalysis: ExRootAnalysis Finding DST samples =================== ORCA test data samples: For example, here is one of those test samples: InputFileCatalogURL = InputCollections=/System/StW871DST2x1033/h300eemm/h300eemm Script that lists all available DST samples and their location: >/afs/cern.ch/cms/oo/reconstruction/scripts/findDSTs To find PoolCatalogFile and InputCollections run script with sample name as parameter: /afs/cern.ch/cms/oo/reconstruction/scripts/findDSTs eg03c_HZZ4e_m150 Create shared library for interactive ROOT session = ================ Return back to ORCA_8_7_2/src and install Examples/ExRootAnalysisReader: >cd../.. cvs co -rTutorial_872 Examples/ExRootAnalysisReader >cd Examples/ExRootAnalysisReader Command to build shared library: > scram b Simple analysis using TTree::Draw

========== Now we can start ROOT and look at the data stored on the tree Note 1: under SLC3 system use root.exe to run ROOT Note 2: ROOT automatically locates the shared library Start ROOT and load shared library: >cd../../Examples/ExRootAnalysis >root.exe >gSystem->Load("libExRootAnalysisReader"); Open ROOT tree file and do some basic analysis using Draw or TBrowser: >TFile::Open("test.root"); > Analysis->Draw("VtxPVF.Z"); >TBrowser browser; Note 1: Analysis - tree name, it can be learnt e.g. from TBrowser Note 2: VtxPVF - branch name; Z - variable (leaf) of this branch Complete description of all branches can be found in Examples/ExRootAnalysis/doc/RootTree.html This file is also available via web based CVS interface: /ORCA/Examples/ExRootAnalysis/doc/RootTree.html Macro-based analysis

==================== Analysis macro consists of histogram booking, event loop (histogram filling), histogram display Basic analysis macro: { // Load shared library >gSystem->Load("libExRootAnalysisReader"); // Create chain of root trees > TChain chain("Analysis"); > chain.Add("test.root"); // Create object of class ExRootTree > ExRootTree *tree = new ExRootTree(&chain); > Long64_t numberOfEntries = tree->GetEntries(); // Get pointers to branches used in this analysis >TClonesArray *branchVtx = tree->UseBranch("VtxPVF", "TRootVertex"); >TClonesArray *branchJet = tree->UseBranch("JetIC5A", "TRootJet"); // Book histograms >TH1 *histVtxZ = new TH1F("histVtxZ", "vertex position", 50, -50.0, 50.0); // Loop over all events for(Int_t entry = 0; entry < numberOfEntries; ++entry) { // Load selected branches with data from specified event >tree->ReadEntry(entry); // If event contains at least 1 vertex > if(branchVtx->GetEntries() > 0) { // Take first vertex >TRootVertex *vtx = (TRootVertex*) branchVtx->At(0); // Plot vertex Z co-ordinate > histVtxZ->Fill(vtx->Z); > cout Z << endl; } } // Show resulting histogram > histVtxZ->Draw(); } More advanced macro-based analysis ================================== ExRootAnalysisReader/test contains macro Example.C using class ExRootTree to access data and class ExRootResult to manage histograms booking and output Here are commands to run this macro: >cd../../Examples/ExRootAnalysisReader/test $EDITOR test.list >root.exe >gSystem->Load("libExRootAnalysisReader"); >.X Example.C("test.list") Note: file test.list should contain list of root files that you would like to analyse (one root file per line)

4 Vectors SimHits Digis RecHits RecObj Produced by Monte Carlo and stored in Ntuple Produced by GEANT and stored in DB Include Pileup and stored in DB (Trk) Reconstructed objects Tracks, clusters, jets, e/ 