Skip to content
Snippets Groups Projects
Commit 1ab39b5c authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (MuonPtCalibNtupleMaker-00-00-05)

parent d0f5c45a
No related branches found
Tags v8r9-pre3
No related merge requests found
################################################################################
# Package: MuonPtCalibNtupleMaker
################################################################################
# Declare the package name:
atlas_subdir( MuonPtCalibNtupleMaker )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthenaBaseComps
DataQuality/GoodRunsLists
Event/xAOD/xAODEventInfo
Event/xAOD/xAODMuon
PhysicsAnalysis/MuonID/MuonSelectorTools
PRIVATE
GaudiKernel )
# External dependencies:
find_package( CLHEP )
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_component( MuonPtCalibNtupleMaker
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} AthenaBaseComps GoodRunsListsLib xAODEventInfo xAODMuon MuonSelectorToolsLib GaudiKernel )
# Install files from the package:
atlas_install_headers( MuonPtCalibNtupleMaker )
atlas_install_python_modules( python/*.py )
atlas_install_joboptions( share/*.py )
......@@ -20,3 +20,4 @@ public
library MuonPtCalibNtupleMaker *.cxx -s=components *.cxx
apply_pattern component_library
apply_pattern declare_joboptions files="../share/*.py"
apply_pattern declare_python_modules files="*.py"
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
def MuonScaleConfig( OutputName ):
from AthenaCommon.AppMgr import ServiceMgr
from AthenaCommon.AlgSequence import AlgSequence
theJob = AlgSequence()
# THistSvc configuration
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output += [ "MCPCALIB DATAFILE='{}' OPT='RECREATE'".format( OutputName ) ]
# Setup MST
from AthenaCommon import CfgMgr
ToolSvc = ServiceMgr.ToolSvc
ToolSvc += CfgMgr.CP__MuonSelectionTool( 'MuonSelectorTool' )
from MuonPtCalibNtupleMaker.MuonPtCalibNtupleMakerConf import CalibMuonsSelectorTool
SelectorTool = CalibMuonsSelectorTool( 'SelectorTool' )
SelectorTool.MuonSelectorTool = ToolSvc.MuonSelectorTool
ToolSvc += SelectorTool
# Setup algorithm
from MuonPtCalibNtupleMaker.MuonPtCalibNtupleMakerConf import CalibMuonsNtupleMaker
NtupleMaker = CalibMuonsNtupleMaker( 'NtupleMaker' )
NtupleMaker.SelectorTool = SelectorTool
NtupleMaker.ExtendedVersion = False
theJob += NtupleMaker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment