예제 #1
0
#D3PDMakerFlags.TruthWriteHadrons = True

#-------------------------------------
# Silence Trig Navigation Warnings
#-------------------------------------
ToolSvc += Trig__TrigDecisionTool('TrigDecisionTool')
ToolSvc.TrigDecisionTool.Navigation.OutputLevel = ERROR

topSequence = AlgSequence()

#addSUSYCustomMissingET( topSequence )
#PhotonCustomMET()

ExtendedJetD3PDObject = JetD3PDObject.copy()
myMuonD3PDObject = MuonD3PDObject.copy()
ExtendedTauD3PDObject = TauD3PDObject.copy()

#from CaloD3PDMaker import ClusterMomentFillerTool as CMFT
#ClusterD3PDObject.defineBlock (99, 'CenterMagMoments', CMFT, Moments = [CMFT.CENTER_MAG, 'centermag'])

# make truth jets WIDTH and SPLIT variables for truth jets R=0.4/0.6
import JetSubStructure
from JetRec.JetMomentGetter import make_JetMomentGetter
from JetMomentTools.JetMomentToolsConf import JetWidthTool
from JetRec.JetRecConf import JetSorterTool
widthtool = JetWidthTool('JS_JetWidthTool')
assoc_tool_truth = JetSubStructure.JetAssociationTool(name='JetAssocToolTruth',
                                                      JetAlgTools=[widthtool],
                                                      OutputLevel=3)
jetsubstructure_tool_truth = JetSubStructure.JetSubstructureTool(
예제 #2
0
from MuonD3PDMaker.MuonTriggerBitsD3PDObject import MuonTriggerBitsD3PDObject

muonIncludes = [
    'Kinematics', 'Charge', 'AllAuthor', 'Authors', 'TrkMatchQuality',
    'Isolation', 'CaloEnergyLoss', 'AcceptMethods', 'ParametersAtPV',
    'ComponentTrkParameters', 'MuonHitSummary', 'MuonSpectrometerHitSummary',
    'TrkParameters', 'TrkCovDiag', 'TrkCovOffDiag', 'Quality', 'EFCBInfoIndex',
    'EFMGInfoIndex', 'EFMEInfoIndex', 'PrimaryTrackDiagonalCovarianceAtPV',
    'StacoTrackAssocIndex'
]

if rec.doTruth():
    muonIncludes += ['TruthInfoIndex']

# The 3 variants of muon objects
MuonsD3PDObject = MuonD3PDObject.copy()

# >>>>>Backward compatibility for Staco/Miud<<<<<
if not MuonD3PDFlags.doNewChainOnly:
    StacoD3PDObject = MuonD3PDObject.copy()
    MuidD3PDObject = MuonD3PDObject.copy()
# >>>>>----------------end------------------<<<<<

# Trigger Decision
if D3PDMakerFlags.DoTrigger():
    from TriggerD3PDMaker.TrigDecisionD3PDObject import TrigDecisionD3PDObject
    from TriggerD3PDMaker.TrigConfMetadata import addTrigConfMetadata
    from TriggerD3PDMaker.BGCodeD3PDObject import BGCodeD3PDObject
    from TriggerD3PDMaker.BunchStructureMetadata import addBunchStructureMetadata
    addBunchStructureMetadata(MuonD3PDStream)
    # Trigger Decision + metadata