Studying Particle Flow with Fireworks

Overview

This page explains how to set up an experimental version of Fireworks, to study the particle flow reconstruction. To display the particles created by the particle flow algorithm, just use the standard version of Fireworks. This includes:

  • PFCandidates
  • PFJets

In addition to this however, you can use a modified version of Fireworks which is designed to help you understand how the particle flow algorithm identifies and reconstructs particles, using the following inputs:

  • ECAL and HCAL rechits
  • PFClusters
  • Tracks, with their extrapolated position in the calorimeters
  • PFBlocks

Installation recipes

Depending upon what you wish to do with the software there are two installation recipes:

  • The first shows how to acquire the binary files needed if you only wish to run the event display. This is the easiest and quickest method to start displaying events.
  • The second installation recipe truly allows you to get the most up-to-date source code, make your own modifications and re-compile (see here for more information on FWLite).
    • The second recipe also allows you to fix some of the known bugs by updating and re-compiling with the latest source code

NB: If you only wish to display events and don't need access to source code and/or you are working on your own machine then it is highly recommended that you follow the first set of installation instructions.

Prerequisite: Setting up CVS

In order to grab the particle flow configuration fle as well as any source code you need to have access to the cvs repositories.

NB: It is assumed that you have installed the cvs software on your machine!

So that your machine knows where and how to access the repositories, two environment variables must be set.

   export CVSROOT=:ext:YOURUSERNAME@cmssw.cvs.cern.ch:/cvs/CMSSW
   export CVS_RSH=ssh

</pre>

That's it!

Installation Recipe 1 - cmsShow 4.2

Linux:

1. Use the download link here or in a terminal run

 wget http://cern.ch/cmsshow/cmsShow-4.2.linux.tar.gz 

2. Run the following commands in the directory to which you just downloaded the tarball:

   tar xzf cmsShow-4.2.linux.tar.gz
   cd cmsShow-4.2/src
   find ../ -name 'pflow.fwc' -exec rm {} \;
   find ../ -name 'pflow_algo.fwc' -exec rm {} \;
   cvs co Fireworks/Core/macros/pflow.fwc
   cvs co Fireworks/Core/macros/pflow_algo.fwc  
   ln -s src/Fireworks/Core/macros/pflow.fwc ../pflow.fwc
   ln -s src/Fireworks/Core/macros/pflow_algo.fwc ../pflow_algo.fwc
   cd ..

Mac:

1. Use the download link here or in a terminal run

 wget http://cern.ch/cmsshow/cmsShow-4.2.mac.tar.gz 

2. Run the following commands in the directory to which you just downloaded the tarball:

   tar xzf cmsShow-4.2.mac.tar.gz
   cd cmsShow-4.2/src
   find ../ -name 'pflow.fwc' -exec rm {} \;
   find ../ -name 'pflow_algo.fwc' -exec rm {} \;
   cvs co Fireworks/Core/macros/pflow.fwc
   cvs co Fireworks/Core/macros/pflow_algo.fwc
   ln -s src/Fireworks/Core/macros/pflow.fwc ../pflow.fwc
   ln -s src/Fireworks/Core/macros/pflow_algo.fwc ../pflow_algo.fwc
   cd ../

Instructions on how to run cmsShow can be found in the 'How-to' section.

Installation Recipe 2 - Current release with FWlite: 4_2_3

In order to use this installation recipe there are a few prerequisites that need to be met.

  • You are either:
    • working on a mac with xcode installed,
    • using an slc5 terminal or have access to an slc5 terminal (e.g. ssh username@lxplus.cern.ch)
    • using the chroot method explained here.

The Installation

To install simply follow the instructions below. More information on the installation can be found at the standard Fireworks page.

Linux:

1.

  wget http://cmsrep.cern.ch/cms/cpt/Software/download/cms/TARS/slc5_amd64_gcc434/CMSSW_4_2_3_FWLITE-slc5_amd64_gcc434.tar.gz
  tar xzf CMSSW_4_2_3_FWLITE-slc5_amd64_gcc434.tar.gz
  cd CMSSW_4_2_3_FWLITE
  ./install.sh

Mac:

1.

  curl -OL http://cmsrep.cern.ch/cms/cpt/Software/download/cms/TARS/osx106_amd64_gcc421/CMSSW_4_2_3_FWLITE-osx106_amd64_gcc421.tar.gz
  tar xzf CMSSW_4_2_3_FWLITE-osx106_amd64_gcc421.tar.gz
  cd CMSSW_4_2_3_FWLITE
  ./install.sh


2. Assuming that you have followed the cvs prerequisites for this recipe, you now simply need to grab the code!
   cd work/CMSSW_4_2_3_FWLITE/src/
   cvs co Fireworks/ParticleFlow

3. In order to get a display of either the particle flow based physics objects, or the particle flow inputs, you need to acquire the particle flow configuration files.

   cvs co Fireworks/Core/macros/pflow.fwc
   cvs co Fireworks/Core/macros/pflow_algo.fwc
   ln -s src/Fireworks/Core/macros/pflow.fwc ../pflow.fwc
   ln -s src/Fireworks/Core/macros/pflow_algo.fwc ../pflow_algo.fwc

Instructions on how to run FWLite can be found in the 'How-to' section.

Compilation

In order for the newly acquired source code to actually be used, it is necessary to re-compile the program.

NB: The compilation is done using the scram tool and hence, you should at least have some knowledge of it's basic usage.

In the 'src' directory (e.g. ~/Documents/CMSSW_4_2_3_FWLITE/work/CMSW_4_2_3_FWLITE/src) run the following commands:

   . ../../../fwlite_setup.sh
   scram b

How-to

How to get a display of PFCandidates and particle-flow based physics objects

You can take a look at the attached screenshots so that you know what to expect when loading Fireworks with the particle flow config files.

cmsShow 4.2

In the main cmsShow directory (e.g. ~/Documents/cmsShow-4.2/) run the following command:

   ./cmsShow -c pflow.fwc http://cern.ch/fireworks/data-4.2.root

FWLite 4_2_3

In the main FWLite directory (e.g. ~/Documents/CMSSW_4_2_3_FWLITE/work/CMSSW_4_2_3_FWLITE) run the following commands:

   source ../../fwlite_setup.sh
   cmsenv
   cmsShow -c pflow.fwc http://cern.ch/fireworks/data-4.2.root

NB: These instructions already assume that you have acquired the necessary particle flow configuration files (i.e. pflow.fwc & pflow_algo.fwc) by following the installation instructions.

How to get a display of the particle flow inputs

cmsShow 4.2

In the main cmsShow directory (e.g. ~/Documents/cmsShow-4.2/) run the following command:

   ./cmsShow -c pflow_algo.fwc http://cern.ch/fireworks/data-4.2.root

FWLite 4_2_3

In the main FWLite directory (e.g. ~/Documents/CMSSW_4_2_3_FWLITE/work/CMSSW_4_2_3_FWLITE) run the following commands:

   source ../../fwlite_setup.sh
   cmsenv
   cmsShow -c pflow_algo.fwc http://cern.ch/fireworks/data-4.2.root

How to load a config file at runtime

In the main interface go to File and select Load Configuration OR, press Ctrl and l simultaneously. In the new window navigate to, and then open the desired config file (e.g. pflow.fwc or pflow_algo.fwc).

Wish-list & bug reports

This section is used to list bugs that are currently known as well as features that we are currently working towards getting implemented.

Know Bugs

The Wish-list

-- ColinBernet - 08-Feb-2011

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng pflow_algo_fwc.png r1 manage 205.3 K 2011-05-26 - 18:16 UnknownUser A screenshot after loading Fireworks with the pflow_algo.fwc config file
PNGpng pflow_fwc.png r1 manage 218.4 K 2011-05-26 - 17:24 UnknownUser A screenshot after loading Fireworks with the pflow.fwc config file
Edit | Attach | Watch | Print version | History: r33 | r20 < r19 < r18 < r17 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r18 - 2011-05-27 - unknown


ESSENTIALS

ADVANCED TOPICS


 
    • 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