Variables
produceTreeForValidationRetro Namespace Reference

Variables

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

Variable Documentation

produceTreeForValidationRetro.a_group_key = h_f.keys()[0]

Definition at line 34 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.a_group_key_add = hadd_f.keys()[0]

Definition at line 96 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.args = parser.parse_args()

Definition at line 20 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.arrpidCosmic = np.zeros(1, dtype=float)

Definition at line 51 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.arrpidNC = np.zeros(1, dtype=float)

Definition at line 50 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.arrpidNue = np.zeros(1, dtype=float)

Definition at line 48 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.arrpidNuMu = np.zeros(1, dtype=float)

Definition at line 47 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.arrpidNuTau = np.zeros(1, dtype=float)

Definition at line 49 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.correct = 0

Definition at line 23 of file produceTreeForValidationRetro.py.

int produceTreeForValidationRetro.count = 0

Definition at line 22 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.datum = caffe.proto.caffe_pb2.Datum()

Definition at line 81 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.db = leveldb.LevelDB(args.leveldb)

Definition at line 29 of file produceTreeForValidationRetro.py.

int produceTreeForValidationRetro.fileCountH = 0

Definition at line 75 of file produceTreeForValidationRetro.py.

string produceTreeForValidationRetro.fileNameH = args.hdf5+".0.h5"

Definition at line 32 of file produceTreeForValidationRetro.py.

string produceTreeForValidationRetro.fileNameHadd = args.hdf5+"."

Definition at line 94 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.fout = ROOT.TFile("output.root", "RECREATE")

Definition at line 44 of file produceTreeForValidationRetro.py.

int produceTreeForValidationRetro.h_count = 0

Definition at line 74 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.h_data = list(h_f[a_group_key])

Definition at line 35 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.h_f = h5py.File(fileNameH, "r")

Definition at line 33 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.h_size = len(h_data)

Definition at line 36 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.hadd_f = h5py.File(fileNameHadd, "r")

Definition at line 95 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.image = caffe.io.datum_to_array(datum)

Definition at line 86 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.iscorrect = plabel

Definition at line 127 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.label = int(datum.label)

Definition at line 83 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.labels_set = set()

Definition at line 25 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.lepSum = np.zeros(5, dtype=float)

Definition at line 110 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.lepton = eltlr.labelToLeptonRetro(entry)

Definition at line 113 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.matrix = defaultdict(int)

Definition at line 24 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.net = caffe.Net(args.proto, args.model, caffe.TEST)

Definition at line 27 of file produceTreeForValidationRetro.py.

int produceTreeForValidationRetro.nEvents = 200000

Definition at line 73 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.nhit = np.zeros(1, dtype=int)

Definition at line 55 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.out = net.forward_all(data=np.asarray([image]))

Definition at line 106 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.parser = argparse.ArgumentParser()

Definition at line 15 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.plabel = int(out['prob'][0].argmax(axis=0))

Definition at line 108 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.required

Definition at line 16 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.str

Definition at line 16 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.t = ROOT.TTree( 't1', 'tree with histos' )

Definition at line 43 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.truelabel = np.zeros(1, dtype=int)

Definition at line 53 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.tVertX = np.zeros(1, dtype=float)

Definition at line 57 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.tVertY = np.zeros(1, dtype=float)

Definition at line 58 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.tVertZ = np.zeros(1, dtype=float)

Definition at line 59 of file produceTreeForValidationRetro.py.

produceTreeForValidationRetro.type

Definition at line 16 of file produceTreeForValidationRetro.py.