1- package org .jlab .rec .alert . constants ;
1+ package org .jlab .rec .constants ;
22
33import org .jlab .detector .calib .utils .ConstantsManager ;
44import org .jlab .detector .calib .utils .DatabaseConstantProvider ;
55import org .jlab .utils .groups .IndexedTable ;
66
77import java .util .HashMap ;
88import java .util .Map ;
9- import java .lang .Integer ;
10- import java .lang .Double ;
119
1210/**
1311 * This class loads constants from CCDB
@@ -26,20 +24,19 @@ public CalibrationConstantsLoader() {
2624
2725 // Maps for constants from database
2826 // AHDC
29- public static Map <Integer , double []> AHDC_TIME_OFFSETS = new HashMap <Integer , double [] >(); ///< AHDC Parameters for timing offsets
30- public static Map <Integer , double []> AHDC_TIME_TO_DISTANCE = new HashMap <Integer , double [] >(); ///< AHDC Parameters for time to distance
31- public static Map <Integer , double []> AHDC_RAW_HIT_CUTS = new HashMap <Integer , double [] >(); ///< AHDC Parameters for raw hit cuts
27+ public static Map <Integer , double []> AHDC_TIME_OFFSETS = new HashMap <>(); ///< AHDC Parameters for timing offsets
28+ public static Map <Integer , double []> AHDC_TIME_TO_DISTANCE = new HashMap <>(); ///< AHDC Parameters for time to distance
29+ public static Map <Integer , double []> AHDC_RAW_HIT_CUTS = new HashMap <>(); ///< AHDC Parameters for raw hit cuts
3230
3331 // ATOF
34- public static Map <Integer , double []> ATOF_EFFECTIVE_VELOCITY = new HashMap <Integer , double [] >(); ///< ATOF Parameters for effective velocity
35- public static Map <Integer , double []> ATOF_TIME_WALK = new HashMap <Integer , double [] >(); ///< ATOF Parameters for time walk
36- public static Map <Integer , double []> ATOF_ATTENUATION_LENGTH = new HashMap <Integer , double [] >(); ///< ATOF Parameters for attenuation lenght
37- public static Map <Integer , double []> ATOF_TIME_OFFSETS = new HashMap <Integer , double [] >(); ///< ATOF Parameters for timing offsets
32+ public static Map <Integer , double []> ATOF_EFFECTIVE_VELOCITY = new HashMap <>(); ///< ATOF Parameters for effective velocity
33+ public static Map <Integer , double []> ATOF_TIME_WALK = new HashMap <>(); ///< ATOF Parameters for time walk
34+ public static Map <Integer , double []> ATOF_ATTENUATION_LENGTH = new HashMap <>(); ///< ATOF Parameters for attenuation lenght
35+ public static Map <Integer , double []> ATOF_TIME_OFFSETS = new HashMap <>(); ///< ATOF Parameters for timing offsets
3836
39- public static synchronized void Load (int runno , String var , ConstantsManager manager ) {
37+ public static synchronized void Load (int runno , ConstantsManager manager ) {
4038
4139 //System.out.println("*Loading calibration constants*");
42- manager .setVariation (var );
4340
4441 IndexedTable ahdc_timeOffsets = manager .getConstants (runno , "/calibration/alert/ahdc/time_offsets" );
4542 IndexedTable ahdc_time2distance = manager .getConstants (runno , "/calibration/alert/ahdc/time_to_distance" );
0 commit comments