diff --git a/tools.py b/tools.py index d250aba..65caf87 100755 --- a/tools.py +++ b/tools.py @@ -287,7 +287,7 @@ abig = 250.#nodes['T2LiSc_1_1']['x']['dim'] asmall = 186.#nodes['T1LiSc_1_1']['x']['dim'] b = 500.#nodes['T2LiSc_1_1']['y']['dim'] - print abig, asmall, b + #print abig, asmall, b for node in nodes.keys(): if 'LiSc' in node: zstarts.append(nodes[node]['z']['pos']-nodes[node]['z']['dim']) @@ -302,10 +302,10 @@ #Nz = len(zstarts) zin = min(zstarts) zout =max(zends) - print 'zstart: ', zin, 'zend: ', zout + #print 'zstart: ', zin, 'zend: ', zout zstepsize = 100. Nz = int(math.ceil((zout-zin)/zstepsize)) - print Nphi, Nz, nBins + #print Nphi, Nz, nBins nBins = Nphi*Nz global listOfHitLSSegments, numberOfHitLSSegments, listOfSegments for i in xrange(nBins): @@ -317,8 +317,8 @@ global listOfHitLSSegments, numberOfHitLSSegments, listOfSegments global abig, asmall, b, phistart, dphi, Nphi, nBins, zin, zout endsmall = nodes['T1Endplate_1']['z']['pos']+nodes['T1Endplate_1']['z']['dim'] - print 'endsmall: ', endsmall - print 'nBins: ', nBins, 'len(list): ',len(listOfSegments) + #print 'endsmall: ', endsmall + #print 'nBins: ', nBins, 'len(list): ',len(listOfSegments) for hit in event.vetoPoint: z = hit.GetZ() if (z<(nodes['VetoTimeDet_1']['z']['pos']+nodes['VetoTimeDet_1']['z']['dim']) @@ -341,7 +341,7 @@ sys.exit() nHit = 0 for iBin in xrange(nBins): - if listOfSegments[iBin] > 0.045: + if listOfSegments[iBin] > 0.015: nHit +=1 Push(listOfHitLSSegments, int(iBin)) Push(numberOfHitLSSegments, nHit)