9.7 Analysing Commissioning CSC Data

Complete: 1
Detailed Review status

Goals of this page:

Instructions on this page should get you started analyzing CSC commissioning data:

  • setting up CMSSW
  • getting appropriate package updates
  • finding the data
  • sample analysis

Commands to be typed are given in bold.

Set up your Environment

First, let's setup a clean CMSSW release
scramv1 project CMSSW CMSSW_2_0_4

Now, we need to cd to the /src directory in our release area to run the following setup commands
cd CMSSW_2_0_4/src
eval `scramv1 runtime -sh` or eval `scramv1 runtime -csh` if you are running c-shell

Checking Out Packages

We'll need to update two packages in order to run over the newest of the new commissioning data:

  • CSCRecHitD HEAD version, which is the most update hit reconstruction algorithm for the CSCs
  • CSCValidation V01-02-05 which is the sample analysis program we will use

cvs co -r HEAD RecoLocalMuon/CSCRecHitD
cvs co -r V01-02-05 RecoLocalMuon/CSCValidation

Now compile the code

scramv1 b distclean
scramv1 b -r

Which version to use can be a tricky question, and often changes. If you are unsure, it's always better
to ask someone, since the newest version or the version in the head comes with no guarantees!

Now cd to the directory from which we will run
cd RecoLocalMuon/CSCValidation/test

Getting the Data

For the purpose of this tutorial, we have a data and configuration file for you ready to go.

cp /afs/cern.ch/user/t/teren/public/CSCValidTutorial/validation_tutorial.cfg .

Please keep in mind that this style of .cfg file will only work for CMSSW_2_0_X and earlier. After that
they are being replaced by Python script equivalents

The configuration file validation_tutorial.cfg has MessageLogger destination files
"cmsRun_log.txt" and "cmsRun_errors.txt" which will be written into your
test/ directory. In case of large output it is better to have them in your
/tmp/your_user_name directory. Modify validation_tutorial.cfg accordingly:
"/tmp/your_user_name/cmsRun_log.txt" and

Now get the data file (for tutorial purpose only). Note that the file is large
(~200 Mb). In case if it does not fit into your RecoLocalMuon/CSCValidation/test directory,
put it into your /tmp/your_user_name/ and modify config file above to show new path

cp /afs/cern.ch/user/t/teren/scratch0/CSCValidTutorial/CMSSW_2_0_4/src/RecoLocalMuon/CSCValidation/test/csc_00041356_EmuRUI01_Monitor_000.raw .

or you can get it from castor

rfcp /castor/cern.ch/cms/emuslice/2008/csc_00041356_EmuRUI01_Monitor_000.raw .

if you have time to wait (minutes, hours)

Sample Analysis: CSCValidation

Now let's run the sample analysis code

cmsRun validation_tutorial.cfg > validation_tutorial.log&

It will take about 6-7 min to analyze all events in one data file (~40,000).
The output will be validationHists_tutorial.root in
RecoLocalMuon/CSCValidation/test directory. It has all histograms filled by the
RecoLocalMuon/CSCValidation package.

Now let's look at the results. We'll get a simple premade root macro and run it.
The input file for this macros is validationHists_tutorial.root.

cp /afs/cern.ch/user/t/teren/public/CSCValidTutorial/view.C .
root view.C

In the browser go to "ROOT Files" directory (double click), then to
"validationHists_tutorial.root" where you can find folders with histograms.

Click for more detailed instructions and info on CSCValidation

Reviewer/Editor and Date (copy from screen) Comments
KatiLassilaPerini - 18 Mar 2008 created the template page

Responsible: ResponsibleIndividual
Last reviewed by: YourName - 06 Dec 2008

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2009-02-12 - SlavaValuev
    • 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