Пример #1
0
 def finish(self):
     del self.fitter
     print 'finished writing tree'
     self.sTree.Write()
     ut.errorSummary()
     ut.writeHists(h, "recohists.root")
     if realPR: shipPatRec.finalize()
Пример #2
0
 def finish(self):
  del self.fitter
  print 'finished writing tree'
  self.sTree.Write()
  ut.errorSummary()
  ut.writeHists(h,"recohists.root")
  if realPR: ut.writeHists(shipPatRec.h,"recohists_patrec.root")
Пример #3
0
 def finish(self):
  del self.fitter
  print('finished writing tree')
  self.sTree.Write()
  ut.errorSummary()
  ut.writeHists(global_variables.h,"recohists.root")
  if global_variables.realPR:
    shipPatRec.finalize()
Пример #4
0
# main loop
for iEvent in range(firstEvent, SHiP.nEvents):
 if debug: print 'event ',iEvent
 ntracks = SHiP.findTracks(iEvent)
 SHiP.EcalClusters.Fill()
 SHiP.EcalReconstructed.Fill()
 SHiP.Pid.execute()
 if vertexing:
# now go for 2-track combinations
   SHiP.Vertexing.execute()
 for x in caloTasks: 
   if x.GetName() == 'ecalFiller': x.Exec('start',SHiP.sTree.EcalPointLite)
   elif x.GetName() == 'ecalMatch':  x.Exec('start',ecalReconstructed, SHiP.sTree.MCTrack)
   else : x.Exec('start')

 if debug: print 'end of event after Fill'
 # memory monitoring
 # mem_monitor() 

# end loop over events

print 'finished writing tree'
SHiP.sTree.Write()

ut.writeHists(h,"recohists.root")
if realPR: ut.writeHists(shipPatRec.h,"recohists_patrec.root")

ut.errorSummary()

Пример #5
0
for iEvent in range(firstEvent, SHiP.nEvents):
    if iEvent % 1000 == 0 or debug: print 'event ', iEvent
    ntracks = SHiP.findTracks(iEvent)
    for x in caloTasks:
        if x.GetName() == 'ecalFiller':
            x.Exec('start', SHiP.sTree.EcalPointLite)
        elif x.GetName() == 'ecalMatch':
            x.Exec('start', ecalReconstructed, SHiP.sTree.MCTrack)
        else:
            x.Exec('start')
    SHiP.EcalClusters.Fill()
    SHiP.EcalReconstructed.Fill()
    SHiP.Pid.execute()
    if vertexing:
        # now go for 2-track combinations
        SHiP.Vertexing.execute()

    if debug: print 'end of event after Fill'
    # memory monitoring
    # mem_monitor()

# end loop over events

print 'finished writing tree'
SHiP.sTree.Write()

ut.writeHists(h, "recohists.root")
if realPR: ut.writeHists(shipPatRec.h, "recohists_patrec.root")

ut.errorSummary()
Пример #6
0
 def finish(self):
     del self.fitter
     print 'finished writing tree'
     self.sTree.Write()
     ut.errorSummary()
     ut.writeHists(h, "recohists.root")