Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-23 03:13:48

0001 #!/bin/csh
0002 #BSUB -q 1nh
0003 ##BSUB -J jfp
0004 
0005 echo 'Start'
0006 
0007 cmsrel CMSSW_3_1_4
0008 cd CMSSW_3_1_4/src
0009 cmsenv
0010 cvs co Calibration/HcalCalibAlgos
0011 scram b
0012 cd Calibration/HcalCalibAlgos/test
0013 
0014 set respcorrdir=/afs/cern.ch/user/a/andrey/scratch1/CMSSW_3_1_4/src/Calibration/HcalCalibAlgos/data
0015 
0016 # if you want to validate your own calibration, copy it to data/ from your local place: 
0017 #cp $respcorrdir/calibConst_IsoTrk_testCone_26.3cm.txt ../data/response_corrections.txt
0018 #cp $respcorrdir/HcalPFCorrs_v2.00_mc.txt ../data
0019 
0020 cat > pfcorrs.py <<@EOF
0021 
0022 import FWCore.ParameterSet.Config as cms
0023 
0024 process = cms.Process("HcalPFCorrsCulculation")
0025 process.load("Configuration.StandardSequences.MagneticField_cff")
0026 process.load("Configuration.StandardSequences.GeometryDB_cff")
0027 process.load("Configuration.StandardSequences.Services_cff")
0028 process.load("Configuration.StandardSequences.Reconstruction_cff")
0029 
0030 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0031 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(100)
0032 
0033 process.load("HLTrigger.Timer.timer_cfi")
0034 
0035 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0036 process.source = cms.Source("PoolSource",
0037 fileNames = cms.untracked.vstring(
0038 
0039 'rfio:/castor/cern.ch/user/a/abdullin/pi50_fullproduction_312/pi50_${1}.root'
0040 
0041      )
0042 )
0043 
0044 process.options = cms.untracked.PSet(
0045    wantSummary = cms.untracked.bool(True)
0046 )
0047 
0048 process.load("Calibration.HcalCalibAlgos.pfCorrs_cfi")
0049 process.hcalRecoAnalyzer.outputFile = cms.untracked.string("HcalCorrPF_${1}.root")
0050 process.hcalRecoAnalyzer.ConeRadiusCm = cms.untracked.double(26.3)
0051 
0052 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0053 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0054 process.GlobalTag.globaltag = cms.string('MC_31X_V5::All')
0055 process.prefer("GlobalTag")
0056 
0057 process.es_ascii2 = cms.ESSource("HcalTextCalibrations",
0058     appendToDataLabel = cms.string('recalibrate'),
0059     input = cms.VPSet(
0060      cms.PSet(
0061       object = cms.string('RespCorrs'),
0062       file = cms.FileInPath('Calibration/HcalCalibAlgos/data/response_corrections.txt')
0063              ),
0064      cms.PSet(
0065       object = cms.string('PFCorrs'),
0066       file = cms.FileInPath('Calibration/HcalCalibAlgos/data/HcalPFCorrs_v2.00_mc.txt')
0067 #      file = cms.FileInPath('Calibration/HcalCalibAlgos/data/HcalPFCorrs_v1.03_mc.txt')
0068              )
0069        )
0070 )
0071 
0072 
0073 #process.TimerService = cms.Service("TimerService", useCPUtime = cms.untracked.bool(True))
0074 #process.pts = cms.EDFilter("PathTimerInserter")
0075 process.PathTimerService = cms.Service("PathTimerService")
0076 process.p = cms.Path(process.hcalRecoAnalyzer)
0077 
0078 #-----------
0079 @EOF
0080 
0081 cmsRun pfcorrs.py
0082 
0083 set outdir=/afs/cern.ch/user/a/andrey/scratch1/CMSSW_3_1_4/src/Calibration/HcalCalibAlgos/test
0084 
0085 cp HcalCorrPF_*.root $outdir/
0086 
0087 cd ../../../../../
0088 
0089 rm -rf CMSSW*