Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:41

0001 #
0002 # Last update: new version for python
0003 #
0004 #
0005 import FWCore.ParameterSet.Config as cms
0006 process = cms.Process("T")
0007 
0008 process.load("Configuration.Geometry.GeometryIdeal_cff")
0009 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(-1)
0014 )
0015        
0016 process.MessageLogger = cms.Service("MessageLogger",
0017     cerr = cms.untracked.PSet(
0018         enable = cms.untracked.bool(False)
0019     ),
0020     cout = cms.untracked.PSet(
0021         enable = cms.untracked.bool(True),
0022         threshold = cms.untracked.string('ERROR')
0023     )
0024 )
0025 
0026 import HLTrigger.HLTfilters.hltHighLevel_cfi as hlt
0027 # accept if 'path_1' succeeds
0028 process.hltfilter = hlt.hltHighLevel.clone(
0029 # Min-Bias
0030 #   HLTPaths = ['HLT_Physics_v*'],
0031 #    HLTPaths = ['HLT_Random_v*'],
0032     HLTPaths = ['HLT_ZeroBias*'],
0033 #     HLTPaths = ['HLT_L1Tech54_ZeroBias*'],
0034 #     HLTPaths = ['HLT_L1Tech53_MB*'],
0035 # Commissioning:
0036 #    HLTPaths = ['HLT_L1_Interbunch_BSC_v*'],
0037 #    HLTPaths = ['HLT_L1_PreCollisions_v*'],
0038 #    HLTPaths = ['HLT_BeamGas_BSC_v*'],
0039 #    HLTPaths = ['HLT_BeamGas_HF_v*'],
0040 #    HLTPaths = ['p*'],
0041 #    HLTPaths = ['path_?'],
0042     andOr = True,  # False = and, True=or
0043     throw = False
0044     )
0045 
0046 
0047 # to select PhysicsBit
0048 process.load('HLTrigger.special.hltPhysicsDeclared_cfi')
0049 process.hltPhysicsDeclared.L1GtReadoutRecordTag = 'gtDigis'
0050 
0051 
0052 process.source = cms.Source("PoolSource",
0053  fileNames =  cms.untracked.vstring(
0054     'file:tracks.root'
0055 #    'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100/tracks/tracks1.root'
0056 #    'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/tracks/tracks2_mc71.root'
0057 #    'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/tracks/tracks2_postls171.root'
0058     )
0059 )
0060 
0061 
0062 process.TFileService = cms.Service("TFileService",
0063     fileName = cms.string('histo_tracks.root')
0064 )
0065 
0066 
0067 # Choose the global tag here:
0068 # DATA 2014
0069 process.GlobalTag.globaltag = 'PRE_R_71_V3::All'
0070 # MC 2014
0071 #process.GlobalTag.globaltag = 'PRE_STA71_V4::All'
0072 # 2013 MC
0073 #process.GlobalTag.globaltag = "MC_70_V1::All"
0074 # 2012
0075 #process.GlobalTag.globaltag = "GR_P_V40::All"
0076 #process.GlobalTag.globaltag = "GR_P_V28::All" # A&B
0077 # 2011
0078 # process.GlobalTag.globaltag = "GR_P_V20::All"
0079 # process.GlobalTag.globaltag = "GR_R_311_V2::All"
0080 # process.GlobalTag.globaltag = "GR_R_310_V2::All"
0081 # for 2010
0082 # process.GlobalTag.globaltag = 'GR10_P_V5::All'
0083 # process.GlobalTag.globaltag = 'GR10_P_V4::All'
0084 # OK for 2009 LHC data
0085 # process.GlobalTag.globaltag = 'CRAFT09_R_V4::All'
0086 
0087 process.d = cms.EDAnalyzer("TestWithTracks",
0088     Verbosity = cms.untracked.bool(True),
0089     src = cms.InputTag("generalTracks"),
0090 #     PrimaryVertexLabel = cms.untracked.InputTag("offlinePrimaryVertices"),                             
0091 #     trajectoryInput = cms.string("TrackRefitterP5")
0092 #     trajectoryInput = cms.string('cosmictrackfinderP5')
0093 )
0094 
0095 #process.p = cms.Path(process.hltPhysicsDeclared*process.hltfilter*process.d)
0096 # process.p = cms.Path(process.hltPhysicsDeclared*process.d)
0097 process.p = cms.Path(process.d)
0098 
0099 
0100