Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:28

0001 #!/bin/tcsh -f
0002 #
0003 # Script for running dijet ratio. results stored in dCache.
0004 # Used by Manoj Jha.
0005 #
0006 # parameters
0007 #
0008 # $1 - bin number 
0009 # $2 - etaInner
0010 # $3 - etaOuter
0011 # $4 - run number 
0012 
0013 setenv SCRAM_ARCH slc3_ia32_gcc323
0014 source /uscms/home/manoj/data/cshrc uaf
0015 
0016 cd /uscms_data/d1/manoj/after-phd/diJet/cmssw/CMSSW_1_2_0/src
0017 eval `scramv1 runtime -csh`
0018 
0019 cd ${_CONDOR_SCRATCH_DIR}
0020 
0021 set ranseed = ${1}${2}
0022 echo "random seed: " $ranseed
0023 
0024 cat > reco.cfg <<EOF
0025 process myprocess =  {
0026 #keep the logging output to a nice level
0027 
0028 include "FWCore/MessageLogger/data/MessageLogger.cfi"
0029 
0030 source = PoolSource {
0031 untracked vstring fileNames = { 
0032 "dcap://cmsgridftp.fnal.gov:24136/pnfs/fnal.gov/usr/cms/WAX/2/manoj/work/after-phd/QcdDijet/MCData/QcdBackgrd/mc_jetcor_120_qcd_pt_${1}.root"
0033 }
0034 untracked int32 maxEvents = -1
0035 }
0036 service = Tracer { untracked string indention = "$$"}
0037 
0038 module myanalysis = MassAnalyzer {
0039 
0040 # names of modules, producing object collections
0041 string Mid5GenJets = "midPointCone5GenJets"
0042 string Mid5CaloJets = "midPointCone5CaloJets"
0043 string Mid5CorRecJets = "corJetMcone5"
0044 string HepMcSrc  =  "VtxSmeared"
0045 double v_etaInner = $2
0046 double v_etaOuter = $3
0047 
0048 # name of output root file with histograms
0049 untracked string HistOutFile = "DiJetAnalysis.root"     
0050 
0051 }
0052 
0053 # module dump = EventContentAnalyzer {}
0054 
0055 # path p = {dump}
0056 path p = {myanalysis}
0057 
0058 }
0059 EOF
0060 
0061 cmsRun  reco.cfg
0062 
0063 ls -ltr | tail -4
0064 
0065 set storage_dir = /pnfs/cms/WAX/2/${user}/work/after-phd/QcdDijet/Analysis/QcdBackgrd/etaOptimization
0066 
0067 if (! -d ${storage_dir}/${2}_${3}) then
0068         mkdir ${storage_dir}/${2}_${3}
0069 else
0070         echo "Directory ${storage_dir}/${2}_${3} exists"
0071 endif
0072 
0073 dccp DiJetAnalysis.root ${storage_dir}/${2}_${3}/QcdBackgrd_${1}_${4}.root