Namespaces | Variables
produceTreeForValidation.py File Reference

Go to the source code of this file.

Namespaces

 produceTreeForValidation
 

Variables

 produceTreeForValidation.parser = argparse.ArgumentParser()
 
 produceTreeForValidation.type
 
 produceTreeForValidation.str
 
 produceTreeForValidation.required
 
 produceTreeForValidation.args = parser.parse_args()
 
int produceTreeForValidation.count = 0
 
int produceTreeForValidation.correct = 0
 
 produceTreeForValidation.matrix = defaultdict(int)
 
 produceTreeForValidation.labels_set = set()
 
 produceTreeForValidation.net = caffe.Net(args.proto, args.model, caffe.TEST)
 
 produceTreeForValidation.db = leveldb.LevelDB(args.leveldb)
 
string produceTreeForValidation.fileNameH = args.hdf5+".0.h5"
 
 produceTreeForValidation.h_f = h5py.File(fileNameH, "r")
 
 produceTreeForValidation.a_group_key = h_f.keys()[0]
 
 produceTreeForValidation.h_data = list(h_f[a_group_key])
 
 produceTreeForValidation.h_size = len(h_data)
 
 produceTreeForValidation.t = ROOT.TTree( 't1', 'tree with histos' )
 
 produceTreeForValidation.fout = ROOT.TFile("output.root", "RECREATE")
 
 produceTreeForValidation.arrpidNuMu = np.zeros(1, dtype=float)
 
 produceTreeForValidation.arrpidNue = np.zeros(1, dtype=float)
 
 produceTreeForValidation.arrpidNuTau = np.zeros(1, dtype=float)
 
 produceTreeForValidation.arrpidNC = np.zeros(1, dtype=float)
 
 produceTreeForValidation.arrpidCosmic = np.zeros(1, dtype=float)
 
 produceTreeForValidation.truelabel = np.zeros(1, dtype=int)
 
 produceTreeForValidation.nhit = np.zeros(1, dtype=int)
 
 produceTreeForValidation.tVertX = np.zeros(1, dtype=float)
 
 produceTreeForValidation.tVertY = np.zeros(1, dtype=float)
 
 produceTreeForValidation.tVertZ = np.zeros(1, dtype=float)
 
int produceTreeForValidation.nEvents = 100000
 
int produceTreeForValidation.h_count = 0
 
int produceTreeForValidation.fileCountH = 0
 
 produceTreeForValidation.datum = caffe.proto.caffe_pb2.Datum()
 
 produceTreeForValidation.label = int(datum.label)
 
 produceTreeForValidation.image = caffe.io.datum_to_array(datum)
 
string produceTreeForValidation.fileNameHadd = args.hdf5+"."
 
 produceTreeForValidation.hadd_f = h5py.File(fileNameHadd, "r")
 
 produceTreeForValidation.a_group_key_add = hadd_f.keys()[0]
 
 produceTreeForValidation.out = net.forward_all(data=np.asarray([image]))
 
 produceTreeForValidation.plabel = int(out['prob'][0].argmax(axis=0))
 
 produceTreeForValidation.lepSum = np.zeros(5, dtype=float)
 
 produceTreeForValidation.lepton = eltl.labelToLepton(entry)
 
 produceTreeForValidation.iscorrect = plabel