ATLAS Offline Software
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetTrackPerfMon
scripts
Namespaces
|
Functions
|
Variables
IDPVMtoIDTPMConverter.py File Reference
Go to the source code of this file.
Namespaces
namespace
IDPVMtoIDTPMConverter
Functions
IDPVMtoIDTPMConverter.getall
(d, basepath="")
now opening and looping input
IDPVM
file
Variables
IDPVMtoIDTPMConverter.log
= logging.getLogger( "IDPVMtoIDTPMConverter.py" )
IDPVMtoIDTPMConverter.parser
= argparse.ArgumentParser(
description
= "IDPVMtoIDTPMConverter.py options:" )
IDPVMtoIDTPMConverter.help
IDPVMtoIDTPMConverter.required
IDPVMtoIDTPMConverter.default
IDPVMtoIDTPMConverter.action
IDPVMtoIDTPMConverter.MyArgs
= parser.parse_args()
IDPVMtoIDTPMConverter.inputPath
= custom_find_datafile( MyArgs.inputFile )
Check if input histogram file exists.
IDPVMtoIDTPMConverter.configFileName
= custom_find_datafile( MyArgs.config )
Check if config file exists.
dict
IDPVMtoIDTPMConverter.namingMap_base
= {}
First, read config file to fill bas map.
IDPVMtoIDTPMConverter.parsed
= line.strip().
split
()
IDPVMtoIDTPMConverter.htype
=
parsed
[0]
IDPVMtoIDTPMConverter.hIDPVM
=
parsed
[1]
IDPVMtoIDTPMConverter.hIDTPM
=
parsed
[2]
list
IDPVMtoIDTPMConverter.expandMap
= []
Expand map to account for other track analyses.
dict
IDPVMtoIDTPMConverter.namingMap
= namingMap_base.copy()
dict
IDPVMtoIDTPMConverter.namingMap_add
= {}
IDPVMtoIDTPMConverter.newhname
= hname.replace( "SquirrelPlots/", expitem["IDPVMrepl"] )
IDPVMtoIDTPMConverter.newhdict
= hdict.copy()
IDPVMtoIDTPMConverter.inFile
= ROOT.TFile.Open(
inputPath
, "READ" )
IDPVMtoIDTPMConverter.outFile
= ROOT.TFile.Open( MyArgs.outputFile, "RECREATE" )
IDPVMtoIDTPMConverter.keytype
= keyobj.ClassName()
dict
IDPVMtoIDTPMConverter.mapHtype
=
namingMap
[ keyname ]["type"]
checking if histogram is in map
dict
IDPVMtoIDTPMConverter.newHname
=
namingMap
[ keyname ]["IDTPMname"]
IDPVMtoIDTPMConverter.newHname_path
= os.path.dirname(
newHname
)
getting input histo
IDPVMtoIDTPMConverter.newHname_obj
= os.path.basename(
newHname
)
Generated on
for ATLAS Offline Software by
1.16.1