1
2
3
4
5
6 package org.lcsim.recon.tracking.seedtracker.strategybuilder;
7
8
9
10
11
12
13
14
15
16 public class DefaultLayerWeight {
17
18 private static final String prefix = "default_weights_";
19 private static final String suffix = ".xml";
20
21 private LayerWeight weight;
22 public DefaultLayerWeight(String detectorName){
23 try {
24
25
26
27
28
29
30
31 detectorName = detectorName.replace(".","%2E");
32 weight = LayerWeight.getLayerWeightFromResource(LayerWeight.getDefaultResourcePrefix()+prefix+detectorName+suffix);
33 } catch(Exception e) {
34 System.out.println("WARNING: could not find default layer weights for detector "+detectorName+". Falling back to empty layer weights with possibly insane default parameters.");
35 weight = new LayerWeight();
36 }
37 }
38
39
40
41
42
43
44 public LayerWeight getWeight(){
45 return weight;
46 }
47
48 }