Variables
test_ProductionTestTools Namespace Reference

Variables

string file_name = "/nova/ana/users/tamsett/data/ND_raw/neardet_r00010401_s05_t00_S14-08-19_v1_data.artdaq.root"
 countEventsInRootFile More...
 
 r = tools.countEventsInRootFile(file_name, verbose=True)
 
string defname = "prod_artdaq_S14-08-19_fd_genie_fhc_nonswap"
 getFHiCLFromDef(definition) More...
 
 fcl = tools.getFHiCLFromDef(defname)
 cosmicVetoEfficiency print "\ntest : --- cosmicVetoEfficiency" file_base = "/nova/ana/users/tamsett/data/FD_reco/" file_name = file_base+"fardet_r00015900_s31_t02_S14-03-25_v1_data.reco_without_veto.root" assert(tools.cosmicVetoEfficiency(file_name) == False), "Cosmic veto efficiency returned not False when looking at a file without a veto object" file_name = file_base+"fardet_r00015900_s31_t02_S14-03-25_v1_data.reco_with_veto.root" tools.cosmicVetoEfficiency(file_name) print "test : ---" More...
 
list names = ["FD_data_NuMI","FD_data_cosmics","FD_cosmics","FD_genie","ND_cosmics","ND_genie"]
 
 chain_name = tools.chainNameFromFileName(file_name%name)
 
string folder = "/nusoft/app/web/htdoc/nova/production/testing/S14-08-19_2014-08-22-08-53-16/"
 detect Caching More...
 
 cached_chains = tools.detectCaching(folder)
 
 log = open(file_name,"rb").read()
 
 status = tools.batchLogStatus(log)
 
 path = tools.findFHiCL(fcl)
 
 str_fcl = tools.fileToString(path)
 

Variable Documentation

test_ProductionTestTools.cached_chains = tools.detectCaching(folder)

Definition at line 50 of file test_ProductionTestTools.py.

test_ProductionTestTools.chain_name = tools.chainNameFromFileName(file_name%name)

Definition at line 43 of file test_ProductionTestTools.py.

string test_ProductionTestTools.defname = "prod_artdaq_S14-08-19_fd_genie_fhc_nonswap"

getFHiCLFromDef(definition)

Definition at line 32 of file test_ProductionTestTools.py.

string test_ProductionTestTools.fcl = tools.getFHiCLFromDef(defname)

cosmicVetoEfficiency print "\ntest : --- cosmicVetoEfficiency" file_base = "/nova/ana/users/tamsett/data/FD_reco/" file_name = file_base+"fardet_r00015900_s31_t02_S14-03-25_v1_data.reco_without_veto.root" assert(tools.cosmicVetoEfficiency(file_name) == False), "Cosmic veto efficiency returned not False when looking at a file without a veto object" file_name = file_base+"fardet_r00015900_s31_t02_S14-03-25_v1_data.reco_with_veto.root" tools.cosmicVetoEfficiency(file_name) print "test : ---"

file to string

find FHiCL file

Definition at line 33 of file test_ProductionTestTools.py.

string test_ProductionTestTools.file_name = "/nova/ana/users/tamsett/data/ND_raw/neardet_r00010401_s05_t00_S14-08-19_v1_data.artdaq.root"

countEventsInRootFile

determine the status of a log

chain name from folder

getFHiCLFromDef(definition)

cmdLineCountEventsInRootFile

Definition at line 7 of file test_ProductionTestTools.py.

string test_ProductionTestTools.folder = "/nusoft/app/web/htdoc/nova/production/testing/S14-08-19_2014-08-22-08-53-16/"

detect Caching

Definition at line 49 of file test_ProductionTestTools.py.

test_ProductionTestTools.log = open(file_name,"rb").read()

Definition at line 57 of file test_ProductionTestTools.py.

list test_ProductionTestTools.names = ["FD_data_NuMI","FD_data_cosmics","FD_cosmics","FD_genie","ND_cosmics","ND_genie"]

Definition at line 41 of file test_ProductionTestTools.py.

test_ProductionTestTools.path = tools.findFHiCL(fcl)

Definition at line 80 of file test_ProductionTestTools.py.

test_ProductionTestTools.r = tools.countEventsInRootFile(file_name, verbose=True)

Definition at line 8 of file test_ProductionTestTools.py.

test_ProductionTestTools.status = tools.batchLogStatus(log)

Definition at line 58 of file test_ProductionTestTools.py.

test_ProductionTestTools.str_fcl = tools.fileToString(path)

Definition at line 102 of file test_ProductionTestTools.py.