예제 #1
0
def DontReduceInfo(Rel20=True):
    
    global DontReduceInfoRun
    if (DontReduceInfoRun):
        return
    DontReduceInfoRun = True

    if globalflags.DataSource()!='geant4':
        return
    

    from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParametersForTruthParticles
    
    TTPName = "TruthParticle"
    
    if Rel20:
        TTPName = "TruthParticles"

    TruthDecor = DerivationFramework__TrackParametersForTruthParticles( name = "TruthTPDecor",
                                                                       OutputLevel = Lvl.INFO,
                                                                       DecorationPrefix ="",
                                                                       TruthParticleContainerName=TTPName)
    
    
    global ToolSvc
    ToolSvc +=TruthDecor
    augmentationTools = [TruthDecor]
    
    from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__CommonAugmentation
    
    global DerivationFrameworkJob
    DerivationFrameworkJob += CfgMgr.DerivationFramework__CommonAugmentation("MyDFTSOS_KERN",
                                                                             AugmentationTools = augmentationTools,
                                                                             OutputLevel = Lvl.INFO )
예제 #2
0
#====================================================================
augmentationTools = []
# Add unbiased track parameters to track particles
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackToVertexWrapper
IDTIDE1TrackToVertexWrapper= DerivationFramework__TrackToVertexWrapper(name = "IDTIDE1TrackToVertexWrapper",
                                                                       TrackToVertexIPEstimator = IDTIDE1IPETool,
                                                                       DecorationPrefix = "IDTIDE1",
                                                                       ContainerName = "InDetTrackParticles")
ToolSvc += IDTIDE1TrackToVertexWrapper 
augmentationTools.append(IDTIDE1TrackToVertexWrapper)
print IDTIDE1TrackToVertexWrapper

# Add decoration with truth parameters if running on simulation
if IsMonteCarlo:
    from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParametersForTruthParticles
    TruthDecor = DerivationFramework__TrackParametersForTruthParticles( name = "TruthTPDecor",
                                                                        DecorationPrefix = "")
    ToolSvc += TruthDecor
    augmentationTools.append(TruthDecor)
    print TruthDecor


from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackStateOnSurfaceDecorator
DFTSOS = DerivationFramework__TrackStateOnSurfaceDecorator(name = "DFTrackStateOnSurfaceDecorator",
                                                          ContainerName = "InDetTrackParticles",
                                                          IsSimulation = False,
                                                          DecorationPrefix = "",
                                                          StoreTRT   = idDxAOD_doTrt,
                                                          StoreSCT   = idDxAOD_doSct,
                                                          StorePixel = idDxAOD_doPix,
                                                          OutputLevel =INFO)
ToolSvc += DFTSOS
예제 #3
0
        FTKRefitTrackParticleCnvAlg = xAODMaker__TrackParticleCnvAlg("FTKRefitTrackParticleCnvAlg")
        FTKRefitTrackParticleCnvAlg.xAODTrackParticlesFromTracksContainerName = "Converted_FTKTrackParticleContainerRefit" 
        FTKRefitTrackParticleCnvAlg.TrackContainerName = "FTK_TrackCollectionRefit"
        FTKRefitTrackParticleCnvAlg.ConvertTrackParticles = False
        FTKRefitTrackParticleCnvAlg.ConvertTracks = True
        FTKRefitTrackParticleCnvAlg.AddTruthLink = True
        FTKRefitTrackParticleCnvAlg.TrackTruthContainerName = "FTK_RefitTracks_TruthCollection"
        FTKRefitTrackParticleCnvAlg.PrintIDSummaryInfo = True
        topSequence += FTKRefitTrackParticleCnvAlg

        augmentation_tools = []
        from DerivationFrameworkInDet.DerivationFrameworkInDetConf import (DerivationFramework__TrackParametersForTruthParticles)

        TruthDecor = DerivationFramework__TrackParametersForTruthParticles(
           name="TruthTPDecor",
           TruthParticleContainerName="TruthParticles",
           DecorationPrefix="")
        augmentation_tools.append(TruthDecor)

        # Set up derivation framework
        from AthenaCommon import CfgMgr
        
        theFTKseq = CfgMgr.AthSequencer("FTKSeq")
        from DerivationFrameworkCore.DerivationFrameworkCoreConf import (
            DerivationFramework__CommonAugmentation)
        
        from AthenaCommon.AppMgr import ToolSvc
        ToolSvc += DerivationFramework__TrackParametersForTruthParticles('TruthTPDecor')
        theFTKseq += CfgMgr.DerivationFramework__CommonAugmentation(
          "TSOS_Kernel",
          AugmentationTools=augmentation_tools,