Skip to content

Commit

Permalink
Change the way to read the sqlite db file.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihux25 committed Jul 21, 2015
1 parent c7b47c8 commit f818af6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions SkimsAUX/workdir/prod/72X_crab_example/treeMaker_stopRA2.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
if options.specialFix == "JEC" and options.cmsswVersion == "74X":
print "\nApplying fix to JEC issues in 74X ...\n"

inputDB = "sqlite_file:" + os.environ['CMSSW_BASE'] + "/src/SusyAnaTools/SkimsAUX/data/PY8_RunIISpring15DR74_bx25_MC.db"
# inputDB = "sqlite_file:" + os.environ['CMSSW_BASE'] + "/src/SusyAnaTools/SkimsAUX/data/PY8_RunIISpring15DR74_bx25_MC.db"
# print inputDB

process.load("CondCore.DBCommon.CondDBCommon_cfi")
Expand All @@ -273,8 +273,8 @@
## note that the tag name is specific for the particular sqlite file
),
# from page 19 on slides https://indico.cern.ch/event/405326/contribution/2/attachments/811719/1112498/Pythia8.pdf
# connect = cms.string('sqlite:PY8_RunIISpring15DR74_bx25_MC.db')
connect = cms.string(inputDB)
connect = cms.string('sqlite:PY8_RunIISpring15DR74_bx25_MC.db')
# connect = cms.string(inputDB)
# uncomment above tag lines and this comment to use MC JEC
)
## add an es_prefer statement to resolve a possible conflict from simultaneous connection to a global tag
Expand Down
6 changes: 3 additions & 3 deletions SkimsAUX/workdir/prod/74X_crab_example/treeMaker_stopRA2.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
if options.specialFix == "JEC" and options.cmsswVersion == "74X":
print "\nApplying fix to JEC issues in 74X ...\n"

inputDB = "sqlite_file:" + os.environ['CMSSW_BASE'] + "/src/SusyAnaTools/SkimsAUX/data/PY8_RunIISpring15DR74_bx25_MC.db"
# inputDB = "sqlite_file:" + os.environ['CMSSW_BASE'] + "/src/SusyAnaTools/SkimsAUX/data/PY8_RunIISpring15DR74_bx25_MC.db"
# print inputDB

process.load("CondCore.DBCommon.CondDBCommon_cfi")
Expand All @@ -273,8 +273,8 @@
## note that the tag name is specific for the particular sqlite file
),
# from page 19 on slides https://indico.cern.ch/event/405326/contribution/2/attachments/811719/1112498/Pythia8.pdf
# connect = cms.string('sqlite:PY8_RunIISpring15DR74_bx25_MC.db')
connect = cms.string(inputDB)
connect = cms.string('sqlite:PY8_RunIISpring15DR74_bx25_MC.db')
# connect = cms.string(inputDB)
# uncomment above tag lines and this comment to use MC JEC
)
## add an es_prefer statement to resolve a possible conflict from simultaneous connection to a global tag
Expand Down
6 changes: 3 additions & 3 deletions SkimsAUX/workdir/prod/treeMaker_stopRA2.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
if options.specialFix == "JEC" and options.cmsswVersion == "74X":
print "\nApplying fix to JEC issues in 74X ...\n"

inputDB = "sqlite_file:" + os.environ['CMSSW_BASE'] + "/src/SusyAnaTools/SkimsAUX/data/PY8_RunIISpring15DR74_bx25_MC.db"
# inputDB = "sqlite_file:" + os.environ['CMSSW_BASE'] + "/src/SusyAnaTools/SkimsAUX/data/PY8_RunIISpring15DR74_bx25_MC.db"
# print inputDB

process.load("CondCore.DBCommon.CondDBCommon_cfi")
Expand All @@ -273,8 +273,8 @@
## note that the tag name is specific for the particular sqlite file
),
# from page 19 on slides https://indico.cern.ch/event/405326/contribution/2/attachments/811719/1112498/Pythia8.pdf
# connect = cms.string('sqlite:PY8_RunIISpring15DR74_bx25_MC.db')
connect = cms.string(inputDB)
connect = cms.string('sqlite:PY8_RunIISpring15DR74_bx25_MC.db')
# connect = cms.string(inputDB)
# uncomment above tag lines and this comment to use MC JEC
)
## add an es_prefer statement to resolve a possible conflict from simultaneous connection to a global tag
Expand Down

0 comments on commit f818af6

Please sign in to comment.