File tree Expand file tree Collapse file tree 8 files changed +79
-4
lines changed
Alignment/CommonAlignmentProducer/python Expand file tree Collapse file tree 8 files changed +79
-4
lines changed Original file line number Diff line number Diff line change 2323 'keep *_offlinePrimaryVertices_*_*' )
2424)
2525
26+ # add branches for MC truth evaluation
27+ from GeneratorInterface .Configuration .GeneratorInterface_EventContent_cff import GeneratorInterfaceAOD
28+ from SimGeneral .Configuration .SimGeneral_EventContent_cff import SimGeneralAOD
29+
30+ OutALCARECOTkAlDiMuonAndVertex_noDrop .outputCommands .extend (GeneratorInterfaceAOD .outputCommands )
31+ _modifiedCommandsForGEN = OutALCARECOTkAlDiMuonAndVertex_noDrop .outputCommands .copy ()
32+ _modifiedCommandsForGEN .remove ('keep *_genParticles_*_*' ) # full genParticles list is too heavy
33+ _modifiedCommandsForGEN .append ('keep *_TkAlDiMuonAndVertexGenMuonSelector_*_*' ) # Keep only the filtered gen muons
34+ OutALCARECOTkAlDiMuonAndVertex_noDrop .outputCommands = _modifiedCommandsForGEN
35+
36+ OutALCARECOTkAlDiMuonAndVertex_noDrop .outputCommands .extend (SimGeneralAOD .outputCommands )
37+
2638# in Phase2, remove the SiStrip clusters and keep the OT ones instead
2739_phase2_common_removedCommands = OutALCARECOTkAlDiMuonAndVertex_noDrop .outputCommands .copy ()
2840_phase2_common_removedCommands .remove ('keep SiStripClusteredmNewDetSetVector_ALCARECOTkAlDiMuon_*_*' )
Original file line number Diff line number Diff line change 1717import Alignment .CommonAlignmentProducer .AlignmentTracksFromVertexSelector_cfi as TracksFromVertex
1818ALCARECOTkAlDiMuonVertexTracks = TracksFromVertex .AlignmentTracksFromVertexSelector .clone ()
1919
20+ ##################################################################
21+ # for the GEN level information
22+ ##################################################################
23+ TkAlDiMuonAndVertexGenMuonSelector = cms .EDFilter ("GenParticleSelector" ,
24+ src = cms .InputTag ("genParticles" ),
25+ cut = cms .string ("abs(pdgId) == 13" ), # Select only muons
26+ filter = cms .bool (False ))
27+
2028##################################################################
2129# The sequence
2230#################################################################
2533 ALCARECOTkAlDiMuonGoodMuons +
2634 ALCARECOTkAlDiMuonRelCombIsoMuons +
2735 ALCARECOTkAlDiMuon +
28- ALCARECOTkAlDiMuonVertexTracks )
36+ ALCARECOTkAlDiMuonVertexTracks +
37+ TkAlDiMuonAndVertexGenMuonSelector )
2938
3039## customizations for the pp_on_AA eras
3140from Configuration .Eras .Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
Original file line number Diff line number Diff line change 1818 'keep *_offlinePrimaryVertices_*_*' )
1919)
2020
21+ # add branches for MC truth evaluation
22+ from GeneratorInterface .Configuration .GeneratorInterface_EventContent_cff import GeneratorInterfaceAOD
23+ from SimGeneral .Configuration .SimGeneral_EventContent_cff import SimGeneralAOD
24+
25+ OutALCARECOTkAlJpsiMuMu_noDrop .outputCommands .extend (GeneratorInterfaceAOD .outputCommands )
26+ _modifiedCommandsForGEN = OutALCARECOTkAlJpsiMuMu_noDrop .outputCommands .copy ()
27+ _modifiedCommandsForGEN .remove ('keep *_genParticles_*_*' ) # full genParticles list is too heavy
28+ _modifiedCommandsForGEN .append ('keep *_TkAlJpsiMuMuGenMuonSelector_*_*' ) # Keep only the filtered gen muons
29+ OutALCARECOTkAlJpsiMuMu_noDrop .outputCommands = _modifiedCommandsForGEN
30+
31+ OutALCARECOTkAlJpsiMuMu_noDrop .outputCommands .extend (SimGeneralAOD .outputCommands )
32+
2133# in Run3, SCAL digis replaced by onlineMetaDataDigis
2234import copy
2335_run3_common_removedCommands = OutALCARECOTkAlJpsiMuMu_noDrop .outputCommands .copy ()
Original file line number Diff line number Diff line change 4949ALCARECOTkAlJpsiMuMu .TwoBodyDecaySelector .acoplanarDistance = 1 ##radian
5050ALCARECOTkAlJpsiMuMu .TwoBodyDecaySelector .numberOfCandidates = 1
5151
52- seqALCARECOTkAlJpsiMuMu = cms .Sequence (ALCARECOTkAlJpsiMuMuHLT + ALCARECOTkAlJpsiMuMuDCSFilter + ALCARECOTkAlJpsiMuMuGoodMuons + ALCARECOTkAlJpsiMuMu )
52+ ## for the GEN level information
53+ TkAlJpsiMuMuGenMuonSelector = cms .EDFilter ("GenParticleSelector" ,
54+ src = cms .InputTag ("genParticles" ),
55+ cut = cms .string ("abs(pdgId) == 13" ), # Select only muons
56+ filter = cms .bool (False ))
57+
58+ seqALCARECOTkAlJpsiMuMu = cms .Sequence (ALCARECOTkAlJpsiMuMuHLT + ALCARECOTkAlJpsiMuMuDCSFilter + ALCARECOTkAlJpsiMuMuGoodMuons + ALCARECOTkAlJpsiMuMu + TkAlJpsiMuMuGenMuonSelector )
5359
5460## customizations for the pp_on_AA eras
5561from Configuration .Eras .Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
Original file line number Diff line number Diff line change 1818 'keep *_offlinePrimaryVertices_*_*' )
1919)
2020
21+ # add branches for MC truth evaluation
22+ from GeneratorInterface .Configuration .GeneratorInterface_EventContent_cff import GeneratorInterfaceAOD
23+ from SimGeneral .Configuration .SimGeneral_EventContent_cff import SimGeneralAOD
24+
25+ OutALCARECOTkAlUpsilonMuMu_noDrop .outputCommands .extend (GeneratorInterfaceAOD .outputCommands )
26+ _modifiedCommandsForGEN = OutALCARECOTkAlUpsilonMuMu_noDrop .outputCommands .copy ()
27+ _modifiedCommandsForGEN .remove ('keep *_genParticles_*_*' ) # full genParticles list is too heavy
28+ _modifiedCommandsForGEN .append ('keep *_TkAlUpsilonMuMuGenMuonSelector_*_*' ) # Keep only the filtered gen muons
29+ OutALCARECOTkAlUpsilonMuMu_noDrop .outputCommands = _modifiedCommandsForGEN
30+
31+ OutALCARECOTkAlUpsilonMuMu_noDrop .outputCommands .extend (SimGeneralAOD .outputCommands )
32+
2133# in Run3, SCAL digis replaced by onlineMetaDataDigis
2234import copy
2335_run3_common_removedCommands = OutALCARECOTkAlUpsilonMuMu_noDrop .outputCommands .copy ()
Original file line number Diff line number Diff line change 5454ALCARECOTkAlUpsilonMuMu .TwoBodyDecaySelector .acoplanarDistance = 1 ##radian
5555ALCARECOTkAlUpsilonMuMu .TwoBodyDecaySelector .numberOfCandidates = 1
5656
57- seqALCARECOTkAlUpsilonMuMu = cms .Sequence (ALCARECOTkAlUpsilonMuMuHLT + ALCARECOTkAlUpsilonMuMuDCSFilter + ALCARECOTkAlUpsilonMuMuGoodMuons + ALCARECOTkAlUpsilonMuMuRelCombIsoMuons + ALCARECOTkAlUpsilonMuMu )
57+ ## for the GEN level information
58+ TkAlUpsilonMuMuGenMuonSelector = cms .EDFilter ("GenParticleSelector" ,
59+ src = cms .InputTag ("genParticles" ),
60+ cut = cms .string ("abs(pdgId) == 13" ), # Select only muons
61+ filter = cms .bool (False ))
62+
63+ seqALCARECOTkAlUpsilonMuMu = cms .Sequence (ALCARECOTkAlUpsilonMuMuHLT + ALCARECOTkAlUpsilonMuMuDCSFilter + ALCARECOTkAlUpsilonMuMuGoodMuons + ALCARECOTkAlUpsilonMuMuRelCombIsoMuons + ALCARECOTkAlUpsilonMuMu + TkAlUpsilonMuMuGenMuonSelector )
5864
5965## customizations for the pp_on_AA eras
6066from Configuration .Eras .Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
Original file line number Diff line number Diff line change 1818 'keep *_offlinePrimaryVertices_*_*' )
1919)
2020
21+ # add branches for MC truth evaluation
22+ from GeneratorInterface .Configuration .GeneratorInterface_EventContent_cff import GeneratorInterfaceAOD
23+ from SimGeneral .Configuration .SimGeneral_EventContent_cff import SimGeneralAOD
24+
25+ OutALCARECOTkAlZMuMu_noDrop .outputCommands .extend (GeneratorInterfaceAOD .outputCommands )
26+ _modifiedCommandsForGEN = OutALCARECOTkAlZMuMu_noDrop .outputCommands .copy ()
27+ _modifiedCommandsForGEN .remove ('keep *_genParticles_*_*' ) # full genParticles list is too heavy
28+ _modifiedCommandsForGEN .append ('keep *_TkAlZMuMuGenMuonSelector_*_*' ) # Keep only the filtered gen muons
29+ OutALCARECOTkAlZMuMu_noDrop .outputCommands = _modifiedCommandsForGEN
30+
31+ OutALCARECOTkAlZMuMu_noDrop .outputCommands .extend (SimGeneralAOD .outputCommands )
32+
2133# in Run3, SCAL digis replaced by onlineMetaDataDigis
2234import copy
2335_run3_common_removedCommands = OutALCARECOTkAlZMuMu_noDrop .outputCommands .copy ()
Original file line number Diff line number Diff line change 5151ALCARECOTkAlZMuMu .TwoBodyDecaySelector .applyAcoplanarityFilter = False
5252ALCARECOTkAlZMuMu .TwoBodyDecaySelector .numberOfCandidates = 1
5353
54- seqALCARECOTkAlZMuMu = cms .Sequence (ALCARECOTkAlZMuMuHLT + ALCARECOTkAlZMuMuDCSFilter + ALCARECOTkAlZMuMuGoodMuons + ALCARECOTkAlZMuMuRelCombIsoMuons + ALCARECOTkAlZMuMu )
54+ ## for the GEN level information
55+ TkAlZMuMuGenMuonSelector = cms .EDFilter ("GenParticleSelector" ,
56+ src = cms .InputTag ("genParticles" ),
57+ cut = cms .string ("abs(pdgId) == 13" ), # Select only muons
58+ filter = cms .bool (False ))
59+
60+ seqALCARECOTkAlZMuMu = cms .Sequence (ALCARECOTkAlZMuMuHLT + ALCARECOTkAlZMuMuDCSFilter + ALCARECOTkAlZMuMuGoodMuons + ALCARECOTkAlZMuMuRelCombIsoMuons + ALCARECOTkAlZMuMu + TkAlZMuMuGenMuonSelector )
5561
5662## customizations for the pp_on_AA eras
5763from Configuration .Eras .Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
You can’t perform that action at this time.
0 commit comments