-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdigiRec
More file actions
executable file
·87 lines (72 loc) · 2.33 KB
/
digiRec
File metadata and controls
executable file
·87 lines (72 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh -f
ARGS=3
if [ $# -lt "$ARGS" ]
# Test number of arguments to script (always a good idea).
then
echo "Usage: `basename $0` <nevts> <ptmin> <ptmax> "
exit $E_BADARGS
fi
nevts=$1
ptmin=$2
ptmax=$3
cmsvers=100
echo
echo ">>> Beginning cmsRun execution on `date` <<<"
echo ">>> Number of events to process: $nevts <<<"
echo
#create config file
export WORKDIR=${PWD}
if [ -n "${CMS_PATH:-}" ]; then
echo "CMSSW computing environment already setup"
else
#setup the environment
echo "Setting up CMSSW computing environment"
#export PATH=/bin:/usr/bin:/usr/local/bin:/usr/krb5/bin:/usr/afsws/bin:/usr/krb5/bin/aklog:{$PATH}
. /uscmst1/prod/sw/cms/shrc uaf
fi
cd ${WORKDIR}
pwd
eval `scramv1 runtime -sh`
export CFG=runit_${RANDOM}.cfg
cat > $CFG <<EOF
process RP = {
# initialize MessageLogger
include "FWCore/MessageService/data/MessageLogger.cfi"
replace MessageLogger.cout.threshold = "ERROR"
replace MessageLogger.cerr.default.limit = 10
service = Timing {}
include "Configuration/Examples/data/DIGI.cff"
include "Configuration/Examples/data/RECO.cff"
# include "Configuration/Examples/data/RECO_onlyCkf.cff"
# include "Configuration/JetMET/data/calorimetry-jetmetcorrections.cff"
source = PoolSource {
untracked vstring fileNames = {
"file:/uscmst1b_scratch/lpc1/cmsjtmet/apana/mcfiles/${cmsvers}/qcd_sim_pt_${ptmin}_${ptmax}_501_200.root"
}
untracked int32 maxEvents = ${nevts}
}
module NRECO = PoolOutputModule {
untracked string fileName = '/uscmst1b_scratch/lpc1/cmsjtmet/apana/mcfiles/${cmsvers}/qcd_digireco_pt_${ptmin}_${ptmax}_501_200.root'
untracked vstring outputCommands =
{ # drop a bunch of branches to keep output file size reasonable
"drop *",
"keep CaloTowersSorted_*_*_*",
"keep recoCaloJets_*_*_*",
"keep recoGenJets_*_*_*",
"keep recoCaloMETs_*_*_*",
"keep recoGenMETs_*_*_*",
"keep recoMETs_*_*_*",
"keep edmHepMCProduct_*_*_*"
}
}
sequence ladigi = {mix, hcalDigis, ecalDigiSequence}
# path p1 = {reconstruction, caloJetMetCorrections}
path p1 = { ladigi, (ecalLocalRecoSequence & hcalLocalRecoSequence) , ecalClusteringSequence,jetmetrecontruction}
endpath outpath = { NRECO}
}
EOF
cmsRun -p ${WORKDIR}/${CFG}
rm $CFG
echo
echo ">>> Ending cmsRun execution on `date` <<<"
echo