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.5 by cgoetzma, Wed Dec 7 18:33:35 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  
# Line 13 | Line 13 | process.load("FWCore.MessageService.Mess
13   process.MessageLogger.cerr.FwkReport.reportEvery = 50
14  
15   #name of the output file containing the tree
16 < process.TFileService = cms.Service("TFileService", fileName = cms.string("analyzerTree.root") )
16 > process.TFileService = cms.Service("TFileService", fileName = cms.string("startup.root") )
17  
18   process.load( "RecoTracker.Configuration.RecoTracker_cff" )
19   process.load( "Configuration.StandardSequences.Services_cff" )
# Line 134 | Line 134 | process.treeWithoutConstraints = cms.EDA
134      labelTrajToTrack = cms.InputTag('TrackRefitterWithoutConstraint'),
135      siStripClusters  = cms.InputTag('TrackRefitterWithoutConstraint'),
136      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
137 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
138      isLaserRun       = cms.bool(False),
139      isMC             = cms.bool(True),
140 <    algoName         = cms.string("NoAlgo")
140 >    algoName         = cms.string("NoAlgo"),
141 >    trkVertexconstrcoll  = cms.InputTag(''),
142 >    trkMomconstrcoll     = cms.InputTag(''),
143 >    trkFullconstrcoll    = cms.InputTag('')
144   )
145  
146   # ------------------------------------------------------------------------------
# Line 167 | Line 171 | process.treeTBDFullConstraints = cms.EDA
171      labelTrajToTrack = cms.InputTag('TrackRefitterTBDFullConstraint'),
172      siStripClusters  = cms.InputTag('TrackRefitterTBDFullConstraint'),
173      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
174 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
175      isLaserRun       = cms.bool(False),
176      isMC             = cms.bool(True),
177 <    algoName         = cms.string("FullTBD")
177 >    algoName         = cms.string("FullTBD"),
178 >    trkVertexconstrcoll  = cms.InputTag('TwoBodyDecayConstraint'),
179 >    trkMomconstrcoll     = cms.InputTag('TwoBodyDecayConstraint'),
180 >    trkFullconstrcoll    = cms.InputTag('TwoBodyDecayConstraint')
181   )
182  
183   # ------------------------------------------------------------------------------
# Line 199 | Line 207 | process.treeTBDMomConstraints = cms.EDAn
207      labelTrajToTrack = cms.InputTag('TrackRefitterTBDMomConstraint'),
208      siStripClusters  = cms.InputTag('TrackRefitterTBDMomConstraint'),
209      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
210 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
211      isLaserRun       = cms.bool(False),
212      isMC             = cms.bool(True),
213 <    algoName         = cms.string("MomTBD")
213 >    algoName         = cms.string("MomTBD"),
214 >    trkVertexconstrcoll  = cms.InputTag('TwoBodyDecayMomConstraint'),
215 >    trkMomconstrcoll     = cms.InputTag('TwoBodyDecayMomConstraint'),
216 >    trkFullconstrcoll    = cms.InputTag('TwoBodyDecayMomConstraint')
217   )
218  
219   # ------------------------------------------------------------------------------
# Line 231 | Line 243 | process.treeKinFitConstraints = cms.EDAn
243      labelTrajToTrack = cms.InputTag('TrackRefitterKinFit'),
244      siStripClusters  = cms.InputTag('TrackRefitterKinFit'),
245      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
246 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
247      isLaserRun       = cms.bool(False),
248      isMC             = cms.bool(True),
249 <    algoName         = cms.string("KinFit")
249 >    algoName         = cms.string("KinFit"),
250 >    trkVertexconstrcoll  = cms.InputTag(''),
251 >    trkMomconstrcoll     = cms.InputTag(''),
252 >    trkFullconstrcoll    = cms.InputTag('')
253   )
254  
255   # ------------------------------------------------------------------------------
# Line 263 | Line 279 | process.treeTBDVertexConstraints = cms.E
279      labelTrajToTrack = cms.InputTag('TrackRefitterTBDVertexConstraint'),
280      siStripClusters  = cms.InputTag('TrackRefitterTBDVertexConstraint'),
281      primaryVertexColl= cms.InputTag('offlinePrimaryVertices'),
282 +    offlineBeamSpot  = cms.InputTag('offlineBeamSpot'),
283      isLaserRun       = cms.bool(False),
284      isMC             = cms.bool(True),
285 <    algoName         = cms.string("VtxTBD")
285 >    algoName         = cms.string("VtxTBD"),
286 >    trkVertexconstrcoll  = cms.InputTag('TwoBodyDecayVertexConstraint'),
287 >    trkMomconstrcoll     = cms.InputTag('TwoBodyDecayVertexConstraint'),
288 >    trkFullconstrcoll    = cms.InputTag('TwoBodyDecayVertexConstraint')
289   )
290  
291  
# Line 288 | Line 308 | process.p = cms.Path( process.AlignmentT
308                        process.treeKinFitConstraints*
309                        process.TwoBodyDecayVertexConstraint *
310                        process.TrackRefitterTBDVertexConstraint *
311 <                      process.treeTBDVertexConstraints)
311 >                      process.treeTBDVertexConstraints
312 >                      )
313  
314   process.outpath = cms.EndPath(process.out)
315 +
316 +
317 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines