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.2 by jandrea, Wed Nov 30 17:40:02 2011 UTC vs.
Revision 1.3 by econte, Wed Nov 30 18:17:10 2011 UTC

# Line 1 | Line 1
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")
# Line 15 | Line 22 | process.load( "Configuration.StandardSeq
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(
# Line 46 | Line 45 | process.out = cms.OutputModule( "PoolOut
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   # ------------------------------------------------------------------------------

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines