Analysis recipe to use CASTOR objects with 2010 CMS OpenData

Commissioning10 data period

Introduction

This section is valid for 900 GeV and 7 TeV datasets taken during the Commissioning10 period in 2010. More specifically /MinimumBias/Commissioning10-07JunReReco_900GeV/RECO, /MinimumBias/Commissioning10-May19ReReco-v1/RECO.

Installation and setup

Before you can analyse data taken with the CASTOR calorimeter you'll need install a few extra packages into the CMSSW software.
1) Install the CERN OpenData VM for 2010 data, for instructions see here: http://opendata.cern.ch/docs/cms-virtual-machine-2010. The recipe below are validated in version 'CMS-OpenData-1.1.2'.
2) Start up your VM and open the 'CMS shell'.
3) Install the correct version of CMSSW and activate it:
cmsrel CMSSW_4_2_8_lowpupatch1
cd CMSSW_4_2_8_lowpupatch1/src
cmsenv
4) When in CMSSW_4_2_8_lowpupatch1/src directory, download the additional necessary packages and compile them:
wget https://twiki.cern.ch/twiki/pub/CMS/CASTOROpenData2010/Commissioning10_additional_packages.tar
tar -xvf Commissioning10_additional_packages.tar
scram b
Note that following directories should appear in the CMSSW_4_2_8_lowpupatch1/src directory: RecoLocalCalo, RecoJets, data. If this is not the case then something went wrong when downloading/extracting the packages.

Usage

Once the above steps are executed you are basically ready to analyse CASTOR objects. Here we will specify what configuration snippets you will need to apply inside your typical 'demoanalyzer_cfg.py' file when you are coding an analyser in CMSSW.
1) Add the following lines to the cfg file:
# load latest ChannelQuality conditions to remove the bad channels during tower reconstruction
process.es_ascii = cms.ESSource("CastorTextCalibrations",
    input = cms.VPSet(
                cms.PSet(
                    object = cms.string('ChannelQuality'),
                    file = cms.FileInPath('./data/castor_db2013/DumpCastorCondChannelQuality_Run135059.txt')
                ),
    )
)
process.es_prefer_castor = cms.ESPrefer('CastorTextCalibrations','es_ascii')

# import Castor tower and jet reconstruction
process.load('RecoLocalCalo.Castor.Castor_cff')

# construct the module which executes the RechitCorrector
process.rechitcorrector = cms.EDProducer("RecHitCorrector",
       rechitLabel = cms.InputTag("castorreco","","RECO"), # choose the original RecHit collection
       isData = cms.bool(True) # perform 42X data corrections for 53X RECO input
)

# tell to the CastorTower reconstruction that he should use the new corrected rechits
process.CastorTowerReco.inputprocess = "rechitcorrector"

# include filter to remove bad events
process.castorInvalidDataFilter = cms.EDFilter("CastorInvalidDataFilter")

# add extra CastorJet collections
process.load('RecoJets.JetProducers.ak5CastorJets_cfi')
process.load('RecoJets.JetProducers.ak5CastorJetID_cfi')
2) If process.demo is the actual process that executes your analysis code, then you need to extend the cms.Path() that contains it until you have the following:
cms.Path(process.castorInvalidDataFilter*process.rechitcorrector*process.CastorFullReco*process.ak5BasicJets*process.ak5CastorJetID*process.demo)
It is important that process.demo is at the end of the path, and that the order of the path is respected. Note that the above 2 extensions in the cfg file of the analyser are always needed when analysing Commissioning10 data.

Demo analysis

With this demo analysis you'll be able to cross check that everything is behaving as intended

Run2010B data period

Introduction

These instructions are valid to use with Run2010B OpenData datasets. e.g. http://opendata.cern.ch/record/8

Installation and setup

Before you can analyse data taken with the CASTOR calorimeter you'll need install a few extra packages into the CMSSW software.

Demo analysis

With this demo analysis you'll be able to cross check that everything is behaving as intended

Information valid for all 2010 data

Examples to access all objects and their properties

Examples here...

Jet calibration factors

The idea would be to download them here with instructions on how to apply them

-- HansVanHaevermaet - 2018-09-10

Topic attachments
ISorted ascending Attachment History Action Size Date Who Comment
Compressed Zip archivetar Commissioning10_additional_packages.tar r1 manage 430.0 K 2018-09-10 - 16:37 HansVanHaevermaet Commissioning10 additional packages
Edit | Attach | Watch | Print version | History: r11 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2018-09-10 - HansVanHaevermaet
 
    • 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