ATLAS Offline Software
Functions | Variables
sTgcDigitEffiDump Namespace Reference

Functions

def setupArgParser ()
 

Variables

def args = setupArgParser().parse_args()
 
 resolver = PathResolver()
 
 resolvedInFile = resolver.find_file(args.inFile, "DATAPATH")
 
list efficiencies = []
 translate the station name indices into the string staiton name More...
 
list tokens = [x.strip() for x in line.split(" ") if len(x.strip())]
 Skip the header line. More...
 
string stationName = 1 else "STS"
 
list stationEta = tokens[1]
 
list stationPhi = tokens[2]
 Why does the file container station eta == 0? More...
 
int multiLayer = int(tokens[3]) + 1
 
list gasGap = tokens[4]
 
list effi = tokens[5]
 
string effiEntry
 

Function Documentation

◆ setupArgParser()

def sTgcDigitEffiDump.setupArgParser ( )

Definition at line 3 of file sTgcDigitEffiDump.py.

3 def setupArgParser():
4  from argparse import ArgumentParser
5 
6  parser = ArgumentParser()
7  parser.add_argument("--inFile", help="Input file to be translated",
8  default="sTGC_Digitization_EffChamber.dat")
9  parser.add_argument("--outFile", help="Output JSON file",
10  default="sTGC_Digitization_EffChamber.json")
11  return parser
12 

Variable Documentation

◆ args

def sTgcDigitEffiDump.args = setupArgParser().parse_args()

Definition at line 14 of file sTgcDigitEffiDump.py.

◆ effi

list sTgcDigitEffiDump.effi = tokens[5]

Definition at line 38 of file sTgcDigitEffiDump.py.

◆ efficiencies

list sTgcDigitEffiDump.efficiencies = []

translate the station name indices into the string staiton name

Definition at line 23 of file sTgcDigitEffiDump.py.

◆ effiEntry

string sTgcDigitEffiDump.effiEntry
Initial value:
1 = "\n".join([ " {",
2  " \"station\" : \"{name}\",".format(name = stationName),
3  " \"eta\" : {eta},".format(eta = stationEta),
4  " \"phi\" : {phi},".format(phi = stationPhi),
5  " \"multiLayer\" : {phi},".format(phi = multiLayer),
6  " \"gasGap\" : {gap},".format(gap = gasGap),
7  " \"efficiency\": {effi}".format(effi=effi),
8  " }"])

Definition at line 39 of file sTgcDigitEffiDump.py.

◆ gasGap

list sTgcDigitEffiDump.gasGap = tokens[4]

Definition at line 37 of file sTgcDigitEffiDump.py.

◆ multiLayer

int sTgcDigitEffiDump.multiLayer = int(tokens[3]) + 1

Definition at line 36 of file sTgcDigitEffiDump.py.

◆ resolvedInFile

sTgcDigitEffiDump.resolvedInFile = resolver.find_file(args.inFile, "DATAPATH")

Definition at line 18 of file sTgcDigitEffiDump.py.

◆ resolver

sTgcDigitEffiDump.resolver = PathResolver()

Definition at line 16 of file sTgcDigitEffiDump.py.

◆ stationEta

list sTgcDigitEffiDump.stationEta = tokens[1]

Definition at line 31 of file sTgcDigitEffiDump.py.

◆ stationName

string sTgcDigitEffiDump.stationName = 1 else "STS"

Definition at line 30 of file sTgcDigitEffiDump.py.

◆ stationPhi

list sTgcDigitEffiDump.stationPhi = tokens[2]

Why does the file container station eta == 0?

Definition at line 35 of file sTgcDigitEffiDump.py.

◆ tokens

list sTgcDigitEffiDump.tokens = [x.strip() for x in line.split(" ") if len(x.strip())]

Skip the header line.

Definition at line 28 of file sTgcDigitEffiDump.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
sTgcDigitEffiDump.setupArgParser
def setupArgParser()
Definition: sTgcDigitEffiDump.py:3
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10