Difference: ParticleFlowFireWorks (30 vs. 31)

Revision 312019-08-24 - CiliciaUzzielPerez

Line: 1 to 1
 
META TOPICPARENT name="WorkBookParticleFlow"

3.4.4 Studying Particle Flow with Fireworks

Line: 30 to 30
 

A Quick Example

Deleted:
<
<

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

 
Changed:
<
<
You can take a look at the attached screenshots (pflow.fwc & pflow_algo.fwc) so that you know what to expect when loading Fireworks with the particle flow config files.
>
>
You can quickly run a sample dataset. If you are using a conda environment (see other ways to run Fireworks here) run the following commands. The
 --no-version-check 
is applied so that we can safely ignore the CMSSW version that produced it.
 
Deleted:
<
<
cmsShow 4.2-2

In the main cmsShow directory (e.g. ~/Documents/cmsShow-4.2-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-2

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

 
Changed:
<
<
./cmsShow -c pflow_algo.fwc http://cern.ch/fireworks/data-4.2.root
>
>
conda activate fireworks cmsShow.exe --no-version-check http://cern.ch/fireworks/data-4.2.root
 
Changed:
<
<
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
>
>
In this case the root file here was produced with CMSSW_4_2_2 while we are using CMSSW_10_6_1.
 
Changed:
<
<

How to get an alternative Candidate display

>
>
At the top of the window, you can change navigate the different event by changing the event number. There is also a filter field that allows you to select for example events with muons whose transverse momentum is greater than 20 GeV. You can click on the filter button and type in the event filter expression as "$Muons.pt()>20". If you apply "$Tracks.pt()>1$", you will see that only 9 out of the 15 events are left.
 
Changed:
<
<
This how-to is only for those users that have followed the second installation recipe (FWLite 4_2_3).
>
>
At the left side of the window you should see a summary of the object collections that are shown on the event display. You can check and uncheck the tick boxes to control which collections get displayed. You can also click on the "Add collection" in order to display more collections not currently shown.
 
Deleted:
<
<
  1. The first thing to do is start cmsShow. You may have already done this following the instructions in one of the previous how-to's
  2. Once the application is running you should use the add collection dialog box to (the button to open this is on the left hand side of the main view) search for 'Alt Candidates', as shown here.
  3. You should now have an alternative display of the Candidates in the RhoPhi and RhoZ views (see the screenshot here).

An example set of instructions are shown below (these assume that you are in the main FWLite directory e.g. ~/Documents/CMSSW_4_2_3_FWLITE/work/CMSSW_4_2_3_FWLITE):

   source ../../fwlite_setup.sh
   cmsenv
   cmsShow http://cern.ch/fireworks/data-4.2.root
From this point you can simply add the 'Alt Candidates' collection using the add collection dialog box.
 

How to load a config file at runtime

 
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