Ejemplo n.º 1
0
  print "Add TRT xAOD TrackMeasurementValidation:"
  print xAOD_TRT_PrepDataToxAOD
  IDTIDESequence += xAOD_TRT_PrepDataToxAOD

if idDxAOD_doSct:
  from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import SCT_PrepDataToxAOD
  xAOD_SCT_PrepDataToxAOD = SCT_PrepDataToxAOD( name = "xAOD_SCT_PrepDataToxAOD")
  xAOD_SCT_PrepDataToxAOD.OutputLevel=INFO
  xAOD_SCT_PrepDataToxAOD.UseTruthInfo=IsMonteCarlo
  print "Add SCT xAOD TrackMeasurementValidation:"
  print xAOD_SCT_PrepDataToxAOD
  IDTIDESequence += xAOD_SCT_PrepDataToxAOD

if idDxAOD_doPix:
  from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import PixelPrepDataToxAOD
  xAOD_PixelPrepDataToxAOD = PixelPrepDataToxAOD( name = "xAOD_PixelPrepDataToxAOD")
  xAOD_PixelPrepDataToxAOD.OutputLevel=INFO
  xAOD_PixelPrepDataToxAOD.UseTruthInfo=IsMonteCarlo
  print "Add Pixel xAOD TrackMeasurementValidation:"
  print xAOD_PixelPrepDataToxAOD
  IDTIDESequence += xAOD_PixelPrepDataToxAOD


#====================================================================
# THINNING TOOLS 
#====================================================================
thinningTools = []

# TrackParticles directly
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
IDTIDE1ThinningTool = DerivationFramework__TrackParticleThinning(name = "IDTIDE1ThinningTool",
Ejemplo n.º 2
0
        name="NCBxAOD_SCT_PrepDataToxAOD")
    ## Content steering Properties (default value shown as comment)
    xAOD_SCT_PrepDataToxAOD.OutputLevel = INFO
    xAOD_SCT_PrepDataToxAOD.UseTruthInfo = dumpTruthInfo
    xAOD_SCT_PrepDataToxAOD.WriteRDOinformation = True
    #xAOD_SCT_PrepDataToxAOD.WriteSDOs           = True
    #xAOD_SCT_PrepDataToxAOD.WriteSiHits         = True # if available

    topSequence += xAOD_SCT_PrepDataToxAOD
    if (printIdTrkDxAODConf):
        print xAOD_SCT_PrepDataToxAOD
        print xAOD_SCT_PrepDataToxAOD.properties()

if dumpPixInfo:
    from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import PixelPrepDataToxAOD
    xAOD_PixelPrepDataToxAOD = PixelPrepDataToxAOD(
        name="NCBxAOD_PixelPrepDataToxAOD")
    ## Content steering Properties (default value shown as comment)
    xAOD_PixelPrepDataToxAOD.OutputLevel = INFO
    xAOD_PixelPrepDataToxAOD.UseTruthInfo = dumpTruthInfo
    xAOD_PixelPrepDataToxAOD.WriteRDOinformation = False
    xAOD_PixelPrepDataToxAOD.WriteNNinformation = False
    #xAOD_PixelPrepDataToxAOD.WriteSDOs            = True
    #xAOD_PixelPrepDataToxAOD.WriteSiHits          = True # if available
    if InDetFlags.doSLHC():
        xAOD_PixelPrepDataToxAOD.WriteNNinformation = False

    topSequence += xAOD_PixelPrepDataToxAOD
    if (printIdTrkDxAODConf):
        print xAOD_PixelPrepDataToxAOD
        print xAOD_PixelPrepDataToxAOD.properties()
Ejemplo n.º 3
0
    DRAW_ZMUMU_SkimmingTool = DerivationFramework__xAODStringSkimmingTool(
        name="DRAW_ZMUMU_SkimmingTool", expression=draw_zmumu)
    ToolSvc += DRAW_ZMUMU_SkimmingTool
    print(DRAW_ZMUMU_SkimmingTool)

from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__PixelNtupleMaker
PixelMonitoringSkimmingTool = DerivationFramework__PixelNtupleMaker(
    name="PixelMonitoringSkimmingTool", ContainerName="InDetTrackParticles")

ToolSvc += PixelMonitoringSkimmingTool

#################
### Setup decorators tools
#################
from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import PixelPrepDataToxAOD
xAOD_PixelPrepDataToxAOD = PixelPrepDataToxAOD(name="xAOD_PixelPrepDataToxAOD")
xAOD_PixelPrepDataToxAOD.OutputLevel = INFO
xAOD_PixelPrepDataToxAOD.UseTruthInfo = dumpTruthInfo
xAOD_PixelPrepDataToxAOD.WriteRDOinformation = True
xAOD_PixelPrepDataToxAOD.WriteNNinformation = InDetDxAODFlags.DumpPixelNNInfo()
#xAOD_PixelPrepDataToxAOD.WriteSDOs            = True
#xAOD_PixelPrepDataToxAOD.WriteSiHits          = True # if available
if InDetFlags.doSLHC():
    xAOD_PixelPrepDataToxAOD.WriteNNinformation = False

IDDerivationSequence += xAOD_PixelPrepDataToxAOD
if (printIdTrkDxAODConf):
    print(xAOD_PixelPrepDataToxAOD)
    print(xAOD_PixelPrepDataToxAOD.properties())

#################
Ejemplo n.º 4
0
        name="xAOD_SCT_PrepDataToxAOD")
    ## Content steering Properties (default value shown as comment)
    xAOD_SCT_PrepDataToxAOD.OutputLevel = INFO
    xAOD_SCT_PrepDataToxAOD.UseTruthInfo = dumpTruthInfo
    xAOD_SCT_PrepDataToxAOD.WriteRDOinformation = False
    #xAOD_SCT_PrepDataToxAOD.WriteSDOs           = True
    #xAOD_SCT_PrepDataToxAOD.WriteSiHits         = True # if available

    topSequence += xAOD_SCT_PrepDataToxAOD
    if (printIdTrkDxAODConf):
        print(xAOD_SCT_PrepDataToxAOD)
        print(xAOD_SCT_PrepDataToxAOD.properties())

if dumpPixInfo:
    from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import PixelPrepDataToxAOD
    xAOD_PixelPrepDataToxAOD = PixelPrepDataToxAOD(
        name="xAOD_PixelPrepDataToxAOD")
    ## Content steering Properties (default value shown as comment)
    xAOD_PixelPrepDataToxAOD.OutputLevel = INFO
    xAOD_PixelPrepDataToxAOD.UseTruthInfo = dumpTruthInfo
    xAOD_PixelPrepDataToxAOD.WriteRDOinformation = False
    xAOD_PixelPrepDataToxAOD.WriteNNinformation = False
    xAOD_PixelPrepDataToxAOD.WriteSDOs = True
    xAOD_PixelPrepDataToxAOD.WriteSiHits = False  # if available

    topSequence += xAOD_PixelPrepDataToxAOD
    if (printIdTrkDxAODConf):
        print(xAOD_PixelPrepDataToxAOD)
        print(xAOD_PixelPrepDataToxAOD.properties())

#################
### Setup derivation framework
Ejemplo n.º 5
0
    xAOD_SCT_PrepDataToxAOD = SCT_PrepDataToxAOD( name = "xAOD_SCT_PrepDataToxAOD")
    ## Content steering Properties (default value shown as comment)
    xAOD_SCT_PrepDataToxAOD.OutputLevel=INFO
    xAOD_SCT_PrepDataToxAOD.UseTruthInfo        = dumpTruthInfo
    xAOD_SCT_PrepDataToxAOD.WriteRDOinformation = False
    #xAOD_SCT_PrepDataToxAOD.WriteSDOs           = True
    #xAOD_SCT_PrepDataToxAOD.WriteSiHits         = True # if available

    topSequence += xAOD_SCT_PrepDataToxAOD
    if (printIdTrkDxAODConf):
        print xAOD_SCT_PrepDataToxAOD
        print xAOD_SCT_PrepDataToxAOD.properties()

if dumpPixInfo:
    from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import PixelPrepDataToxAOD
    xAOD_PixelPrepDataToxAOD = PixelPrepDataToxAOD( name = "xAOD_PixelPrepDataToxAOD")
    ## Content steering Properties (default value shown as comment)
    xAOD_PixelPrepDataToxAOD.OutputLevel          = INFO
    xAOD_PixelPrepDataToxAOD.UseTruthInfo         = dumpTruthInfo
    xAOD_PixelPrepDataToxAOD.WriteRDOinformation  = False
    xAOD_PixelPrepDataToxAOD.WriteNNinformation   = False
    #xAOD_PixelPrepDataToxAOD.WriteSDOs            = True
    #xAOD_PixelPrepDataToxAOD.WriteSiHits          = True # if available
    if InDetFlags.doSLHC():
        xAOD_PixelPrepDataToxAOD.WriteNNinformation=False

    topSequence += xAOD_PixelPrepDataToxAOD
    if (printIdTrkDxAODConf):
        print xAOD_PixelPrepDataToxAOD
        print xAOD_PixelPrepDataToxAOD.properties()
Ejemplo n.º 6
0
                                      UseDCSStatusConditions=True)

    if not hasattr(condSeq, "PixelDCSCondStateAlg"):
        from PixelConditionsAlgorithms.PixelConditionsAlgorithmsConf import PixelDCSCondStateAlg
        condSeq += PixelDCSCondStateAlg(name="PixelDCSCondStateAlg")
    if not hasattr(condSeq, "PixelDCSCondStatusAlg"):
        from PixelConditionsAlgorithms.PixelConditionsAlgorithmsConf import PixelDCSCondStatusAlg
        condSeq += PixelDCSCondStatusAlg(name="PixelDCSCondStatusAlg")

    from AthenaCommon.AppMgr import ToolSvc
    if not hasattr(ToolSvc, "PixelLorentzAngleTool"):
        from SiLorentzAngleTool.PixelLorentzAngleToolSetup import PixelLorentzAngleToolSetup
        pixelLorentzAngleToolSetup = PixelLorentzAngleToolSetup()

    from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import PixelPrepDataToxAOD
    xAOD_PixelPrepDataToxAOD = PixelPrepDataToxAOD(
        name="xAOD_PixelPrepDataToxAOD")
    xAOD_PixelPrepDataToxAOD.LorentzAngleTool = ToolSvc.PixelLorentzAngleTool
    xAOD_PixelPrepDataToxAOD.OutputLevel = INFO
    xAOD_PixelPrepDataToxAOD.UseTruthInfo = dumpTruthInfo
    xAOD_PixelPrepDataToxAOD.WriteRDOinformation = InDetDxAODFlags.DumpPixelRdoInfo(
    )
    xAOD_PixelPrepDataToxAOD.WriteNNinformation = InDetDxAODFlags.DumpPixelNNInfo(
    )
    #xAOD_PixelPrepDataToxAOD.WriteSDOs            = True
    #xAOD_PixelPrepDataToxAOD.WriteSiHits          = True # if available
    if InDetFlags.doSLHC():
        xAOD_PixelPrepDataToxAOD.WriteNNinformation = False

    IDDerivationSequence += xAOD_PixelPrepDataToxAOD
    if (printIdTrkDxAODConf):
        print(xAOD_PixelPrepDataToxAOD)
Ejemplo n.º 7
0
xAOD_TRT_PrepDataToxAOD = TRT_PrepDataToxAOD( name = "xAOD_TRT_PrepDataToxAOD")
xAOD_TRT_PrepDataToxAOD.OutputLevel=INFO
print "Add TRT xAOD PrepRawData:"
print xAOD_TRT_PrepDataToxAOD
#topSequence += xAOD_TRT_PrepDataToxAOD

from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import SCT_PrepDataToxAOD
xAOD_SCT_PrepDataToxAOD = SCT_PrepDataToxAOD( name = "xAOD_SCT_PrepDataToxAOD")
xAOD_SCT_PrepDataToxAOD.OutputLevel=INFO
xAOD_SCT_PrepDataToxAOD.UseTruthInfo = True
print "Add SCT xAOD PrepRawData:"
print xAOD_SCT_PrepDataToxAOD
topSequence += xAOD_SCT_PrepDataToxAOD

from InDetPrepRawDataToxAOD.InDetPrepRawDataToxAODConf import PixelPrepDataToxAOD
xAOD_PixelPrepDataToxAOD = PixelPrepDataToxAOD( name = "xAOD_PixelPrepDataToxAOD")
xAOD_PixelPrepDataToxAOD.OutputLevel=INFO
xAOD_PixelPrepDataToxAOD.UseTruthInfo = True
print "Add SCT xAOD PrepRawData:"
print xAOD_PixelPrepDataToxAOD
topSequence += xAOD_PixelPrepDataToxAOD


from AthenaCommon import CfgMgr

# DerivationJob is COMMON TO ALL DERIVATIONS
DerivationFrameworkJob = CfgMgr.AthSequencer("MySeq2")

# Set up stream auditor
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
if not hasattr(svcMgr, 'DecisionSvc'):