Skip to content

Commit 26d2235

Browse files
committed
bugfix
1 parent c8610b1 commit 26d2235

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

validation/advanced-tests/src/eb/EBTwoTrackTest.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
*
2020
* Analyze EB efficiencies based on Joseph's 2-particle test events.
2121
*
22-
* TODO: Inherit process/checkResults to subclasses for FD/CD/FT
23-
* TODO: Write a more general purpose test based on MC::Particle bank.
2422
* TODO: Rewrite this from scratch. Meanwhile, can't live without it.
2523
*
2624
* @author baltzell
@@ -76,22 +74,29 @@ public class EBTwoTrackTest {
7674
Map <Integer,List<Integer>> recSciMap=new HashMap<Integer,List<Integer>>();
7775
Map <Integer,List<Integer>> recTrkMap=new HashMap<Integer,List<Integer>>();
7876

79-
void assertEquals(boolean a, boolean b) {
77+
static void assertEquals(boolean a, boolean b) {
8078
if (a!=b) {
8179
System.err.println("Assertion Failed!");
8280
System.exit(3);
8381
}
8482
}
85-
void assertEquals(String msg, int a, int b) {
83+
static void assertEquals(String msg, int a, int b) {
8684
if (a!=b) {
8785
System.err.println(msg);
8886
System.exit(3);
8987
}
9088
}
9189

9290
public static void main(String[] args) {
91+
EBTwoTrackTest t = new EBTwoTrackTest();
92+
t.go();
93+
}
94+
95+
public void go() {
96+
9397
String fileName=System.getProperty("INPUTFILE");
9498
File file = new File(fileName);
99+
95100
if (!file.exists() || file.isDirectory()) {
96101
System.err.println("Cannot find input file.");
97102
assertEquals(false, true);

0 commit comments

Comments
 (0)