LISTSERV mailing list manager LISTSERV 16.5

Help for HPS-SVN Archives


HPS-SVN Archives

HPS-SVN Archives


HPS-SVN@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

HPS-SVN Home

HPS-SVN Home

HPS-SVN  July 2015

HPS-SVN July 2015

Subject:

r3272 - /java/trunk/users/src/main/java/org/hps/users/kmccarty/TridentTrackDriver.java

From:

[log in to unmask]

Reply-To:

Notification of commits to the hps svn repository <[log in to unmask]>

Date:

Tue, 21 Jul 2015 19:33:57 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (64 lines)

Author: [log in to unmask]
Date: Tue Jul 21 12:33:44 2015
New Revision: 3272

Log:
Excluded particles without tracks from the trident analysis.

Modified:
    java/trunk/users/src/main/java/org/hps/users/kmccarty/TridentTrackDriver.java

Modified: java/trunk/users/src/main/java/org/hps/users/kmccarty/TridentTrackDriver.java
 =============================================================================
--- java/trunk/users/src/main/java/org/hps/users/kmccarty/TridentTrackDriver.java	(original)
+++ java/trunk/users/src/main/java/org/hps/users/kmccarty/TridentTrackDriver.java	Tue Jul 21 12:33:44 2015
@@ -85,10 +85,8 @@
 			// Get the final state particles.
 			List<ReconstructedParticle> trackList = event.get(ReconstructedParticle.class, finalStateCollectionName);
 			
-			// Get the number of tracks.
-			tracksFinalState += trackList.size();
-			
 			// Store the positive and negative tracks.
+			List<ReconstructedParticle> allTrackList = new ArrayList<ReconstructedParticle>();
 			List<ReconstructedParticle> posTrackList = new ArrayList<ReconstructedParticle>();
 			List<ReconstructedParticle> negTrackList = new ArrayList<ReconstructedParticle>();
 			
@@ -99,6 +97,19 @@
 			
 			// Iterate over the tracks and populate the lists.
 			for(ReconstructedParticle track : trackList) {
+				// Skip instances with no raw tracks.
+				if(track.getTracks().size() == 0) { continue; }
+				
+				// Add the cluster to the all track list.
+				allTrackList.add(track);
+				
+				// Track the number of cluster tracks.
+				tracksFinalState++;
+				if(!track.getClusters().isEmpty()) {
+					tracksFinalStateCluster++;
+				}
+				
+				// Process the tracks based on charge.
 				if(track.getCharge() > 0) {
 					// Increment the counters and populate the momentum plots.
 					posTrackList.add(track);
@@ -146,15 +157,10 @@
 						position[HAS_CLUSTER].fill(ix, iy);
 					}
 				}
-				
-				// Track the number of cluster tracks.
-				if(!track.getClusters().isEmpty()) {
-					tracksFinalStateCluster++;
-				}
 			}
 			
 			// Populate the tracks per event plots.
-			tracks[ANY_CLUSTER].fill(trackList.size());
+			tracks[ANY_CLUSTER].fill(allTrackList.size());
 			tracks[HAS_CLUSTER].fill(allClusterTrackList.size());
 			posTracks[ANY_CLUSTER].fill(posTrackList.size());
 			posTracks[HAS_CLUSTER].fill(posClusterTrackList.size());

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

November 2017
August 2017
July 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use