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  September 2015

HPS-SVN September 2015

Subject:

r3718 - /java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java

From:

[log in to unmask]

Reply-To:

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

Date:

Sat, 26 Sep 2015 00:10:13 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (128 lines)

Author: [log in to unmask]
Date: Fri Sep 25 17:10:09 2015
New Revision: 3718

Log:
A Driver to select trident candidates.

Added:
    java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java
      - copied, changed from r3679, java/trunk/recon/src/main/java/org/hps/recon/filtering/MollerCandidateFilter.java

Copied: java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java (from r3679, java/trunk/recon/src/main/java/org/hps/recon/filtering/MollerCandidateFilter.java)
 =============================================================================
--- java/trunk/recon/src/main/java/org/hps/recon/filtering/MollerCandidateFilter.java	(original)
+++ java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java	Fri Sep 25 17:10:09 2015
@@ -6,22 +6,18 @@
 import org.lcsim.event.ReconstructedParticle;
 
 /**
- * Class to strip off Moller candidates. Currently defined as: e- e- events with
+ * Class to strip off trident candidates. Currently defined as: e+ e- events with
  * tracks matched to clusters. Neither electron can be a full-energy candidate
- * (momentum less than _fullEnergyCut [0.85GeV]) but the momentum sum must be
- * consistent with the beam energy (greater than _mollerMomentumSumMin and less
- * than _mollerMomentumSumMax). The Ecal cluster times must be within _timingCut
- * [2.5ns] of each other.
+ * (momentum less than _fullEnergyCut [0.85GeV]). The Ecal cluster times must be 
+ * within _timingCut [2.5ns] of each other.
  *
  * @author Norman A Graf
  *
  * @version $Id:
  */
-public class MollerCandidateFilter extends EventReconFilter {
+public class V0CandidateFilter extends EventReconFilter {
 
-    private String _mollerCandidateCollectionName = "TargetConstrainedMollerCandidates";
-    private double _mollerMomentumSumMin = 0.85;
-    private double _mollerMomentumSumMax = 1.3;
+    private String _V0CandidateCollectionName = "TargetConstrainedV0Candidates";
     private double _fullEnergyCut = 0.85;
     private double _clusterTimingCut = 2.5;
 
@@ -30,22 +26,22 @@
     @Override
     protected void process(EventHeader event) {
         incrementEventProcessed();
-        if (!event.hasCollection(ReconstructedParticle.class, _mollerCandidateCollectionName)) {
+        if (!event.hasCollection(ReconstructedParticle.class, _V0CandidateCollectionName)) {
             skipEvent();
         }
-        List<ReconstructedParticle> mollerCandidates = event.get(ReconstructedParticle.class, _mollerCandidateCollectionName);
-        if (mollerCandidates.size() == 0) {
+        List<ReconstructedParticle> V0Candidates = event.get(ReconstructedParticle.class, _V0CandidateCollectionName);
+        if (V0Candidates.size() == 0) {
             skipEvent();
         }
 
         // tight requires ONLY ONE real vertex fit 
         if (_tight) {
-            if (mollerCandidates.size() != 2) {
+            if (V0Candidates.size() != 2) {
                 skipEvent();
             }
         }
 
-        for (ReconstructedParticle rp : mollerCandidates) {
+        for (ReconstructedParticle rp : V0Candidates) {
 
             ReconstructedParticle e1 = null;
             ReconstructedParticle e2 = null;
@@ -73,12 +69,6 @@
                 skipEvent();
             }
 
-            // require momentum sum to be approximately the beam energy
-            double pSum = p1 + p2;
-            if (pSum < _mollerMomentumSumMin || pSum > _mollerMomentumSumMax) {
-                skipEvent();
-            }
-
             // calorimeter cluster timing cut
             // first CalorimeterHit in the list is the seed crystal
             double t1 = e1.getClusters().get(0).getCalorimeterHits().get(0).getTime();
@@ -101,30 +91,12 @@
     }
 
     /**
-     * Name of Moller Candidate ReconstructedParticle Collection Name
+     * Name of V0 Candidate ReconstructedParticle Collection Name
      *
      * @param s
      */
-    public void setMollerCandidateCollectionName(String s) {
-        _mollerCandidateCollectionName = s;
-    }
-
-    /**
-     * Minimum value for the sum of the two electron momenta [GeV]
-     *
-     * @param d
-     */
-    public void setMollerMomentumSumMin(double d) {
-        _mollerMomentumSumMin = d;
-    }
-
-    /**
-     * Maximum value for the sum of the two electron momenta [GeV]
-     *
-     * @param d
-     */
-    public void setMollerMomentumSumMax(double d) {
-        _mollerMomentumSumMax = d;
+    public void setV0CandidateCollectionName(String s) {
+        _V0CandidateCollectionName = s;
     }
 
     /**
@@ -133,7 +105,7 @@
      *
      * @param d
      */
-    public void setMollerMomentumMax(double d) {
+    public void setV0MomentumMax(double d) {
         _fullEnergyCut = d;
     }
 

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