Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:15

0001 # AlCaReco for track based alignment using min. bias events
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 import HLTrigger.HLTfilters.hltHighLevel_cfi
0005 #Note the MinBias selection should contain as many tracks as possible but no overlaps. So the HLT selection selects any event that is not selected in another TkAl* selector.
0006 ALCARECOTkAlMinBiasNOTHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0007     andOr = True, ## choose logical OR between Triggerbits
0008     eventSetupPathsKey = 'TkAlMinBiasNOT',
0009     throw = False # tolerate triggers stated above, but not available
0010     )
0011 ALCARECOTkAlMinBiasHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
0012     andOr = True, ## choose logical OR between Triggerbits
0013     eventSetupPathsKey = 'TkAlMinBias',
0014     throw = False # tolerate triggers stated above, but not available
0015     )
0016 
0017 # DCS partitions
0018 # "EBp","EBm","EEp","EEm","HBHEa","HBHEb","HBHEc","HF","HO","RPC"
0019 # "DT0","DTp","DTm","CSCp","CSCm","CASTOR","TIBTID","TOB","TECp","TECm"
0020 # "BPIX","FPIX","ESp","ESm"
0021 import DPGAnalysis.Skims.skim_detstatus_cfi
0022 ALCARECOTkAlMinBiasDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone(
0023     DetectorType = cms.vstring('TIBTID','TOB','TECp','TECm','BPIX','FPIX'),
0024     ApplyFilter  = cms.bool(True),
0025     AndOr        = cms.bool(True),
0026     DebugOn      = cms.untracked.bool(False)
0027 )
0028 
0029 import Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi
0030 ALCARECOTkAlMinBias = Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi.AlignmentTrackSelector.clone()
0031 ALCARECOTkAlMinBias.filter = True ##do not store empty events   
0032 
0033 ALCARECOTkAlMinBias.applyBasicCuts = True
0034 ALCARECOTkAlMinBias.ptMin = 0.65 ##GeV
0035 ALCARECOTkAlMinBias.pMin = 1.5 ##GeV
0036 
0037 
0038 ALCARECOTkAlMinBias.etaMin = -3.5
0039 ALCARECOTkAlMinBias.etaMax = 3.5
0040 ALCARECOTkAlMinBias.nHitMin = 7 ## at least 7 hits required
0041 ALCARECOTkAlMinBias.GlobalSelector.applyIsolationtest = False
0042 ALCARECOTkAlMinBias.GlobalSelector.applyGlobalMuonFilter = False
0043 ALCARECOTkAlMinBias.TwoBodyDecaySelector.applyMassrangeFilter = False
0044 ALCARECOTkAlMinBias.TwoBodyDecaySelector.applyChargeFilter = False
0045 ALCARECOTkAlMinBias.TwoBodyDecaySelector.applyAcoplanarityFilter = False
0046 
0047 seqALCARECOTkAlMinBias = cms.Sequence(ALCARECOTkAlMinBiasHLT*~ALCARECOTkAlMinBiasNOTHLT+ALCARECOTkAlMinBiasDCSFilter+ALCARECOTkAlMinBias)
0048 
0049 ## customizations for the pp_on_AA eras
0050 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0051 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0052 (pp_on_XeXe_2017 | pp_on_AA).toModify(ALCARECOTkAlMinBias,
0053                                     trackQualities = cms.vstring("highPurity")
0054 )
0055 
0056 pp_on_XeXe_2017.toModify(ALCARECOTkAlMinBiasHLT,
0057                          eventSetupPathsKey='TkAlMinBiasHI')
0058 
0059 import HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi
0060 ALCARECOTkAlMinBiasTriggerResultsHI = HLTrigger.HLTfilters.triggerResultsFilterFromDB_cfi.triggerResultsFilterFromDB.clone(
0061     eventSetupPathsKey = 'TkAlMinBiasHI',
0062     usePathStatus = False,
0063     hltResults = 'TriggerResults::HLT',
0064     l1tResults = '', # leaving empty (not interested in L1T results)
0065     throw = False # tolerate triggers stated above, but not available
0066 )
0067 
0068 seqALCARECOTkAlMinBiasHI = cms.Sequence(ALCARECOTkAlMinBiasTriggerResultsHI*~ALCARECOTkAlMinBiasNOTHLT+ALCARECOTkAlMinBiasDCSFilter+ALCARECOTkAlMinBias)
0069 pp_on_AA.toReplaceWith(seqALCARECOTkAlMinBias,seqALCARECOTkAlMinBiasHI)
0070 
0071 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
0072 phase2_tracker.toModify(ALCARECOTkAlMinBias, etaMin = -4, etaMax = 4)