ATLAS Offline Software
Functions | Variables
dumpNswErrorDb Namespace Reference

Functions

def setupArgParser ()
 

Variables

def args = setupArgParser().parse_args()
 
list dbEntriesMMASide = []
 
list dbEntriesMMCSide = []
 
def constant = args.scaleError * 0.0815
 
def linear = args.scaleError * 0.0
 
def quad = args.scaleError * 1.56
 
int minStrip = 1
 
tuple maxStrip = (5 if abs(stationEta)==1 else 3)*1024
 
 calibEntry = dict({"station": stationName, "eta":stationEta, "phi": stationPhi, "multilayer": multilayer, "gasGap": gasGap, "minStrip": minStrip,"maxStrip": maxStrip, "modelName":"tanThetaPolynomial" ,"modelPars": [constant, linear, quad], "clusterAuthor": author})
 
list dbEntriessTGCASide = []
 
list dbEntriessTGCCSide = []
 
 maxStripStgc = dict({"QL1": 408 ,"QL2": 366,"QL3": 353,"QS1": 406, "QS2": 365, "QS3": 307})
 
string chamberKey = f"Q{stationName[2]}{abs(stationEta)}"
 
def const = args.scaleError * 0.151
 
int author = 3
 
string outFileName = f"{args.outFilePreFix}_scale_x{args.scaleError}_mmConstOffset_{args.addErrorMMClusterTime}.json"
 

Function Documentation

◆ setupArgParser()

def dumpNswErrorDb.setupArgParser ( )

Definition at line 5 of file dumpNswErrorDb.py.

5 def setupArgParser():
6  from argparse import ArgumentParser
7 
8  parser = ArgumentParser()
9  parser.add_argument("--outFilePreFix", help="Output JSON file",
10  default="NswUncerts")
11  parser.add_argument("--scaleError", help="Scale the uncertainties of the MM",type=float, default = 5.)
12  parser.add_argument("--addErrorMMClusterTime", help="add fixed error to the uncertainties of the MM",type=float, default = 0.)
13  return parser
14 

Variable Documentation

◆ args

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

Definition at line 16 of file dumpNswErrorDb.py.

◆ author

int dumpNswErrorDb.author = 3

Definition at line 65 of file dumpNswErrorDb.py.

◆ calibEntry

dumpNswErrorDb.calibEntry = dict({"station": stationName, "eta":stationEta, "phi": stationPhi, "multilayer": multilayer, "gasGap": gasGap, "minStrip": minStrip,"maxStrip": maxStrip, "modelName":"tanThetaPolynomial" ,"modelPars": [constant, linear, quad], "clusterAuthor": author})

Definition at line 29 of file dumpNswErrorDb.py.

◆ chamberKey

string dumpNswErrorDb.chamberKey = f"Q{stationName[2]}{abs(stationEta)}"

Definition at line 57 of file dumpNswErrorDb.py.

◆ const

def dumpNswErrorDb.const = args.scaleError * 0.151

Definition at line 61 of file dumpNswErrorDb.py.

◆ constant

def dumpNswErrorDb.constant = args.scaleError * 0.0815

Definition at line 22 of file dumpNswErrorDb.py.

◆ dbEntriesMMASide

list dumpNswErrorDb.dbEntriesMMASide = []

Definition at line 18 of file dumpNswErrorDb.py.

◆ dbEntriesMMCSide

list dumpNswErrorDb.dbEntriesMMCSide = []

Definition at line 19 of file dumpNswErrorDb.py.

◆ dbEntriessTGCASide

list dumpNswErrorDb.dbEntriessTGCASide = []

Definition at line 53 of file dumpNswErrorDb.py.

◆ dbEntriessTGCCSide

list dumpNswErrorDb.dbEntriessTGCCSide = []

Definition at line 54 of file dumpNswErrorDb.py.

◆ linear

def dumpNswErrorDb.linear = args.scaleError * 0.0

Definition at line 23 of file dumpNswErrorDb.py.

◆ maxStrip

tuple dumpNswErrorDb.maxStrip = (5 if abs(stationEta)==1 else 3)*1024

Definition at line 27 of file dumpNswErrorDb.py.

◆ maxStripStgc

dumpNswErrorDb.maxStripStgc = dict({"QL1": 408 ,"QL2": 366,"QL3": 353,"QS1": 406, "QS2": 365, "QS3": 307})

Definition at line 55 of file dumpNswErrorDb.py.

◆ minStrip

int dumpNswErrorDb.minStrip = 1

Definition at line 26 of file dumpNswErrorDb.py.

◆ outFileName

string dumpNswErrorDb.outFileName = f"{args.outFilePreFix}_scale_x{args.scaleError}_mmConstOffset_{args.addErrorMMClusterTime}.json"

Definition at line 86 of file dumpNswErrorDb.py.

◆ quad

def dumpNswErrorDb.quad = args.scaleError * 1.56

Definition at line 24 of file dumpNswErrorDb.py.

dumpNswErrorDb.setupArgParser
def setupArgParser()
Definition: dumpNswErrorDb.py:5