Skip to content

Commit

Permalink
updating recipe and example run
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Jun 9, 2015
1 parent e25e377 commit 506584b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Analysis software for TTbar+X differential cross section analysis (TOP-12-042)
To setup the stand-alone version of the code:

```
# this section will be revisited, please use CMSSW setup for now
# get the code from the repository
git clone https://github.com/BristolTopGroup/AnalysisSoftware.git AnalysisSoftware
cd AnalysisSoftware
Expand Down Expand Up @@ -40,31 +41,32 @@ nohup ./AnalysisSoftware python/test_cfg.py &> test.log &
To setup the code using CMSSW:

```
# on soolin (scientific linux 5 machines)
export SCRAM_ARCH=slc5_amd64_gcc462
cmsrel CMSSW_6_0_0
cd CMSSW_6_0_0/src
cmsenv
# OR on DICE (scientific linux 6 machines)
. $VO_CMS_SW_DIR/cmsset_default.sh # echo $SCRAM_ARCH should now return slc6_amd64_gcc472
cmsrel CMSSW_6_2_12
cd CMSSW_6_2_12/src
# on soolin (and other scientific linux 6 machines)
export SCRAM_ARCH=slc6_amd64_gcc491
# This version comes with ROOT 6.02/05
scram p -n CMSSW_7_5_0_pre5_AS CMSSW_7_5_0_pre5
cd CMSSW_7_5_0_pre4_AS/src/
cmsenv
# initialise CMS git
git cms-init
# get the code from the repository
git clone https://github.com/BristolTopGroup/AnalysisSoftware.git BristolAnalysis/Tools
cd BristolAnalysis/Tools
# get submodules:
git submodule init && git submodule update
cd -
ln -s BristolAnalysis/Tools/external/TopQuarkAnalysis TopQuarkAnalysis
# compile
scram b -j2
hash -r #or rehash in case that BAT cannot be found
# test run the code:
BAT_Tests
nohup BAT BristolAnalysis/Tools/python/test_cfg.py &> test.log &
sample=TTJet analysisMode=central maxEvents=100 BAT BristolAnalysis/Tools/python/master_PHYS14_cfg.py
#../tmp/slc6_amd64_gcc491/src/BristolAnalysis/Tools/test/BAT_Tests/BAT_Tests
#nohup BAT BristolAnalysis/Tools/python/test_cfg.py &> test.log &
```

## Eclipse
Expand Down
8 changes: 5 additions & 3 deletions python/master_PHYS14_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def getAnalysisSettings(analysisMode):


#config start
#number of events to be processed
maxEvents = 0# 0 == all
if os.environ.has_key('maxEvents'):
maxEvents = int(os.environ['maxEvents'])

toolsFolder = 'BristolAnalysis/Tools/'
if os.environ.has_key('toolsFolder'):
toolsFolder = os.environ['toolsFolder']
Expand Down Expand Up @@ -124,9 +129,6 @@ def getAnalysisSettings(analysisMode):
for setting,value in settings.iteritems():
print setting, '=', value

#number of events to be processed
maxEvents = 0# 0 == all

#Jet Energy Resolutions files (L7 corrections)
bJetResoFile = toolsFolder + "data/bJetReso.root"
lightJetResoFile = toolsFolder + "data/lightJetReso.root"
Expand Down

0 comments on commit 506584b

Please sign in to comment.