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.6 by cgoetzma, Wed Dec 7 18:44:38 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=4
8 > IPHC_GEOM=1
9  
10   process = cms.Process("Demo")
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("twist.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" )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines