ATLAS Offline Software
Functions | Variables
MuonVertexValidationRun Namespace Reference

Functions

def SetupArgParser ()
 
def setupHistSvcCfg (flags, out_file="out.root", out_stream="MSVtxValidation")
 
def MSVtxValidationCfg (flags, name="MSVertexValidationAlg", outStream="MSVtxValidation", outFile="out.root", **kwargs)
 
def execute (cfg)
 

Variables

def args = SetupArgParser().parse_args()
 
 flags = initConfigFlags()
 
 NumThreads
 
 MaxEvents
 
 SkipEvents
 
 NumConcurrentEvents
 
 Files
 
 ShowDataDeps
 
 ShowDataFlow
 
 cfg = setupServicesCfg(flags)
 

Function Documentation

◆ execute()

def MuonVertexValidationRun.execute (   cfg)

Definition at line 41 of file MuonVertexValidationRun.py.

41 def execute(cfg):
42  cfg.printConfig(withDetails=True, summariseProps=True)
43  if not cfg.run().isSuccess(): exit(1)
44 
45 

◆ MSVtxValidationCfg()

def MuonVertexValidationRun.MSVtxValidationCfg (   flags,
  name = "MSVertexValidationAlg",
  outStream = "MSVtxValidation",
  outFile = "out.root",
**  kwargs 
)

Definition at line 30 of file MuonVertexValidationRun.py.

30 def MSVtxValidationCfg(flags, name="MSVertexValidationAlg", outStream="MSVtxValidation", outFile="out.root", **kwargs):
31  # outStream defines the steam to place the tree and histograms
32  result = ComponentAccumulator()
33  # setting algorithm properties here via kwargs.setdefault("<property name>", <property value>)
34  alg = CompFactory.MSVtxValidationAlg(name, **kwargs)
35  result.merge(setupHistSvcCfg(flags,out_file=outFile, out_stream=outStream))
36  result.addEventAlgo(alg)
37 
38  return result
39 
40 

◆ SetupArgParser()

def MuonVertexValidationRun.SetupArgParser ( )

Definition at line 9 of file MuonVertexValidationRun.py.

9 def SetupArgParser():
10  from argparse import ArgumentParser
11 
12  parser = ArgumentParser()
13  parser.add_argument( "-i", "--inputFile", required=True, help="Input file to run on ", nargs="+") # flexible number of arguments, gathered into a list
14  parser.add_argument( "-o", "--outputFile", default="MSVtxVal_out.root", help="output root file")
15  parser.add_argument("--maxEvents", default=-1, type=int, help="How many events shall be run maximally")
16  parser.add_argument("--skipEvents", default=0, type=int, help="How many events shall be skipped")
17  parser.add_argument("--threads", default=1, type=int, help="number of threads")
18 
19  return parser
20 
21 

◆ setupHistSvcCfg()

def MuonVertexValidationRun.setupHistSvcCfg (   flags,
  out_file = "out.root",
  out_stream = "MSVtxValidation" 
)

Definition at line 22 of file MuonVertexValidationRun.py.

22 def setupHistSvcCfg(flags, out_file="out.root", out_stream="MSVtxValidation"):
23  result = ComponentAccumulator()
24  if len(out_file) == 0: return result
25  histSvc = CompFactory.THistSvc(Output=[f"{out_stream} DATAFILE='{out_file}', OPT='RECREATE'"])
26  result.addService(histSvc, primary=True)
27  return result
28 
29 

Variable Documentation

◆ args

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

Definition at line 50 of file MuonVertexValidationRun.py.

◆ cfg

MuonVertexValidationRun.cfg = setupServicesCfg(flags)

Definition at line 60 of file MuonVertexValidationRun.py.

◆ Files

MuonVertexValidationRun.Files

Definition at line 56 of file MuonVertexValidationRun.py.

◆ flags

MuonVertexValidationRun.flags = initConfigFlags()

Definition at line 51 of file MuonVertexValidationRun.py.

◆ MaxEvents

MuonVertexValidationRun.MaxEvents

Definition at line 53 of file MuonVertexValidationRun.py.

◆ NumConcurrentEvents

MuonVertexValidationRun.NumConcurrentEvents

Definition at line 55 of file MuonVertexValidationRun.py.

◆ NumThreads

MuonVertexValidationRun.NumThreads

Definition at line 52 of file MuonVertexValidationRun.py.

◆ ShowDataDeps

MuonVertexValidationRun.ShowDataDeps

Definition at line 57 of file MuonVertexValidationRun.py.

◆ ShowDataFlow

MuonVertexValidationRun.ShowDataFlow

Definition at line 58 of file MuonVertexValidationRun.py.

◆ SkipEvents

MuonVertexValidationRun.SkipEvents

Definition at line 54 of file MuonVertexValidationRun.py.

MuonVertexValidationRun.execute
def execute(cfg)
Definition: MuonVertexValidationRun.py:41
MuonVertexValidationRun.SetupArgParser
def SetupArgParser()
Definition: MuonVertexValidationRun.py:9
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonVertexValidationRun.setupHistSvcCfg
def setupHistSvcCfg(flags, out_file="out.root", out_stream="MSVtxValidation")
Definition: MuonVertexValidationRun.py:22
calibdata.exit
exit
Definition: calibdata.py:236
MuonVertexValidationRun.MSVtxValidationCfg
def MSVtxValidationCfg(flags, name="MSVertexValidationAlg", outStream="MSVtxValidation", outFile="out.root", **kwargs)
Definition: MuonVertexValidationRun.py:30