ATLAS Offline Software
Functions | Variables
dumpTgcDigiDeadChambers Namespace Reference

Functions

def setupArgParser ()
 

Variables

def args = setupArgParser().parse_args()
 
 resolver = PathResolver()
 
 resolvedInFile = resolver.find_file(args.inFile, "DATAPATH")
 
dictionary stationNameDict = {41:"T1F", 42:"T1E", 43:"T2F", 44:"T2E", 45:"T3F", 46:"T3E", 47:"T4F", 48:"T4E"}
 translate the station name indices into the string staiton name More...
 
list deadChambers = []
 
 comment = line[line.find("#") + 1 : -1]
 
 line = line[0 : line.find("#")]
 
list tokens = [int(x.strip()) for x in line.split(" ") if len(x.strip())]
 
dictionary stationName = stationNameDict[tokens[0]]
 
list stationEta = tokens[1]
 
list stationPhi = tokens[2]
 
list gasGap = tokens[3]
 
string deadEntry
 

Function Documentation

◆ setupArgParser()

def dumpTgcDigiDeadChambers.setupArgParser ( )

Definition at line 3 of file dumpTgcDigiDeadChambers.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="TGC_Digitization_2016deadChamber.dat")
9  parser.add_argument("--outFile", help="Output JSON file",
10  default="TGC_Digitization_2016deadChamber.json")
11  return parser
12 

Variable Documentation

◆ args

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

Definition at line 14 of file dumpTgcDigiDeadChambers.py.

◆ comment

dumpTgcDigiDeadChambers.comment = line[line.find("#") + 1 : -1]

Definition at line 27 of file dumpTgcDigiDeadChambers.py.

◆ deadChambers

list dumpTgcDigiDeadChambers.deadChambers = []

Definition at line 24 of file dumpTgcDigiDeadChambers.py.

◆ deadEntry

string dumpTgcDigiDeadChambers.deadEntry
Initial value:
1 = "\n".join([ " {",
2  " \"station\" : \"{name}\",".format(name = stationName),
3  " \"eta\" : {eta},".format(eta = stationEta),
4  " \"phi\" : {phi},".format(phi = stationPhi),
5  " \"gasGap\" : {gap},".format(gap = gasGap),
6  " \"comment\" : \"{comment}\"".format(comment = comment),
7  " }"])

Definition at line 34 of file dumpTgcDigiDeadChambers.py.

◆ gasGap

list dumpTgcDigiDeadChambers.gasGap = tokens[3]

Definition at line 33 of file dumpTgcDigiDeadChambers.py.

◆ line

dumpTgcDigiDeadChambers.line = line[0 : line.find("#")]

Definition at line 28 of file dumpTgcDigiDeadChambers.py.

◆ resolvedInFile

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

Definition at line 18 of file dumpTgcDigiDeadChambers.py.

◆ resolver

dumpTgcDigiDeadChambers.resolver = PathResolver()

Definition at line 16 of file dumpTgcDigiDeadChambers.py.

◆ stationEta

list dumpTgcDigiDeadChambers.stationEta = tokens[1]

Definition at line 31 of file dumpTgcDigiDeadChambers.py.

◆ stationName

dictionary dumpTgcDigiDeadChambers.stationName = stationNameDict[tokens[0]]

Definition at line 30 of file dumpTgcDigiDeadChambers.py.

◆ stationNameDict

dictionary dumpTgcDigiDeadChambers.stationNameDict = {41:"T1F", 42:"T1E", 43:"T2F", 44:"T2E", 45:"T3F", 46:"T3E", 47:"T4F", 48:"T4E"}

translate the station name indices into the string staiton name

Definition at line 23 of file dumpTgcDigiDeadChambers.py.

◆ stationPhi

list dumpTgcDigiDeadChambers.stationPhi = tokens[2]

Definition at line 32 of file dumpTgcDigiDeadChambers.py.

◆ tokens

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

Definition at line 29 of file dumpTgcDigiDeadChambers.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
dumpTgcDigiDeadChambers.setupArgParser
def setupArgParser()
Definition: dumpTgcDigiDeadChambers.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