|
19 | 19 | * |
20 | 20 | * Analyze EB efficiencies based on Joseph's 2-particle test events. |
21 | 21 | * |
22 | | - * TODO: Inherit process/checkResults to subclasses for FD/CD/FT |
23 | | - * TODO: Write a more general purpose test based on MC::Particle bank. |
24 | 22 | * TODO: Rewrite this from scratch. Meanwhile, can't live without it. |
25 | 23 | * |
26 | 24 | * @author baltzell |
@@ -76,22 +74,29 @@ public class EBTwoTrackTest { |
76 | 74 | Map <Integer,List<Integer>> recSciMap=new HashMap<Integer,List<Integer>>(); |
77 | 75 | Map <Integer,List<Integer>> recTrkMap=new HashMap<Integer,List<Integer>>(); |
78 | 76 |
|
79 | | - void assertEquals(boolean a, boolean b) { |
| 77 | + static void assertEquals(boolean a, boolean b) { |
80 | 78 | if (a!=b) { |
81 | 79 | System.err.println("Assertion Failed!"); |
82 | 80 | System.exit(3); |
83 | 81 | } |
84 | 82 | } |
85 | | - void assertEquals(String msg, int a, int b) { |
| 83 | + static void assertEquals(String msg, int a, int b) { |
86 | 84 | if (a!=b) { |
87 | 85 | System.err.println(msg); |
88 | 86 | System.exit(3); |
89 | 87 | } |
90 | 88 | } |
91 | 89 |
|
92 | 90 | public static void main(String[] args) { |
| 91 | + EBTwoTrackTest t = new EBTwoTrackTest(); |
| 92 | + t.go(); |
| 93 | + } |
| 94 | + |
| 95 | + public void go() { |
| 96 | + |
93 | 97 | String fileName=System.getProperty("INPUTFILE"); |
94 | 98 | File file = new File(fileName); |
| 99 | + |
95 | 100 | if (!file.exists() || file.isDirectory()) { |
96 | 101 | System.err.println("Cannot find input file."); |
97 | 102 | assertEquals(false, true); |
|
0 commit comments