Skip to content

Commit 3c1dc1b

Browse files
committed
refactor: more renamings
src/main/java/org/jlab/clas/timeline/histograms/FTOFandDC.java -> src/main/java/org/jlab/clas/timeline/histograms/DCandFTOF.java src/main/java/org/jlab/clas/timeline/histograms/monitor2p2GeV.java -> src/main/java/org/jlab/clas/timeline/histograms/GeneralMon.java
1 parent 6ffc5d7 commit 3c1dc1b

3 files changed

Lines changed: 20 additions & 17 deletions

File tree

src/main/java/org/jlab/clas/timeline/histograms/FTOFandDC.java renamed to src/main/java/org/jlab/clas/timeline/histograms/DCandFTOF.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import org.jlab.utils.groups.IndexedTable;
1414
import org.jlab.detector.calib.utils.ConstantsManager;
1515

16-
public class FTOFandDC {
16+
public class DCandFTOF {
1717
boolean userTimeBased;
1818
public int runNum;
1919
public String outputDir;
@@ -55,7 +55,7 @@ public class FTOFandDC {
5555
public IndexedTable ftofTable, ctofTable;
5656
public ConstantsManager ccdb;
5757

58-
public FTOFandDC(int reqrunNum, String reqOutputDir, boolean reqTimeBased) {
58+
public DCandFTOF(int reqrunNum, String reqOutputDir, boolean reqTimeBased) {
5959
runNum = reqrunNum;userTimeBased=reqTimeBased;
6060
outputDir = reqOutputDir;
6161

src/main/java/org/jlab/clas/timeline/histograms/monitor2p2GeV.java renamed to src/main/java/org/jlab/clas/timeline/histograms/GeneralMon.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
import org.jlab.utils.groups.IndexedTable;
1313
import org.jlab.detector.calib.utils.ConstantsManager;
1414

15-
public class monitor2p2GeV {
15+
/**
16+
* General Monitoring histograms (a.k.a. General Monolith)
17+
*/
18+
public class GeneralMon {
1619

1720
/**
1821
* Assume 1+6 bit groupings, one for each bit in the given
@@ -208,7 +211,7 @@ boolean testTriggerSector(int sector) {
208211
public IndexedTable rfTable, rfTableOffset;
209212
public ConstantsManager ccdb;
210213

211-
public monitor2p2GeV(int reqrunNum, String reqOutputDir, float reqEB, boolean reqTimeBased) {
214+
public GeneralMon(int reqrunNum, String reqOutputDir, float reqEB, boolean reqTimeBased) {
212215

213216
runNum = reqrunNum;EB=reqEB;userTimeBased=reqTimeBased;
214217
outputDir = reqOutputDir;

src/main/java/org/jlab/clas/timeline/run_histograms.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ public static void main(String[] args) {
3232
System.out.println("will process run number "+runNum+" from list "+filelist+" looking for up to "+maxevents+" events, beam energy setting "+EB);
3333

3434
//// instantiate histogramming classes
35-
monitor2p2GeV ana_mon = new monitor2p2GeV(runNum,outputDir,EB,useTB);
36-
FTOFandDC ana_ftof_dc = new FTOFandDC(runNum,outputDir,useTB);
37-
CTOF ana_ctof = new CTOF(runNum,outputDir,useTB);
38-
HTCC ana_htc = new HTCC(runNum,outputDir);
39-
LTCC ana_ltc = new LTCC(runNum,outputDir,EB,useTB);
40-
RICH ana_rich = new RICH(runNum,outputDir,EB,useTB);
41-
CND ana_cnd = new CND(runNum,outputDir,useTB);
42-
FT ana_ft = new FT(runNum,outputDir,useTB);
43-
BAND ana_band = new BAND(runNum,outputDir,EB,useTB);
44-
helicity helicity = new helicity();
45-
trigger trigger = new trigger();
35+
GeneralMon ana_mon = new GeneralMon(runNum,outputDir,EB,useTB);
36+
DCandFTOF ana_dc_ftof = new DCandFTOF(runNum,outputDir,useTB);
37+
CTOF ana_ctof = new CTOF(runNum,outputDir,useTB);
38+
HTCC ana_htc = new HTCC(runNum,outputDir);
39+
LTCC ana_ltc = new LTCC(runNum,outputDir,EB,useTB);
40+
RICH ana_rich = new RICH(runNum,outputDir,EB,useTB);
41+
CND ana_cnd = new CND(runNum,outputDir,useTB);
42+
FT ana_ft = new FT(runNum,outputDir,useTB);
43+
BAND ana_band = new BAND(runNum,outputDir,EB,useTB);
44+
helicity helicity = new helicity();
45+
trigger trigger = new trigger();
4646

4747
List<String> toProcessFileNames = new ArrayList<String>();
4848
File file = new File(filelist);
@@ -82,7 +82,7 @@ public static void main(String[] args) {
8282
//// call each histogramming class instance's `processEvent`
8383
ana_mon.processEvent(event);
8484
ana_ctof.processEvent(event);
85-
ana_ftof_dc.processEvent(event);
85+
ana_dc_ftof.processEvent(event);
8686
ana_htc.processEvent(event);
8787
ana_ltc.processEvent(event);
8888
ana_cnd.processEvent(event);
@@ -111,7 +111,7 @@ public static void main(String[] args) {
111111
//// call each histogramming class instance's `write`
112112
ana_mon.write();
113113
ana_ctof.write();
114-
ana_ftof_dc.write();
114+
ana_dc_ftof.write();
115115
ana_htc.write();
116116
ana_ltc.write();
117117
ana_cnd.write();

0 commit comments

Comments
 (0)