Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # HLT
0004 import HLTrigger.HLTfilters.hltHighLevel_cfi
0005 ALCARECOMuAlGlobalCosmicsHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0006     andOr = True, ## choose logical OR between Triggerbits
0007     eventSetupPathsKey = 'MuAlGlobalCosmicsInCollisions',
0008     throw = False # tolerate triggers not available
0009 )
0010 
0011 # DCS partitions
0012 # "EBp","EBm","EEp","EEm","HBHEa","HBHEb","HBHEc","HF","HO","RPC"
0013 # "DT0","DTp","DTm","CSCp","CSCm","CASTOR","TIBTID","TOB","TECp","TECm"
0014 # "BPIX","FPIX","ESp","ESm"
0015 import DPGAnalysis.Skims.skim_detstatus_cfi
0016 ALCARECOMuAlGlobalCosmicsDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone(
0017     DetectorType = cms.vstring('DT0','DTp','DTm',"CSCp","CSCm"),
0018     ApplyFilter  = cms.bool(True),
0019     AndOr        = cms.bool(False), # False = at least one detector from DetectorType map above is ON
0020     DebugOn      = cms.untracked.bool(False)
0021 )
0022 
0023 #________________________________Muon selection____________________________________
0024 # AlCaReco selected muons for track based muon alignment
0025 import Alignment.CommonAlignmentProducer.AlignmentMuonSelector_cfi
0026 ALCARECOMuAlGlobalCosmics = Alignment.CommonAlignmentProducer.AlignmentMuonSelector_cfi.AlignmentMuonSelector.clone(
0027     src       = cms.InputTag("muons"),
0028     filter    = cms.bool(True), # not strictly necessary, but provided for symmetry with MuAlStandAloneCosmics
0029     ptMin     = cms.double(10.0),
0030     etaMin    = cms.double(-100.0),
0031     etaMax    = cms.double(100.0),
0032 )
0033 
0034 # AlCaReco selected Combinatorial Track Finder tracks for track based muon alignment
0035 # (same cuts)
0036 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
0037 ALCARECOMuAlGlobalCosmicsCombinatorialTF = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone(
0038     src = 'ctfWithMaterialTracksP5',
0039     filter = cms.bool(True),
0040     ptMin = cms.double(8.0),
0041     etaMin = cms.double(-100.0),
0042     etaMax = cms.double(100.0),
0043     nHitMin = cms.double(7),
0044     applyNHighestPt = cms.bool(True), ## select only 3 highest pT tracks
0045     nHighestPt = cms.int32(3),
0046     )
0047 
0048 # AlCaReco selected Cosmic Track Finder tracks for track based muon alignment
0049 # (same cuts)
0050 ALCARECOMuAlGlobalCosmicsCosmicTF = ALCARECOMuAlGlobalCosmicsCombinatorialTF.clone(
0051     src = 'cosmictrackfinderP5'
0052 )
0053 
0054 # AlCaReco selected Regional Cosmic Tracking tracks for track based muon alignment
0055 # (same cuts)
0056 ALCARECOMuAlGlobalCosmicsRegionalTF = ALCARECOMuAlGlobalCosmicsCombinatorialTF.clone(
0057     src = 'regionalCosmicTracks'
0058 )
0059 
0060 #________________________________Sequences____________________________________  
0061 seqALCARECOMuAlGlobalCosmics = cms.Sequence(ALCARECOMuAlGlobalCosmicsHLT + ALCARECOMuAlGlobalCosmicsDCSFilter + ALCARECOMuAlGlobalCosmics)
0062 seqALCARECOMuAlGlobalCosmicsCombinatorialTF = cms.Sequence(ALCARECOMuAlGlobalCosmicsCombinatorialTF)
0063 seqALCARECOMuAlGlobalCosmicsCosmicTF        = cms.Sequence(ALCARECOMuAlGlobalCosmicsCosmicTF)
0064 seqALCARECOMuAlGlobalCosmicsRegionalTF      = cms.Sequence(ALCARECOMuAlGlobalCosmicsRegionalTF)