Exemplo n.º 1
0
from InDetPhysValMonitoring.InDetPhysValMonitoringConf import AthTruthSelectionTool
truthSelection = AthTruthSelectionTool()
if mode == "Back":
  # max prod. vertex radius for secondaries [mm]
  # < 0 corresponds to : do not require decay before pixel
  truthSelection.maxProdVertRadius = -999.9 
  truthSelection.maxBarcode = -1

ToolSvc += truthSelection

from InDetPhysValMonitoring.InDetPhysValMonitoringConf import InDetPhysValMonitoringTool
tool1 = InDetPhysValMonitoringTool()
tool1.TruthSelectionTool = truthSelection
tool1.useTrackSelection = False
#tool1.TrackSelectionTool=InDetTrackSelectorTool
tool1.FillTrackInJetPlots = False


ToolSvc += tool1
monMan.AthenaMonTools += [tool1]
'''
from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool
InDetHoleSearchTool = InDet__InDetTrackHoleSearchTool(name = "InDetHoleSearchTool", Extrapolator = InDetExtrapolator, usePixel = True, useSCT= True, CountDeadModulesAfterLastHit = True)
ToolSvc += InDetHoleSearchTool
print InDetHoleSearchTool
'''
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
svcMgr.THistSvc.Output += ["M_output DATAFILE='M_output.root' OPT='RECREATE'"]

# Do some additional tweaking:
Exemplo n.º 2
0
    AthTruthSelectionTool.minPt = 5000
    AthTruthSelectionTool.maxProdVertRadius = 4000
    AthTruthSelectionTool.maxBarcode = -1
    AthTruthSelectionTool.hasNoGrandparent = True
    AthTruthSelectionTool.poselectronfromgamma = True
    os.environ["BACKTRACKDEBUG"] = "1"

print AthTruthSelectionTool
#ToolSvc += AthTruthSelectionTool

from InDetPhysValMonitoring.InDetPhysValMonitoringConf import InDetPhysValMonitoringTool
tool1 = InDetPhysValMonitoringTool()
tool1.TruthSelectionTool = AthTruthSelectionTool
tool1.useTrackSelection = usingTrackSelection
tool1.TrackSelectionTool = InDetTrackSelectorTool
tool1.FillTrackInJetPlots = True
print tool1
#ToolSvc += tool1

monMan.AthenaMonTools += [tool1]

from InDetBoundaryCheckTool.InDetBoundaryCheckToolConf import InDet__InDetBoundaryCheckTool
InDetBoundaryCheckTool = InDet__InDetBoundaryCheckTool(
    name="InDetBoundaryCheckTool")
ToolSvc += InDetBoundaryCheckTool

from InDetTrackHoleSearch.InDetTrackHoleSearchConf import InDet__InDetTrackHoleSearchTool
InDetHoleSearchTool = InDet__InDetTrackHoleSearchTool(
    name="InDetHoleSearchTool",
    Extrapolator=InDetExtrapolator,
    BoundaryCheckTool=InDetBoundaryCheckTool,