Skip to content

Commit 78a858d

Browse files
committed
Merge pull request #163 from kreczko/documentation-update
[MRG] Updating the documentation (Run 2)
2 parents e25e377 + 5d5f9ae commit 78a858d

File tree

6 files changed

+54
-20
lines changed

6 files changed

+54
-20
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Analysis software for TTbar+X differential cross section analysis (TOP-12-042)
88
To setup the stand-alone version of the code:
99

1010
```
11+
# this section will be revisited, please use CMSSW setup for now
1112
# get the code from the repository
1213
git clone https://github.com/BristolTopGroup/AnalysisSoftware.git AnalysisSoftware
1314
cd AnalysisSoftware
@@ -40,30 +41,30 @@ nohup ./AnalysisSoftware python/test_cfg.py &> test.log &
4041
To setup the code using CMSSW:
4142

4243
```
43-
# on soolin (scientific linux 5 machines)
44-
export SCRAM_ARCH=slc5_amd64_gcc462
45-
cmsrel CMSSW_6_0_0
46-
cd CMSSW_6_0_0/src
47-
cmsenv
48-
# OR on DICE (scientific linux 6 machines)
49-
. $VO_CMS_SW_DIR/cmsset_default.sh # echo $SCRAM_ARCH should now return slc6_amd64_gcc472
50-
cmsrel CMSSW_6_2_12
51-
cd CMSSW_6_2_12/src
44+
# on soolin (and other scientific linux 6 machines)
45+
export SCRAM_ARCH=slc6_amd64_gcc491
46+
# This version comes with ROOT 6.02/05
47+
scram p -n CMSSW_7_5_0_pre5_AS CMSSW_7_5_0_pre5
48+
cd CMSSW_7_5_0_pre4_AS/src/
5249
cmsenv
50+
# initialise CMS git
51+
git cms-init
5352
5453
# get the code from the repository
5554
git clone https://github.com/BristolTopGroup/AnalysisSoftware.git BristolAnalysis/Tools
55+
cd BristolAnalysis/Tools
5656
5757
# get submodules:
5858
git submodule init && git submodule update
59-
59+
cd -
60+
ln -s BristolAnalysis/Tools/external/TopQuarkAnalysis TopQuarkAnalysis
6061
# compile
6162
scram b -j2
6263
6364
hash -r #or rehash in case that BAT cannot be found
6465
6566
# test run the code:
66-
BAT_Tests
67+
#../tmp/slc6_amd64_gcc491/src/BristolAnalysis/Tools/test/BAT_Tests/BAT_Tests
6768
nohup BAT BristolAnalysis/Tools/python/test_cfg.py &> test.log &
6869
```
6970

File renamed without changes.

python/master_PHYS14_cfg.py renamed to python/master_2015_cfg.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def getAnalysisSettings(analysisMode):
5858

5959

6060
#config start
61+
#number of events to be processed
62+
maxEvents = 0# 0 == all
63+
if os.environ.has_key('maxEvents'):
64+
maxEvents = int(os.environ['maxEvents'])
65+
6166
toolsFolder = 'BristolAnalysis/Tools/'
6267
if os.environ.has_key('toolsFolder'):
6368
toolsFolder = os.environ['toolsFolder']
@@ -124,9 +129,6 @@ def getAnalysisSettings(analysisMode):
124129
for setting,value in settings.iteritems():
125130
print setting, '=', value
126131

127-
#number of events to be processed
128-
maxEvents = 0# 0 == all
129-
130132
#Jet Energy Resolutions files (L7 corrections)
131133
bJetResoFile = toolsFolder + "data/bJetReso.root"
132134
lightJetResoFile = toolsFolder + "data/lightJetReso.root"
@@ -158,7 +160,7 @@ def getAnalysisSettings(analysisMode):
158160
#file with information (cross-section, number of processed events) for event weight calculation
159161
datasetInfoFile = ""
160162
if centerOfMassEnergy == 13:
161-
datasetInfoFile = toolsFolder + "python/DataSetInfo_PHYS14.py"
163+
datasetInfoFile = toolsFolder + "python/DataSetInfo_13TeV.py"
162164

163165

164166
nTuple_version = 0

python/test_cfg.py

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,45 @@
55

66
#center of mass energy: 7TeV for 2010/2011 data/MC, 8TeV for 2012 data
77
#this value will be part of the output file name: DataType_CenterOfMassEnergyTeV_lumipb-1_....
8-
centerOfMassEnergy = 8
8+
centerOfMassEnergy = 13
99
nTuple_version = 0
1010
#number of events to be processed
1111
maxEvents = 100000
1212
verbose = True
1313

14-
if centerOfMassEnergy == 8:
14+
if centerOfMassEnergy == 13:
15+
lumi = 5000.#pb-1
16+
PUFile = 'noFile.root'
17+
#+5%
18+
# PUFile = toolsFolder + "data/PileUp_2012_72765_truth_finebin.root"
19+
#-5%
20+
# PUFile = toolsFolder + "data/PileUp_2012_65835_truth_finebin.root"
21+
22+
#apply the met corrections
23+
applyMetSysShiftCorr = False
24+
applyMetType0Corr = False
25+
26+
#Apply Jet Smearing
27+
applyJetSmearing = False
28+
JetSmearingSystematic = 0
29+
30+
#Apply Top Pt Reweighting
31+
applyTopPtReweighting = False
32+
33+
#Lepton Scale Factors
34+
ElectronScaleFactorSystematic = 0
35+
MuonScaleFactorSystematic = 0
36+
37+
getMuonScaleFactorsFromFile = False
38+
MuonScaleFactorsFile = toolsFolder + ""
39+
40+
getElectronScaleFactorsFromFile = False
41+
ElectronIdIsoScaleFactorsFile = 'noFile.root'
42+
ElectronTriggerScaleFactorsFile = 'noFile.root'
43+
44+
getHadronTriggerFromFile = False
45+
hadronTriggerFile = 'noFile.root'
46+
elif centerOfMassEnergy == 8:
1547
#File for pile-up re-weighting
1648
#integrated luminosity the MC simulation will be scaled to
1749
lumi = 19584#pb-1
@@ -93,7 +125,7 @@
93125
useHitFit = False
94126
produceFitterASCIIoutput = False
95127
inputFiles = [
96-
'/storage/ec6821/NTupleProd/CMSSW_7_2_3/src/ntuple_TTJets_madgraph.root' # 53X 8TeV data
128+
'/hdfs/TopQuarkGroup/run2/ntuples/v18/TTJets_Madgraph_PU30bx50/ntuple_merged_001.root' # 74X 13TeV MC
97129
]
98130

99131
#relative Path from calling BAT to the TopQuarkAnalysis folder

src/Analysers/HitFitAnalyser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ HitFitAnalyser::HitFitAnalyser(boost::shared_ptr<HistogramManager> histMan, cons
330330
outFile(outFileName.c_str()), //
331331
// The following five initializers read the config parameters for the
332332
// ASCII text files which contains the physics object resolutions.
333-
FitterPath_("./"), //
333+
FitterPath_(Globals::TQAFPath), //
334334
hitfitDefault_(FitterPath_ + "TopQuarkAnalysis/TopHitFit/data/setting/RunHitFitConfiguration.txt"), //
335335
hitfitElectronResolution_(
336336
FitterPath_ + "TopQuarkAnalysis/TopHitFit/data/resolution/tqafElectronResolution.txt"), //

src/Event.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ void Event::setPassesMuonQCDSelection( bool passesMuonQCDSelection ) {
430430

431431
void Event::setPassOfflineSelectionInfo( std::vector<unsigned int> passSelections ) {
432432
if ( passSelections.size() > 1 ) {
433-
cout << "SHIT PANIC" << endl;
434433
for ( unsigned int selection = 0; selection < passSelections.size(); ++selection ) {
435434
if ( passSelections[selection] != 2 && passSelections[selection] != 4 )
436435
cout << selection << " " << passSelections[selection] << endl;

0 commit comments

Comments
 (0)