def miniAOD_customizeData(process): from PhysicsTools.PatAlgos.tools.coreTools import runOnData runOnData( process, outputModules = [] ) process.load("RecoCTPPS.TotemRPLocal.ctppsLocalTrackLiteProducer_cff") process.load("RecoCTPPS.ProtonReconstruction.ctppsProtons_cff") process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi") task = getPatAlgosToolsTask(process) from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 ctpps_2016.toModify(task, func=lambda t: t.add(process.ctppsLocalTrackLiteProducer)) ctpps_2016.toModify(task, func=lambda t: t.add(process.ctppsProtons))
RECOEventContent.outputCommands.extend(RecoBTagRECO.outputCommands) RECOEventContent.outputCommands.extend(RecoTauTagRECO.outputCommands) RECOEventContent.outputCommands.extend(RecoVertexRECO.outputCommands) RECOEventContent.outputCommands.extend(RecoEgammaRECO.outputCommands) RECOEventContent.outputCommands.extend(RecoPixelVertexingRECO.outputCommands) RECOEventContent.outputCommands.extend(RecoParticleFlowRECO.outputCommands) RECOEventContent.outputCommands.extend(BeamSpotRECO.outputCommands) RECOEventContent.outputCommands.extend(L1TriggerRECO.outputCommands) RECOEventContent.outputCommands.extend(HLTriggerRECO.outputCommands) RECOEventContent.outputCommands.extend(MEtoEDMConverterRECO.outputCommands) RECOEventContent.outputCommands.extend(EvtScalersRECO.outputCommands) RECOEventContent.outputCommands.extend(TcdsEventContent.outputCommands) RECOEventContent.outputCommands.extend(CommonEventContent.outputCommands) RECOEventContent.outputCommands.extend(EITopPAGEventContent.outputCommands) from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 ctpps_2016.toModify(RECOEventContent, outputCommands = RECOEventContent.outputCommands + RecoCTPPSRECO.outputCommands) RAWRECOEventContent.outputCommands.extend(RECOEventContent.outputCommands) RAWRECOEventContent.outputCommands.extend(cms.untracked.vstring( 'keep FEDRawDataCollection_rawDataCollector_*_*', 'keep FEDRawDataCollection_source_*_*' )) AODEventContent.outputCommands.extend(RecoLocalTrackerAOD.outputCommands) AODEventContent.outputCommands.extend(RecoLocalMuonAOD.outputCommands) AODEventContent.outputCommands.extend(RecoLocalCaloAOD.outputCommands) AODEventContent.outputCommands.extend(RecoEcalAOD.outputCommands) AODEventContent.outputCommands.extend(TrackingToolsAOD.outputCommands) AODEventContent.outputCommands.extend(RecoTrackerAOD.outputCommands) AODEventContent.outputCommands.extend(RecoJetsAOD.outputCommands) AODEventContent.outputCommands.extend(RecoMETAOD.outputCommands)
RECOEventContent.outputCommands.extend(RecoEgammaRECO.outputCommands) RECOEventContent.outputCommands.extend(RecoPixelVertexingRECO.outputCommands) RECOEventContent.outputCommands.extend(RecoParticleFlowRECO.outputCommands) RECOEventContent.outputCommands.extend(BeamSpotRECO.outputCommands) RECOEventContent.outputCommands.extend(L1TriggerRECO.outputCommands) RECOEventContent.outputCommands.extend(HLTriggerRECO.outputCommands) RECOEventContent.outputCommands.extend(MEtoEDMConverterRECO.outputCommands) RECOEventContent.outputCommands.extend(EvtScalersRECO.outputCommands) RECOEventContent.outputCommands.extend(OnlineMetaDataContent.outputCommands) RECOEventContent.outputCommands.extend(TcdsEventContent.outputCommands) RECOEventContent.outputCommands.extend(CommonEventContent.outputCommands) RECOEventContent.outputCommands.extend(EITopPAGEventContent.outputCommands) from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 ctpps_2016.toModify(RECOEventContent, outputCommands=RECOEventContent.outputCommands + RecoCTPPSRECO.outputCommands) RAWRECOEventContent.outputCommands.extend(RECOEventContent.outputCommands) RAWRECOEventContent.outputCommands.extend( cms.untracked.vstring('keep FEDRawDataCollection_rawDataCollector_*_*', 'keep FEDRawDataCollection_source_*_*')) AODEventContent.outputCommands.extend(RecoLocalTrackerAOD.outputCommands) AODEventContent.outputCommands.extend(RecoLocalMuonAOD.outputCommands) AODEventContent.outputCommands.extend(RecoLocalCaloAOD.outputCommands) AODEventContent.outputCommands.extend(RecoEcalAOD.outputCommands) AODEventContent.outputCommands.extend(TrackingToolsAOD.outputCommands) AODEventContent.outputCommands.extend(RecoTrackerAOD.outputCommands) AODEventContent.outputCommands.extend(RecoJetsAOD.outputCommands) AODEventContent.outputCommands.extend(RecoMETAOD.outputCommands)
import FWCore.ParameterSet.Config as cms from RecoPPS.Local.ctppsLocalTrackLiteDefaultProducer_cfi import ctppsLocalTrackLiteDefaultProducer ctppsLocalTrackLiteProducer = ctppsLocalTrackLiteDefaultProducer.clone() # enable the module for CTPPS era(s) from Configuration.Eras.Modifier_ctpps_cff import ctpps from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 from Configuration.Eras.Modifier_ctpps_2017_cff import ctpps_2017 ctpps.toModify(ctppsLocalTrackLiteProducer, includeStrips=False, includeDiamonds=True, includePixels=True) ctpps_2016.toModify(ctppsLocalTrackLiteProducer, includeStrips=True, includeDiamonds=False, includePixels=False) ctpps_2017.toModify(ctppsLocalTrackLiteProducer, includeStrips=True, includeDiamonds=True, includePixels=True) from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy run2_miniAOD_80XLegacy.toModify(ctppsLocalTrackLiteProducer, tagPixelTrack="")
ctppsProtons.association_cuts_45.ti_tr_max = 2.0 ctppsProtons.association_cuts_56.x_cut_apply = False ctppsProtons.association_cuts_56.y_cut_apply = False ctppsProtons.association_cuts_56.xi_cut_apply = True ctppsProtons.association_cuts_56.xi_cut_value = 0.015 ctppsProtons.association_cuts_56.th_y_cut_apply = False ctppsProtons.association_cuts_56.ti_tr_min = -1.5 ctppsProtons.association_cuts_56.ti_tr_max = 2.0 ctppsProtons.pixelDiscardBXShiftedTracks = True ctppsProtons.default_time = -999. ctpps_2016.toModify( ctppsProtons, applyDefaultSettings) # applied for all Run2 years (2016, 2017 and 2018) def apply2017Settings(ctppsProtons): ctppsProtons.association_cuts_45.x_cut_apply = False ctppsProtons.association_cuts_45.y_cut_apply = False ctppsProtons.association_cuts_45.xi_cut_apply = True ctppsProtons.association_cuts_45.xi_cut_value = 5. * 0.00121 ctppsProtons.association_cuts_45.xi_cut_mean = +6.0695e-5 ctppsProtons.association_cuts_45.th_y_cut_apply = False ctppsProtons.association_cuts_56.x_cut_apply = False
import FWCore.ParameterSet.Config as cms from RecoCTPPS.TotemRPLocal.ctppsLocalTrackLiteDefaultProducer_cfi import ctppsLocalTrackLiteDefaultProducer ctppsLocalTrackLiteProducer = ctppsLocalTrackLiteDefaultProducer.clone() # enable the module for CTPPS era(s) from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 ctpps_2016.toModify( ctppsLocalTrackLiteProducer, includeStrips = True, includeDiamonds = True, includePixels = True ) from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy run2_miniAOD_80XLegacy.toModify(ctppsLocalTrackLiteProducer, tagPixelTrack = "" )
import FWCore.ParameterSet.Config as cms from RecoCTPPS.TotemRPLocal.ctppsLocalTrackLiteDefaultProducer_cfi import ctppsLocalTrackLiteDefaultProducer ctppsLocalTrackLiteProducer = ctppsLocalTrackLiteDefaultProducer.clone() # enable the module for CTPPS era(s) from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016 ctpps_2016.toModify( ctppsLocalTrackLiteProducer, doNothing = cms.bool(False) ) from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy run2_miniAOD_80XLegacy.toModify(ctppsLocalTrackLiteProducer, tagPixelTrack = "" )