ATLAS Offline Software
Functions | Variables
MuonPrepDataCnvCfg Namespace Reference

Functions

def xRpcToRpcPrepDataCnvAlgCfg (flags, name="xAODRpcToPrepDataCnvAlg", **kwargs)
 
def MuonPrepDataToxAODCnvAlg (flags, name="MuonPrepDataToxAODCnvAlg", **kwargs)
 
def SetupArgParser ()
 
def setupTestOutputCfg (flags, **kwargs)
 

Variables

def args = SetupArgParser().parse_args()
 
 flags = initConfigFlags()
 
 NumThreads
 
 NumConcurrentEvents
 
 doWriteDAOD
 
 Files
 
 cfg = setupServicesCfg(flags)
 
 withDetails
 
 True
 
 summariseProps
 
 sc = cfg.run(-1)
 

Function Documentation

◆ MuonPrepDataToxAODCnvAlg()

def MuonPrepDataCnvCfg.MuonPrepDataToxAODCnvAlg (   flags,
  name = "MuonPrepDataToxAODCnvAlg",
**  kwargs 
)

Definition at line 13 of file MuonPrepDataCnvCfg.py.

13 def MuonPrepDataToxAODCnvAlg(flags,name="MuonPrepDataToxAODCnvAlg", **kwargs):
14  result = ComponentAccumulator()
15  the_alg = CompFactory.Muon.PRDxAODConvertorAlg(name=name, **kwargs)
16  result.addEventAlgo(the_alg, primary = True)
17  return result
18 

◆ SetupArgParser()

def MuonPrepDataCnvCfg.SetupArgParser ( )

Definition at line 19 of file MuonPrepDataCnvCfg.py.

19 def SetupArgParser():
20  from argparse import ArgumentParser
21 
22  parser = ArgumentParser()
23  parser.add_argument("-t", "--threads", dest="threads", type=int, help="number of threads", default=1)
24  parser.add_argument("-o", "--output", dest="output", default='PrepDataTest.pool.root', help="Text file containing each cabling channel", metavar="FILE")
25  parser.add_argument("--inputFile", "-i", default=["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run3MC.ESD.pool.root"],
26  help="Input file to run on ", nargs="+")
27  return parser
28 

◆ setupTestOutputCfg()

def MuonPrepDataCnvCfg.setupTestOutputCfg (   flags,
**  kwargs 
)

Definition at line 29 of file MuonPrepDataCnvCfg.py.

29 def setupTestOutputCfg(flags,**kwargs):
30 
31  kwargs.setdefault("streamName","MPRDTestStream")
32  kwargs.setdefault("AcceptAlgs",[])
33 
34  result = ComponentAccumulator()
35 
39  container_items = ["xAOD::MdtDriftCircleContainer#", "xAOD::MdtDriftCircleAuxContainer#",
40  "xAOD::RpcStripContainer#", "xAOD::RpcStripAuxContainer#",
41  "xAOD::TgcStripContainer#", "xAOD::TgcStripAuxContainer#",
42  "xAOD::MMClusterContainer#", "xAOD::MMClusterAuxContainer#",
43  "xAOD::sTgcStripContainer#", "xAOD::sTgcStripAuxContaine#",
44  "xAOD::sTgcWireContainer#", "xAOD::sTgcWireAuxContainer#",
45  "xAOD::sTgcPadContainer#", "xAOD::sTgcPadAuxContainer#",
46  ]
47  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
48  kwargs.setdefault("ItemList", container_items)
49  result.merge(OutputStreamCfg(flags, **kwargs))
50  return result
51 
52 

◆ xRpcToRpcPrepDataCnvAlgCfg()

def MuonPrepDataCnvCfg.xRpcToRpcPrepDataCnvAlgCfg (   flags,
  name = "xAODRpcToPrepDataCnvAlg",
**  kwargs 
)

Definition at line 7 of file MuonPrepDataCnvCfg.py.

7 def xRpcToRpcPrepDataCnvAlgCfg(flags,name = "xAODRpcToPrepDataCnvAlg", **kwargs):
8  result = ComponentAccumulator()
9  the_alg = CompFactory.MuonR4.xRpcMeasToRpcTrkPrdCnvAlg(name, **kwargs)
10  result.addEventAlgo(the_alg, primary = True)
11  return result
12 

Variable Documentation

◆ args

def MuonPrepDataCnvCfg.args = SetupArgParser().parse_args()

Definition at line 56 of file MuonPrepDataCnvCfg.py.

◆ cfg

MuonPrepDataCnvCfg.cfg = setupServicesCfg(flags)

Definition at line 67 of file MuonPrepDataCnvCfg.py.

◆ doWriteDAOD

MuonPrepDataCnvCfg.doWriteDAOD

Definition at line 61 of file MuonPrepDataCnvCfg.py.

◆ Files

MuonPrepDataCnvCfg.Files

Definition at line 62 of file MuonPrepDataCnvCfg.py.

◆ flags

MuonPrepDataCnvCfg.flags = initConfigFlags()

Definition at line 58 of file MuonPrepDataCnvCfg.py.

◆ NumConcurrentEvents

MuonPrepDataCnvCfg.NumConcurrentEvents

Definition at line 60 of file MuonPrepDataCnvCfg.py.

◆ NumThreads

MuonPrepDataCnvCfg.NumThreads

Definition at line 59 of file MuonPrepDataCnvCfg.py.

◆ sc

MuonPrepDataCnvCfg.sc = cfg.run(-1)

Definition at line 76 of file MuonPrepDataCnvCfg.py.

◆ summariseProps

MuonPrepDataCnvCfg.summariseProps

Definition at line 73 of file MuonPrepDataCnvCfg.py.

◆ True

MuonPrepDataCnvCfg.True

Definition at line 73 of file MuonPrepDataCnvCfg.py.

◆ withDetails

MuonPrepDataCnvCfg.withDetails

Definition at line 73 of file MuonPrepDataCnvCfg.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
MuonPrepDataCnvCfg.xRpcToRpcPrepDataCnvAlgCfg
def xRpcToRpcPrepDataCnvAlgCfg(flags, name="xAODRpcToPrepDataCnvAlg", **kwargs)
Definition: MuonPrepDataCnvCfg.py:7
MuonPrepDataCnvCfg.MuonPrepDataToxAODCnvAlg
def MuonPrepDataToxAODCnvAlg(flags, name="MuonPrepDataToxAODCnvAlg", **kwargs)
Definition: MuonPrepDataCnvCfg.py:13
MuonPrepDataCnvCfg.SetupArgParser
def SetupArgParser()
Definition: MuonPrepDataCnvCfg.py:19
MuonPrepDataCnvCfg.setupTestOutputCfg
def setupTestOutputCfg(flags, **kwargs)
Definition: MuonPrepDataCnvCfg.py:29