Running Fast Simulation within IGUANA and visualize events on the fly

News box
This page is under construction - Do not trust yet

Complete: 2

Introduction

The IGUANA event display is a powerful tool which allows to visualize a lot of information about an event, with detailed views of the detector, generated particles, sim hits, digitized hits, and reconstructed quantities including hits, clusters, segments and tracks. It can even be used to visualize the magnetic field. This can be really useful to learn about properties of the detector, but also to understand and debug reconstruction algorithms.

A comprehensive description of IGUANA is given here in the Offline WorkBook. On this page you can find examples of how to use Iguana with Fast Simulation.

Instructions

CMSSW_2_1_9

You will need the appropriate visualization tags:
cvs co -r V02-09-01 VisReco/VisTracker 
cvs co -r V02-05-01 VisReco/VisDetector
cvs co -r V02-10-01 VisReco/VisMuon 
cvs co -r V02-03-10 VisReco/CustomTracker
cvs co -r V02-12-01 VisReco/VisHcal
cvs co -r V02-10-00 VisReco/VisEcal
cvs co -r V02-12-00 VisReco/VisRecoJets
cvs co -r V02-09-01 VisFramework/VisEventSetup
cvs co -r V03-00-00 VisFramework/VisFrameworkBase

Note: these may already be in the CMSS_2_1_9

Fast Simulation examples can be found in

FastSimulation/Configuration/test
To run Fast Simulation with Iguana, the prescription is basically to replace lines in your configuration that contain
cms.OutputModule
and
cms.Endpath
with
process.load("VisFramework.VisFrameworkBase.VisConfigurationService_cff")

For example, in Example_cfg.py replace

process.o1 = cms.OutputModule("PoolOutputModule",fileName = cms.untracked.string("MyFirstFamosFile.root"),
                                                    outputCommands = cms.untracked.vstring("keep *","drop *_mix_*_*"))
process.outpath = cms.EndPath(process.o1)
with
process.load("VisFramework.VisFrameworkBase.VisConfigurationService_cff")
process.VisConfigurationService.ContentProxies = cms.untracked.vstring('Framework/EventSetup',
                                                                       'Reco/Ecal', 
                                                                       'Reco/Hcal', 
                                                                       #'Reco/Tracker', 
                                                                       'Reco/Calorimetry', 
                                                                       'Simulation/Hits')

Note: currently a Twig in Reco/Tracker is causing a crash. For now it is commented out.

and then run:

> iguana Example_cfg.py

From the Event menu open select Next Event and start browsing.

Review status

Reviewer/Editor and Date (copy from screen) Comments
PatrickJanot - 14 November 2007 Created template page
ThomasMcCauley - 26 September 2008 Updated

Responsible: PatrickJanot
Last reviewed by: Reviewer

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2008-09-30 - ThomasMcCauley



 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback