ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/IPHCalignment2/scripts/testTwoBodyDecayConstraints.py
(Generate patch)

Comparing UserCode/IPHCalignment2/scripts/testTwoBodyDecayConstraints.py (file contents):
Revision 1.3 by econte, Wed Nov 30 18:17:10 2011 UTC vs.
Revision 1.7 by econte, Thu Dec 8 10:43:30 2011 UTC

# Line 5 | Line 5 | import FWCore.ParameterSet.Config as cms
5   # 2 -> IDEAL
6   # 3 -> SAGITTA
7   # 4 -> TWIST
8 < IPHC_GEOM=2
8 > IPHC_GEOM=1
9  
10   process = cms.Process("Demo")
11
11   process.load("FWCore.MessageService.MessageLogger_cfi")
12   process.MessageLogger.cerr.FwkReport.reportEvery = 50
13  
14   #name of the output file containing the tree
15 < process.TFileService = cms.Service("TFileService", fileName = cms.string("analyzerTree.root") )
15 > if IPHC_GEOM==1:
16 >    IPHC_FILENAME="startup.root"
17 > elif IPHC_GEOM==2:
18 >    IPHC_FILENAME="ideal.root"
19 > elif IPHC_GEOM==3:
20 >    IPHC_FILENAME="sagitta.root"
21 > elif IPHC_GEOM==4:
22 >    IPHC_FILENAME="twist.root"
23 > else:
24 >    IPHC_FILENAME="unknown.root"
25 > process.TFileService = cms.Service("TFileService", fileName = cms.string(IPHC_FILENAME))
26  
27   process.load( "RecoTracker.Configuration.RecoTracker_cff" )
28   process.load( "Configuration.StandardSequences.Services_cff" )
# Line 134 | Line 143 | process.treeWithoutConstraints = cms.EDA
143      labelTrajToTrack = cms.InputTag('TrackRefitterWithoutConstraint'),
144      siStripClusters  = cms.InputTag('TrackRefitterWithoutConstraint'),
145      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
146 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
147      isLaserRun       = cms.bool(False),
148      isMC             = cms.bool(True),
149 <    algoName         = cms.string("NoAlgo")
149 >    algoName         = cms.string("NoAlgo"),
150 >    trkVertexconstrcoll  = cms.InputTag(''),
151 >    trkMomconstrcoll     = cms.InputTag(''),
152 >    trkFullconstrcoll    = cms.InputTag('')
153   )
154  
155   # ------------------------------------------------------------------------------
# Line 167 | Line 180 | process.treeTBDFullConstraints = cms.EDA
180      labelTrajToTrack = cms.InputTag('TrackRefitterTBDFullConstraint'),
181      siStripClusters  = cms.InputTag('TrackRefitterTBDFullConstraint'),
182      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
183 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
184      isLaserRun       = cms.bool(False),
185      isMC             = cms.bool(True),
186 <    algoName         = cms.string("FullTBD")
186 >    algoName         = cms.string("FullTBD"),
187 >    trkVertexconstrcoll  = cms.InputTag('TwoBodyDecayConstraint'),
188 >    trkMomconstrcoll     = cms.InputTag('TwoBodyDecayConstraint'),
189 >    trkFullconstrcoll    = cms.InputTag('TwoBodyDecayConstraint')
190   )
191  
192   # ------------------------------------------------------------------------------
# Line 199 | Line 216 | process.treeTBDMomConstraints = cms.EDAn
216      labelTrajToTrack = cms.InputTag('TrackRefitterTBDMomConstraint'),
217      siStripClusters  = cms.InputTag('TrackRefitterTBDMomConstraint'),
218      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
219 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
220      isLaserRun       = cms.bool(False),
221      isMC             = cms.bool(True),
222 <    algoName         = cms.string("MomTBD")
222 >    algoName         = cms.string("MomTBD"),
223 >    trkVertexconstrcoll  = cms.InputTag('TwoBodyDecayMomConstraint'),
224 >    trkMomconstrcoll     = cms.InputTag('TwoBodyDecayMomConstraint'),
225 >    trkFullconstrcoll    = cms.InputTag('TwoBodyDecayMomConstraint')
226   )
227  
228   # ------------------------------------------------------------------------------
# Line 231 | Line 252 | process.treeKinFitConstraints = cms.EDAn
252      labelTrajToTrack = cms.InputTag('TrackRefitterKinFit'),
253      siStripClusters  = cms.InputTag('TrackRefitterKinFit'),
254      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
255 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
256      isLaserRun       = cms.bool(False),
257      isMC             = cms.bool(True),
258 <    algoName         = cms.string("KinFit")
258 >    algoName         = cms.string("KinFit"),
259 >    trkVertexconstrcoll  = cms.InputTag(''),
260 >    trkMomconstrcoll     = cms.InputTag(''),
261 >    trkFullconstrcoll    = cms.InputTag('')
262   )
263  
264   # ------------------------------------------------------------------------------
# Line 263 | Line 288 | process.treeTBDVertexConstraints = cms.E
288      labelTrajToTrack = cms.InputTag('TrackRefitterTBDVertexConstraint'),
289      siStripClusters  = cms.InputTag('TrackRefitterTBDVertexConstraint'),
290      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
291 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
292      isLaserRun       = cms.bool(False),
293      isMC             = cms.bool(True),
294 <    algoName         = cms.string("VtxTBD")
294 >    algoName         = cms.string("VtxTBD"),
295 >    trkVertexconstrcoll  = cms.InputTag('TwoBodyDecayVertexConstraint'),
296 >    trkMomconstrcoll     = cms.InputTag('TwoBodyDecayVertexConstraint'),
297 >    trkFullconstrcoll    = cms.InputTag('TwoBodyDecayVertexConstraint')
298   )
299  
300  
# Line 288 | Line 317 | process.p = cms.Path( process.AlignmentT
317                        process.treeKinFitConstraints*
318                        process.TwoBodyDecayVertexConstraint *
319                        process.TrackRefitterTBDVertexConstraint *
320 <                      process.treeTBDVertexConstraints)
320 >                      process.treeTBDVertexConstraints
321 >                      )
322  
323   process.outpath = cms.EndPath(process.out)
324 +
325 +
326 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines