ATLAS Offline Software
Functions | Variables
validateMioctEncodingFile Namespace Reference

Functions

def readXML (filename)
 
def validate (geometry)
 
def main (args)
 

Variables

 parser
 
 description
 
 formatter_class
 
 dest
 
 default
 
 type
 
 help
 
 opts
 

Function Documentation

◆ main()

def validateMioctEncodingFile.main (   args)

Definition at line 36 of file validateMioctEncodingFile.py.

36 def main(args):
37 
38  print("Using input %s" % args.infile)
39  geometry = readXML( args.infile )
40 
41  validate(geometry)
42 

◆ readXML()

def validateMioctEncodingFile.readXML (   filename)

Definition at line 9 of file validateMioctEncodingFile.py.

9 def readXML(filename):
10  return MioctGeometryXMLReader(filename)
11 

◆ validate()

def validateMioctEncodingFile.validate (   geometry)

Definition at line 12 of file validateMioctEncodingFile.py.

12 def validate(geometry):
13  stats = {'miocts' : 0, 'sectors' : 0, 'rois' : 0, 'decodes' : 0, 'topocells' : 0}
14 
15  stats['miocts'] = len(geometry.getMIOCTs())
16 
17  for mioct in geometry.getMIOCTs():
18  stats['sectors'] += len(mioct.Sectors)
19  for sector in mioct.Sectors:
20  stats['rois'] += len(sector.ROIs)
21  #print "M %2s S %-4s #R %3i" % (mioct['id'], sector['name'], len(sector.ROIs) )
22 
23  stats['decodes'] += len(mioct.Decodes)
24  for decode in mioct.Decodes:
25  stats['topocells'] += len(decode.TopoCells)
26  print("#MIOCTs : %i" % stats['miocts'])
27  print("#Sectors : %i" % stats['sectors'])
28  print("#ROIs : %i" % stats['rois'])
29  print("#Decodes : %i" % stats['decodes'])
30  print("#TopoCells : %i" % stats['topocells'])
31 
32 
33 
34 
35 

Variable Documentation

◆ default

validateMioctEncodingFile.default

Definition at line 48 of file validateMioctEncodingFile.py.

◆ description

validateMioctEncodingFile.description

Definition at line 45 of file validateMioctEncodingFile.py.

◆ dest

validateMioctEncodingFile.dest

Definition at line 48 of file validateMioctEncodingFile.py.

◆ formatter_class

validateMioctEncodingFile.formatter_class

Definition at line 46 of file validateMioctEncodingFile.py.

◆ help

validateMioctEncodingFile.help

Definition at line 49 of file validateMioctEncodingFile.py.

◆ opts

validateMioctEncodingFile.opts

Definition at line 51 of file validateMioctEncodingFile.py.

◆ parser

validateMioctEncodingFile.parser

Definition at line 45 of file validateMioctEncodingFile.py.

◆ type

validateMioctEncodingFile.type

Definition at line 48 of file validateMioctEncodingFile.py.

validateMioctEncodingFile.validate
def validate(geometry)
Definition: validateMioctEncodingFile.py:12
validateMioctEncodingFile.main
def main(args)
Definition: validateMioctEncodingFile.py:36
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
validateMioctEncodingFile.readXML
def readXML(filename)
Definition: validateMioctEncodingFile.py:9