How to compile and run CSCSkim

Step-by-step instructions for Zig and Luca:

First, make a basic installation under 2_1_0:

mkdir SKIM6
cd SKIM6
project CMSSW
cmsrel CMSSW_2_1_0
cd CMSSW_2_1_0/src
cvs co DPGAnalysis/Skims

Next, replace the released version of CSCSkim.cc with the one I made for this project:

cd DPGAnalysis/Skims/src/
cp -v /afs/cern.ch/user/s/schmittm/public/SKIM6/CMSSW_2_1_0/src/DPGAnalysis/Skims/src/CSCSkim.cc .
cd ../interface
cp -v /afs/cern.ch/user/s/schmittm/public/SKIM6/CMSSW_2_1_0/src/DPGAnalysis/Skims/interface/CSCSkim.h  .

And get the python configuration file, too:

cd ../test/
cp -v /afs/cern.ch/user/s/schmittm/public/SKIM6/CMSSW_2_1_0/src/DPGAnalysis/Skims/test/try_it.py .
You'll need to edit try_it.py in some obvious ways - let me know if you need help with that.

Now you need to compile the code:

cd ../../../
which should put you in SKIM6/CMSSW_2_1_0/src or someplace like that.
Then:
eval `scramv1 runtime -csh`
scramv1 b
and after a few minutes you should see something like:
@@@@ ----> OK, shared library FULLY-BOUND (no missing symbols): libDPGAnalysisSkims.so
Leaving library rule at DPGAnalysis/Skims
--- Registered EDM Plugin: DPGAnalysisSkims
>> Leaving Package DPGAnalysis/Skims
>> Package DPGAnalysis/Skims built
>> Subsystem DPGAnalysis built
(Don't worry about messages like "skipping incompatible /usr/lib64/xxxxxxxxx")

Now you can run it:

cd DPGAnalysis/Skims/test/
cmsRun try_it.py


When I run this on lxplus then I see something like this scrolling across the screen:

Begin processing the 3036th record. Run 51218, Event 646395, LumiSection 15 at 13-Aug-2008 14:03:13 CEST
Begin processing the 3037th record. Run 51218, Event 646408, LumiSection 15 at 13-Aug-2008 14:03:13 CEST
Begin processing the 3038th record. Run 51218, Event 646429, LumiSection 15 at 13-Aug-2008 14:03:13 CEST

==========================================================================
        messy event!
          3038  run 51218       event 646429
----- nRecHits = 56     nChambersWithMinimalHits = 7    nSegments = 8   select? 1
                337     cntRecHit= 111110
                443     cntRecHit= 111111
                463     cntRecHit= 111111
                495     cntRecHit= 111111
                497     cntRecHit= 141111
                515     cntRecHit= 411211
                534     cntRecHit= 222224
==========================================================================

Begin processing the 3039th record. Run 51218, Event 646446, LumiSection 15 at 13-Aug-2008 14:03:13 CEST
Begin processing the 3040th record. Run 51218, Event 646479, LumiSection 15 at 13-Aug-2008 14:03:13 CEST
Begin processing the 3041st record. Run 51218, Event 646483, LumiSection 15 at 13-Aug-2008 14:03:13 CEST
Begin processing the 3042nd record. Run 51218, Event 646497, LumiSection 15 at 13-Aug-2008 14:03:13 CEST
which shows a debug output for one selected "messy" event.

At the end, you'll see a summary such as:

        ====== CSCSkim ==========================================================
                type of skim ...............................    4
                events analyzed ..............  4000
                events selected ..............  15      fraction= 0.00375
                events chambers both sides ...  0
                events w/ overlaps ..........   0
                events lots of hit chambers .   15
        =========================================================================
In this case, 15 events were selected out of 4000. They were written out to /tmp/schmittm/messyEvents.root As you already figured out, you need to change the directory name.

-- MichaelSchmitt - 13 Aug 2008

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2008-08-20 - MichaelSchmitt
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main 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