-
-
-
1057 for tid
in trackids:
-
-
-
-
-
-
1063 tmax =
max(track, key=track.get)
-
-
-
-
-
-
-
-
+
Definition at line 1055 of file shipDigiReco.py.
+
+
+
+
1058 for tid
in trackids:
+
+
+
+
+
+
1064 tmax =
max(track, key=track.get)
+
+
+
+
+
+
+
+
@@ -1592,17 +1593,17 @@
diff --git a/shipDigiReco_8py_source.html b/shipDigiReco_8py_source.html
index 7e36f7375..859bfbb5a 100644
--- a/shipDigiReco_8py_source.html
+++ b/shipDigiReco_8py_source.html
@@ -1052,115 +1052,116 @@
969 error =
"Fit not converged"
970 ut.reportError(error)
971 nmeas = fitStatus.getNdf()
-
972 chi2 = fitStatus.getChi2() / nmeas
-
973 global_variables.h[
'chi2'].Fill(chi2)
-
-
-
976 if not global_variables.debug:
-
977 theTrack.prune(
"CFL")
-
-
-
980 if global_variables.debug:
-
981 print(
'save track',theTrack,chi2,nmeas,fitStatus.isFitConverged())
-
-
-
984 for index
in listOfIndices[atrack]:
-
985 ahit = self.
sTreesTree.strawtubesPoint[index]
-
986 track_ids += [ahit.GetTrackID()]
-
987 frac, tmax = self.
fracMCsamefracMCsame(track_ids)
-
-
-
-
-
992 listOfHits = aTracklet.getList()
-
-
994 for index
in listOfIndices[atrack]:
-
995 listOfHits.push_back(index)
-
-
-
-
-
1000 if global_variables.debug:
-
1001 print(
'save tracklets:')
-
1002 for x
in self.
sTreesTree.Tracklets:
-
1003 print(x.getType(),x.getList().size())
-
-
-
-
-
-
1009 for i,track
in enumerate(self.
fGenFitArrayfGenFitArray):
-
1010 fitStatus = track.getFitStatus()
-
1011 if not fitStatus.isFitConverged():
continue
-
1012 nmeas = fitStatus.getNdf()
-
1013 chi2 = fitStatus.getChi2()/nmeas
-
1014 if chi2<50
and not chi2<0:
-
-
-
-
-
-
-
-
1022 vetoHitOnTrack = ROOT.vetoHitOnTrack()
-
1023 xx = track.getFittedState()
-
1024 rep = ROOT.genfit.RKTrackRep(xx.getPDG())
-
1025 state = ROOT.genfit.StateOnPlane(rep)
-
1026 rep.setPosMom(state,xx.getPos(),xx.getMom())
-
1027 for i,vetoHit
in enumerate(self.
digiSBTdigiSBT):
-
-
-
1030 rep.extrapolateToPoint(state,vetoHitPos,
False)
-
-
1032 error =
"shipDigiReco::findVetoHitOnTrack extrapolation did not worked"
-
1033 ut.reportError(error)
-
1034 if global_variables.debug:
-
-
-
1037 dist = (rep.getPos(state) - vetoHitPos).Mag()
-
-
-
-
-
1042 return vetoHitOnTrack
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1057 for tid
in trackids:
-
-
-
-
-
-
1063 tmax =
max(track, key=track.get)
-
-
-
-
-
-
-
-
-
-
-
1074 print(
'finished writing tree')
-
1075 self.
sTreesTree.Write()
-
-
1077 ut.writeHists(global_variables.h,
"recohists.root")
-
1078 if global_variables.realPR:
-
-
+
+
973 chi2 = fitStatus.getChi2() / nmeas
+
974 global_variables.h[
'chi2'].Fill(chi2)
+
+
+
977 if not global_variables.debug:
+
978 theTrack.prune(
"CFL")
+
+
+
981 if global_variables.debug:
+
982 print(
'save track',theTrack,chi2,nmeas,fitStatus.isFitConverged())
+
+
+
985 for index
in listOfIndices[atrack]:
+
986 ahit = self.
sTreesTree.strawtubesPoint[index]
+
987 track_ids += [ahit.GetTrackID()]
+
988 frac, tmax = self.
fracMCsamefracMCsame(track_ids)
+
+
+
+
+
993 listOfHits = aTracklet.getList()
+
+
995 for index
in listOfIndices[atrack]:
+
996 listOfHits.push_back(index)
+
+
+
+
+
1001 if global_variables.debug:
+
1002 print(
'save tracklets:')
+
1003 for x
in self.
sTreesTree.Tracklets:
+
1004 print(x.getType(),x.getList().size())
+
+
+
+
+
+
1010 for i,track
in enumerate(self.
fGenFitArrayfGenFitArray):
+
1011 fitStatus = track.getFitStatus()
+
1012 if not fitStatus.isFitConverged():
continue
+
1013 nmeas = fitStatus.getNdf()
+
1014 chi2 = fitStatus.getChi2()/nmeas
+
1015 if chi2<50
and not chi2<0:
+
+
+
+
+
+
+
+
1023 vetoHitOnTrack = ROOT.vetoHitOnTrack()
+
1024 xx = track.getFittedState()
+
1025 rep = ROOT.genfit.RKTrackRep(xx.getPDG())
+
1026 state = ROOT.genfit.StateOnPlane(rep)
+
1027 rep.setPosMom(state,xx.getPos(),xx.getMom())
+
1028 for i,vetoHit
in enumerate(self.
digiSBTdigiSBT):
+
+
+
1031 rep.extrapolateToPoint(state,vetoHitPos,
False)
+
+
1033 error =
"shipDigiReco::findVetoHitOnTrack extrapolation did not worked"
+
1034 ut.reportError(error)
+
1035 if global_variables.debug:
+
+
+
1038 dist = (rep.getPos(state) - vetoHitPos).Mag()
+
+
+
+
+
1043 return vetoHitOnTrack
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
1058 for tid
in trackids:
+
+
+
+
+
+
1064 tmax =
max(track, key=track.get)
+
+
+
+
+
+
+
+
+
+
+
1075 print(
'finished writing tree')
+
1076 self.
sTreesTree.Write()
+
+
1078 ut.writeHists(global_variables.h,
"recohists.root")
+
1079 if global_variables.realPR:
+
+
void InitPython(ecalStructure *structure)
Int_t InitPython(TClonesArray *mctracks, TClonesArray *ecalPoints, ecalStructure *structure, TClonesArray *clusters)
void InitPython(ecalStructure *str, TClonesArray *reconstructed, TClonesArray *mctracks)
@@ -1178,13 +1179,13 @@
-
+
-
+
-
def findVetoHitOnTrack(self, track)
+
def findVetoHitOnTrack(self, track)
def __init__(self, fout, fgeo)
@@ -1220,7 +1221,7 @@
list_hits_above_threshold
cluster reconstruction #
-
def fracMCsame(self, trackids)
+
def fracMCsame(self, trackids)
@@ -1237,7 +1238,7 @@
-
def linkVetoOnTracks(self)
+
def linkVetoOnTracks(self)