Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/bin/csh
0002 #BSUB -q 1nh
0003 ##BSUB -J jfp
0004 
0005 echo 'Start'
0006 #export STAGE_SVCCLASS cmscaf
0007 
0008 cmsrel CMSSW_3_1_2
0009 cd CMSSW_3_1_2/src
0010 cmsenv
0011 cvs co Calibration/HcalCalibAlgos
0012 cp /afs/cern.ch/user/a/andrey/scratch1/CMSSW_3_1_2/src/Calibration/HcalCalibAlgos/src/HcalIsoTrkAnalyzer.cc  Calibration/HcalCalibAlgos/src
0013 scram b
0014 cd Calibration/HcalCalibAlgos/test
0015 
0016 
0017 cat > myjob.py <<@EOF
0018 
0019 import FWCore.ParameterSet.Config as cms
0020 
0021 process = cms.Process("ANTEST")
0022 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0023 #process.GlobalTag.globaltag = 'IDEAL_31X::All'
0024 process.GlobalTag.globaltag = 'MC_31X_V5::All'
0025 
0026 process.load("Configuration.StandardSequences.Reconstruction_cff")
0027 process.load("Configuration.StandardSequences.GeometryDB_cff")
0028 process.load("Configuration.StandardSequences.MagneticField_cff")
0029 
0030 process.load("Configuration.StandardSequences.VtxSmearedBetafuncEarlyCollision_cff")
0031 
0032 process.load("Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalIsoTrk_cff")
0033 process.load("Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalIsoTrkNoHLT_cff")
0034 
0035 process.isoHLT.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
0036 process.load("Configuration.StandardSequences.Services_cff")
0037 process.load("Configuration.StandardSequences.Reconstruction_cff")
0038 
0039 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0040 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000)
0041 
0042 process.load("Calibration.HcalCalibAlgos.isoAnalyzer_cfi")
0043 process.isoAnalyzer.AxB = cms.string("7x7")
0044 #outputFileName = cms.string("test_IsoAn.root"),
0045 
0046 process.load("HLTrigger.Timer.timer_cfi")
0047 
0048 process.maxEvents = cms.untracked.PSet(
0049     input = cms.untracked.int32(-1)
0050 )
0051 process.source = cms.Source("PoolSource",
0052     fileNames =
0053     cms.untracked.vstring(
0054 
0055     'rfio:/castor/cern.ch/user/a/abdullin/pi50_fullproduction_312/pi50_${1}.root',
0056     #'rfio:/castor/cern.ch/user/a/abdullin/pi50_fullproduction_310pre10/pi50_${1}.root',
0057     #'file:/afs/cern.ch/user/s/sergeant/scratch0/2008/myRawToReco_IsoTr_FullFED.root'
0058     
0059     #'file:/afs/cern.ch/user/s/sergeant/scratch0/2009/CMSSW_3_1_0/src/Configuration/GenProduction/test/ALCARECOHcalCalIsoTrk.root'
0060 
0061     )
0062     )
0063 
0064 process.options = cms.untracked.PSet(
0065     wantSummary = cms.untracked.bool(True)
0066 )
0067 process.TimerService = cms.Service("TimerService",
0068     useCPUtime = cms.untracked.bool(True)
0069 )
0070 
0071 process.TimerService = cms.Service("TimerService", useCPUtime = cms.untracked.bool(True))
0072 process.pts = cms.EDFilter("PathTimerInserter")
0073 process.PathTimerService = cms.Service("PathTimerService")
0074 
0075 #Use this Path to run the code on RECO data sets (such as single pions produced by Salavat):
0076 process.AnalIsoTrTest = cms.Path(process.seqALCARECOHcalCalIsoTrkNoHLT*process.isoAnalyzer)
0077 
0078 #Use this Path instead to run it on ALCARECO format data:
0079 #process.AnalIsoTrTest = cms.Path(process.isoAnalyzer)
0080 
0081 
0082 #-----------
0083 @EOF
0084 
0085 cmsRun myjob.py
0086 
0087 set outdir=/afs/cern.ch/user/a/andrey/public/isoTrkCalibFiles
0088 #set outdir=/afs/cern.ch/user/a/andrey/scratch1/CMSSW_3_1_0_pre10/src/Calibration/HcalCalibAlgos/test
0089 #set outdir=/castor/cern.ch/user/a/andrey/
0090 
0091 cp rootFile.root $outdir/rootFile_${1}.root
0092 #rfcp rootFile.root $outdir/rootFile_${1}.root
0093 
0094 
0095 cd ../../../../../
0096 
0097 rm -rf CMSSW*