Print

Print


Author: [log in to unmask]
Date: Mon Sep 28 09:20:43 2015
New Revision: 3727

Log:
Remove momentum cut

Modified:
    java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java
    java/trunk/steering-files/src/main/resources/org/hps/steering/production/V0CandidateFilter.lcsim

Modified: java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java
 =============================================================================
--- java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java	(original)
+++ java/trunk/recon/src/main/java/org/hps/recon/filtering/V0CandidateFilter.java	Mon Sep 28 09:20:43 2015
@@ -18,7 +18,6 @@
 public class V0CandidateFilter extends EventReconFilter {
 
     private String _V0CandidateCollectionName = "TargetConstrainedV0Candidates";
-    private double _fullEnergyCut = 0.85;
     private double _clusterTimingCut = 2.5;
 
     private boolean _tight = false;
@@ -59,15 +58,6 @@
             if (e2.getClusters().size() == 0) {
                 skipEvent();
             }
-            // remove full energy electrons
-            double p1 = e1.getMomentum().magnitude();
-            if (p1 > _fullEnergyCut) {
-                skipEvent();
-            }
-            double p2 = e2.getMomentum().magnitude();
-            if (p2 > _fullEnergyCut) {
-                skipEvent();
-            }
 
             // calorimeter cluster timing cut
             // first CalorimeterHit in the list is the seed crystal
@@ -100,16 +90,6 @@
     }
 
     /**
-     * Maximum value for each of two electron momenta (removes full energy
-     * electrons) [GeV]
-     *
-     * @param d
-     */
-    public void setV0MomentumMax(double d) {
-        _fullEnergyCut = d;
-    }
-
-    /**
      * Setting a tight constraint requires one and only one candidate in the
      * event
      *

Modified: java/trunk/steering-files/src/main/resources/org/hps/steering/production/V0CandidateFilter.lcsim
 =============================================================================
--- java/trunk/steering-files/src/main/resources/org/hps/steering/production/V0CandidateFilter.lcsim	(original)
+++ java/trunk/steering-files/src/main/resources/org/hps/steering/production/V0CandidateFilter.lcsim	Mon Sep 28 09:20:43 2015
@@ -21,8 +21,6 @@
                 type="org.hps.recon.filtering.V0CandidateFilter">
               <!-- Name of the V0 Candidate Collection of ReconstructedParticles -->
               <v0CandidateCollectionName>TargetConstrainedV0Candidates</v0CandidateCollectionName>
-              <!-- Maximum momentum of each electron [GeV], used to remove full energy electrons -->
-              <v0MomentumMax>0.85</v0MomentumMax>
               <!-- Maximum difference in the ECal cluster times [ns]-->
               <clusterTimingCut>2.5</clusterTimingCut>
               <!-- A tight selection requires one and only one real V0 vertex -->