1 |
|
import FWCore.ParameterSet.Config as cms |
2 |
|
|
3 |
+ |
# IPHC variable for specifying geometry alignment scenario : |
4 |
+ |
# 1 -> STARTUP |
5 |
+ |
# 2 -> IDEAL |
6 |
+ |
# 3 -> SAGITTA |
7 |
+ |
# 4 -> TWIST |
8 |
+ |
IPHC_GEOM=2 |
9 |
+ |
|
10 |
|
process = cms.Process("Demo") |
11 |
|
|
12 |
|
process.load("FWCore.MessageService.MessageLogger_cfi") |
22 |
|
process.load( "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff" ) |
23 |
|
process.GlobalTag.globaltag = "START44_V7::All" |
24 |
|
|
18 |
– |
# process.GlobalTag.toGet = cms.VPSet( |
19 |
– |
# cms.PSet( record = cms.string( "TrackerAlignmentRcd" ), |
20 |
– |
# tag = cms.string( "TrackerIdealGeometry210_mc" ), |
21 |
– |
# connect = cms.untracked.string( "frontier://FrontierProd/CMS_COND_31X_FROM21X" ) ), |
22 |
– |
# cms.PSet( record = cms.string( "TrackerAlignmentErrorRcd" ), |
23 |
– |
# tag = cms.string( "TrackerIdealGeometryErrors210_mc" ), |
24 |
– |
# connect = cms.untracked.string( "frontier://FrontierProd/CMS_COND_31X_FROM21X" ) ) |
25 |
– |
# ) |
25 |
|
|
26 |
|
process.source = cms.Source( "PoolSource", |
27 |
|
fileNames = cms.untracked.vstring( |
45 |
|
# ------------------------------------------------------------------------------ |
46 |
|
# 0) Change geometry |
47 |
|
# ------------------------------------------------------------------------------ |
48 |
< |
#from CondCore.DBCommon.CondDBSetup_cfi import * |
49 |
< |
#process.trackerAlignment = cms.ESSource("PoolDBESSource", |
50 |
< |
# CondDBSetup, |
51 |
< |
# timetype = cms.string('runnumber'), |
52 |
< |
# toGet = cms.VPSet( cms.PSet( |
53 |
< |
# record = cms.string('TrackerAlignmentRcd'), |
54 |
< |
# tag = cms.string('Alignments') )), |
55 |
< |
# connect = |
56 |
< |
#cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/PayLoads/SystematicMisalignmentsMoriond/mcScenarioMoriond/misalignment_on_ideal39X/IDEALplusDelta_ichepVrealignedTwist.db') |
57 |
< |
#cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/PayLoads/SystematicMisalignmentsMoriond/mcScenarioMoriond/misalignment_on_ideal39X/IDEALplusDelta_ichepVrealignedSagitta.db') |
58 |
< |
|
59 |
< |
# ) |
48 |
> |
if IPHC_GEOM==1: |
49 |
> |
print "\x1b[31mIPHC config : STARTUP geometry !!!\x1b[0m" |
50 |
> |
pass |
51 |
> |
elif IPHC_GEOM==2: |
52 |
> |
print "\x1b[31mIPHC config : IDEAL geometry !!!\x1b[0m" |
53 |
> |
process.GlobalTag.toGet = cms.VPSet( |
54 |
> |
cms.PSet( record = cms.string( "TrackerAlignmentRcd" ), |
55 |
> |
tag = cms.string( "TrackerIdealGeometry210_mc" ), |
56 |
> |
connect = cms.untracked.string( "frontier://FrontierProd/CMS_COND_31X_FROM21X" ) ), |
57 |
> |
cms.PSet( record = cms.string( "TrackerAlignmentErrorRcd" ), |
58 |
> |
tag = cms.string( "TrackerIdealGeometryErrors210_mc" ), |
59 |
> |
connect = cms.untracked.string( "frontier://FrontierProd/CMS_COND_31X_FROM21X" ) ) |
60 |
> |
) |
61 |
> |
elif IPHC_GEOM==3 or IPHC_GEOM==4: |
62 |
> |
if IPHC_GEOM==4: |
63 |
> |
print "\x1b[31mIPHC config : TWIST geometry !!!\x1b[0m" |
64 |
> |
IPHC_STRING = 'sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/PayLoads/SystematicMisalignmentsMoriond/mcScenarioMoriond/misalignment_on_ideal39X/IDEALplusDelta_ichepVrealignedTwist.db' |
65 |
> |
elif IPHC_GEOM==3: |
66 |
> |
print "\x1b[31mIPHC config : SAGITTA geometry !!!\x1b[0m" |
67 |
> |
IPHC_STRING = 'sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/PayLoads/SystematicMisalignmentsMoriond/mcScenarioMoriond/misalignment_on_ideal39X/IDEALplusDelta_ichepVrealignedSagitta.db' |
68 |
> |
|
69 |
> |
|
70 |
> |
from CondCore.DBCommon.CondDBSetup_cfi import * |
71 |
> |
process.trackerAlignment = cms.ESSource("PoolDBESSource", |
72 |
> |
CondDBSetup, |
73 |
> |
timetype = cms.string('runnumber'), |
74 |
> |
toGet = cms.VPSet( cms.PSet( |
75 |
> |
record = cms.string('TrackerAlignmentRcd'), |
76 |
> |
tag = cms.string('Alignments') )), |
77 |
> |
connect = cms.string(IPHC_STRING) |
78 |
> |
) |
79 |
|
|
80 |
< |
#process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","trackerAlignment") |
80 |
> |
process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","trackerAlignment") |
81 |
> |
|
82 |
> |
else: |
83 |
> |
print "\x1b[31mIPHC config : UNKNOWN geometry !!!\x1b[0m" |
84 |
> |
exit |
85 |
> |
|
86 |
|
|
87 |
|
|
88 |
|
# ------------------------------------------------------------------------------ |
136 |
|
primaryVertexColl= cms.InputTag('offlinePrimaryVertices'), |
137 |
|
isLaserRun = cms.bool(False), |
138 |
|
isMC = cms.bool(True), |
139 |
< |
algoName = cms.string("NoAlgo") |
139 |
> |
algoName = cms.string("NoAlgo"), |
140 |
> |
trkVertexconstrcoll = cms.InputTag(''), |
141 |
> |
trkMomconstrcoll = cms.InputTag(''), |
142 |
> |
trkFullconstrcoll = cms.InputTag('') |
143 |
|
) |
144 |
|
|
145 |
|
# ------------------------------------------------------------------------------ |
172 |
|
primaryVertexColl= cms.InputTag('offlinePrimaryVertices'), |
173 |
|
isLaserRun = cms.bool(False), |
174 |
|
isMC = cms.bool(True), |
175 |
< |
algoName = cms.string("FullTBD") |
175 |
> |
algoName = cms.string("FullTBD"), |
176 |
> |
trkVertexconstrcoll = cms.InputTag('TwoBodyDecayConstraint'), |
177 |
> |
trkMomconstrcoll = cms.InputTag('TwoBodyDecayConstraint'), |
178 |
> |
trkFullconstrcoll = cms.InputTag('TwoBodyDecayConstraint') |
179 |
|
) |
180 |
|
|
181 |
|
# ------------------------------------------------------------------------------ |
207 |
|
primaryVertexColl= cms.InputTag('offlinePrimaryVertices'), |
208 |
|
isLaserRun = cms.bool(False), |
209 |
|
isMC = cms.bool(True), |
210 |
< |
algoName = cms.string("MomTBD") |
210 |
> |
algoName = cms.string("MomTBD"), |
211 |
> |
trkVertexconstrcoll = cms.InputTag('TwoBodyDecayMomConstraint'), |
212 |
> |
trkMomconstrcoll = cms.InputTag('TwoBodyDecayMomConstraint'), |
213 |
> |
trkFullconstrcoll = cms.InputTag('TwoBodyDecayMomConstraint') |
214 |
|
) |
215 |
|
|
216 |
|
# ------------------------------------------------------------------------------ |
242 |
|
primaryVertexColl= cms.InputTag('offlinePrimaryVertices'), |
243 |
|
isLaserRun = cms.bool(False), |
244 |
|
isMC = cms.bool(True), |
245 |
< |
algoName = cms.string("KinFit") |
245 |
> |
algoName = cms.string("KinFit"), |
246 |
> |
trkVertexconstrcoll = cms.InputTag(''), |
247 |
> |
trkMomconstrcoll = cms.InputTag(''), |
248 |
> |
trkFullconstrcoll = cms.InputTag('') |
249 |
|
) |
250 |
|
|
251 |
|
# ------------------------------------------------------------------------------ |
277 |
|
primaryVertexColl= cms.InputTag('offlinePrimaryVertices'), |
278 |
|
isLaserRun = cms.bool(False), |
279 |
|
isMC = cms.bool(True), |
280 |
< |
algoName = cms.string("VtxTBD") |
280 |
> |
algoName = cms.string("VtxTBD"), |
281 |
> |
trkVertexconstrcoll = cms.InputTag('TwoBodyDecayVertexConstraint'), |
282 |
> |
trkMomconstrcoll = cms.InputTag('TwoBodyDecayVertexConstraint'), |
283 |
> |
trkFullconstrcoll = cms.InputTag('TwoBodyDecayVertexConstraint') |
284 |
|
) |
285 |
|
|
286 |
|
|
306 |
|
process.treeTBDVertexConstraints) |
307 |
|
|
308 |
|
process.outpath = cms.EndPath(process.out) |
309 |
+ |
|
310 |
+ |
|
311 |
+ |
|