Print

Print


Commit in lcsim/src/org/lcsim/recon/muon on MAIN
MuonReco.java+7-21.4 -> 1.5
 CM:comment Adding debugging prints

lcsim/src/org/lcsim/recon/muon
MuonReco.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- MuonReco.java	31 Oct 2005 22:30:22 -0000	1.4
+++ MuonReco.java	6 Dec 2005 16:24:08 -0000	1.5
@@ -40,9 +40,8 @@
     
     protected void process(EventHeader event)
     {
-        
+
         // Instantiate MuonList object to hold list of muon candidates
-        
         MuonList muonList = new MuonList();
         
         // Create segment finders - one for the hadron calorimeter,
@@ -106,6 +105,10 @@
                 muSegmentFinder.getNHits(), muSegmentFinder.getNLayersHit(),
                 muSegmentFinder.getHits());
                 muonList.add(muon);
+		System.out.println("MuonReco: #muons="+muonList.getNMuons()
+		   +", #hits: Ecal="+ecalSegmentFinder.getNHits()
+		   +", Hcal="+hcalSegmentFinder.getNHits()
+		   +", muon="+muSegmentFinder.getNHits()  );
             }
             // Reset for the next track
             ecalSegmentFinder.reset();		// C.M.- Include the Ecal inthe code
@@ -117,6 +120,7 @@
         // Close the muon list (this will sort muon candidates by Pt)
         
         muonList.close();
+	System.out.println("MuonReco: Final # muons="+muonList.getNMuons());
 
         // Add the muon list to the event
         List<MuonCandidate> muons = new Vector<MuonCandidate>();
@@ -125,6 +129,7 @@
 	    muons.add(muon);
 	}
 
+	System.out.println("Writing muons to event: # muons = "+muons.size());
         event.put("MuonList", muons, MuonCandidate.class, 0);
     }
     
CVSspam 0.2.8