lcsim/src/org/lcsim/contrib/uiowa/MuonFinder
diff -u -r1.1 -r1.2
--- MuonDriver.java 2 Dec 2008 19:28:05 -0000 1.1
+++ MuonDriver.java 3 Dec 2008 08:30:58 -0000 1.2
@@ -162,10 +162,8 @@
Hep3Vector lastUnit = new BasicHep3Vector();
Hep3Vector lastpoint = new BasicHep3Vector();
- //boolean muon = false;
- int isolated = 0;
if(result == null) {
- if(_debug) System.out.println(" REASON: Null mip or extrapolation");
+ if(_debug) System.out.println(" DEBUG: Null mip or extrapolation");
continue;
}else {
//Using extrapolated track
@@ -222,7 +220,7 @@
}
}
if(!hasLastPoint){
- if(_debug) System.out.println(" REASON: Null extrapolated track last point");
+ if(_debug) System.out.println(" DEBUG: Null extrapolated track last point");
continue;
}
}
@@ -246,11 +244,11 @@
aida.cloud1D("muon/cos_muon_link").fill(cos2);
aida.cloud1D("muon/combined cos").fill(cos);
System.out.println(" cos0= " + cos0 + " cos1= " + cos1 + " cos2= " + cos2 + " average cos= " + cos);
- System.out.println(" This is possible MUON Track!");
+ System.out.println(" DEBUG: This is possible MUON Track!");
}
bestmatch = cos;
bestTrack = tr;
- }else { if(_debug) System.out.println(" This is NOT possible muon Track!"); }
+ }else { if(_debug) System.out.println(" DEBUG: This is NOT possible muon Track!"); }
}
if(bestmatch > _bestmatch){
Set<Cluster> c = outputmap.get(bestTrack);
@@ -259,12 +257,13 @@
outputmap.put(bestTrack, c);
}
c.add(mumip);
+ if(_debug) System.out.println("DEBUG: Found one track for this muon mip");
}else {
if(_debug) {
- System.out.println(" REASONG: This cluster in MuDet has no track matched!" + " due to " + bestmatch);
+ System.out.println("DEBUG: This cluster in MuDet has no track matched!" + " due to " + bestmatch);
}
}
- }else { if(_debug) System.out.println (" REASON: This muon mip has 0 number of hits!");}
+ }else { if(_debug) System.out.println ("DEBUG: This muon mip has 0 number of hits!");}
}
Map<Track, Cluster> MuonMapTrackToCluster = new HashMap<Track,Cluster>();