Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
5e74e07
Add digi module and data overlay driver.
JeremyMcCormick Aug 18, 2020
bcb6e72
Add raw data collections to event if they don't exist.
JeremyMcCormick Aug 26, 2020
cd68813
add dependencies into hps-digi/pom.xml for readout updates
tongtongcao Sep 15, 2020
b69eec0
change the method setAll in org.hps.readout.util.RingBuffer from prot…
tongtongcao Sep 15, 2020
8d8a181
new drivers to take in pulser data collections from input file with o…
tongtongcao Sep 15, 2020
befbc89
new drivers for digitization of Ecal and hodoscope
tongtongcao Sep 15, 2020
ded656e
small modification for comments
tongtongcao Sep 15, 2020
c254f2f
small modification for org.hps.digi.DigitizationWithPulserDataMerging…
tongtongcao Sep 15, 2020
a05647b
update to take time alignment for pulser data injection between Ecal …
tongtongcao Nov 30, 2020
084f42d
add a steering file for singles-trigger readout with pulser data merging
tongtongcao Dec 1, 2020
3aebed1
Merge branch 'master' into iss225
bloodyyugo Apr 20, 2021
36f4db7
code needed for svt overlay and a fix to the pom.xml for using hps-ja…
bloodyyugo Apr 22, 2021
dacdc24
whooops here is the pom fix and another mod for svt overlay
bloodyyugo Apr 22, 2021
9636dc3
add the ReadoutOverlay.lcsim steering file
bloodyyugo Apr 22, 2021
ce71806
Merge branch 'iss225' of https://github.com/JeffersonLab/hps-java int…
tongtongcao Apr 22, 2021
ad730e7
make monitoring for kf tracks
bloodyyugo Jun 1, 2021
907ca9c
update some drivers and steering files
bloodyyugo Jun 1, 2021
2bc1e75
start setting up headless drivers for new online monitoring
bloodyyugo Jun 30, 2021
e42b500
rearrange some stuff
bloodyyugo Jul 6, 2021
fbff0ef
new track truth matching tool, and truth analysis driver
alspellm Jul 20, 2021
676a4ec
Gave much higher weight to #hits in track comparator; Loosened chi^2 …
robertprestonjohnson Aug 17, 2021
b8ba6e4
bunch of changes including adding an SvtCheckout steering driver
bloodyyugo Aug 21, 2021
c988c34
some tweaks to svt pulse plots
bloodyyugo Aug 22, 2021
d9c16bc
pulse plots were double correcting for trigphase and other offsets to…
bloodyyugo Aug 23, 2021
18e396e
minor change to plot axis
bloodyyugo Aug 23, 2021
a17002a
another minor change to axis ranges
bloodyyugo Aug 23, 2021
ebc395b
Merge branch 'master' into iss858
bloodyyugo Aug 27, 2021
f00832b
updated to plots; remove svt occupancy alarm
bloodyyugo Aug 27, 2021
ac2e2db
Merge branch 'master' into iss858
bloodyyugo Aug 28, 2021
9827022
get opening angle monitoring working with seed tracker
bloodyyugo Aug 30, 2021
f1d895d
Added method to get layer/module from millepedeID
pbutti Sep 1, 2021
74c58e0
Added code to refit Kalman tracks in 2 separate pieces
robertprestonjohnson Sep 2, 2021
8c6cc54
remove some plots
bloodyyugo Sep 7, 2021
42ae898
Fixed grabbing the GBLStripClusterData
pbutti Sep 7, 2021
20b15c4
Minor change to SimpleGBLTrajAliDriver
pbutti Sep 8, 2021
72ce74e
Added test Driver
pbutti Sep 8, 2021
b33b96e
Tentative 2021 steering file
pbutti Sep 8, 2021
fbf8092
Merge pull request #890 from JeffersonLab/iss889
cbravo135 Sep 8, 2021
3ebd9fc
Merge branch 'alignment_dev'
pbutti Sep 8, 2021
631d1c8
2021 Det at 1mm
pbutti Sep 9, 2021
844d229
Merge remote-tracking branch 'origin/iss883' into iss858
bloodyyugo Sep 9, 2021
06889ef
Protected KalmanKinkFit from crashes and added plots to KalmanKinkFit…
robertprestonjohnson Sep 9, 2021
88c683e
HotFix: removed 2019 hardcoded survey constants
pbutti Sep 10, 2021
4771287
Merge pull request #888 from JeffersonLab/iss883
pbutti Sep 10, 2021
196e113
Merge branch 'master' of https://github.com/JeffersonLab/hps-java
pbutti Sep 10, 2021
f2e18ba
Reduced Xaxis of plots
pbutti Sep 12, 2021
99bc6f9
Merge remote-tracking branch 'origin/iss883' into iss858
bloodyyugo Sep 13, 2021
0c41bc5
add a KF opening angle mon driver...needed to make some KF classes pu…
bloodyyugo Sep 14, 2021
29e0982
Early Top Alignment
pbutti Sep 15, 2021
d5d19b5
finish KF opening angle plots and some minor tweaks
bloodyyugo Sep 15, 2021
5459326
Merge remote-tracking branch 'origin/Run2021' into iss858
bloodyyugo Sep 17, 2021
b663c2b
change fee plots around
bloodyyugo Sep 17, 2021
e368b41
Updated HpsReconParticleDriver
Sep 18, 2021
f37046b
add flag and code to remove pulser and faraday triggers from monitori…
bloodyyugo Sep 21, 2021
004c96d
add dumbness to make plots print in certain order
bloodyyugo Sep 21, 2021
8c74f87
add button to save both root and pdf files
bloodyyugo Oct 5, 2021
2f63172
something weird setting aida dir in this one driver
bloodyyugo Oct 5, 2021
4279c5f
update for 2021 DAQ configure
tongtongcao Oct 21, 2021
5816c48
New detector for the 1.92 GeV running
Oct 22, 2021
1730ed9
fix bug where monitoring crashed after reconnecting and disconnecting
bloodyyugo Oct 24, 2021
4f909ad
update for 2021 DAQ configure of 1.92 GeV
tongtongcao Oct 26, 2021
90322fc
update for 2021 readout system
tongtongcao Nov 4, 2021
ad7273c
update2 for 2021 readout system
tongtongcao Nov 4, 2021
f76aed4
fix issues for MC of hodo reconstruction
tongtongcao Nov 14, 2021
d1c71c5
add more 2021 DAQ configuration versions
tongtongcao Nov 15, 2021
a65d67c
Merge branch '2021DAQAndTriggerRelatedStuffs' into Run2021
tongtongcao Nov 23, 2021
0b5c8ec
Added MomC handle
pbutti Jan 25, 2022
4da253c
Merge branch 'Run2021' of https://github.com/JeffersonLab/hps-java in…
pbutti Jan 25, 2022
c5326a5
Remove files that were accidentally added
JeremyMcCormick Feb 2, 2022
40b8b09
reset cell ID and add detector element for hits
tongtongcao Feb 8, 2022
e11d88d
Updates to online recon for 2021 run (#896)
JeremyMcCormick Feb 8, 2022
0fd1fe9
Merge pull request #897 from JeffersonLab/iss893
tongtongcao Feb 12, 2022
0795b3d
fix bug pertaining to iss899. Wrong variable was checked for null
alspellm Mar 5, 2022
32fccd5
Add Pass2 2021 detector with a coarse alignment
cbravo135 Mar 7, 2022
c2b6ad6
Use L34s u movements instead of L567S u for final p constraint
cbravo135 Mar 15, 2022
0f337b3
Merge pull request #901 from JeffersonLab/ali21
cbravo135 Mar 16, 2022
7fe247c
Merge branch 'master' of https://github.com/JeffersonLab/hps-java
pbutti Mar 19, 2022
31c80ac
Merge branch 'master' into iss225
tongtongcao Mar 21, 2022
2b46cdc
Merge pull request #902 from JeffersonLab/iss225
tongtongcao Mar 21, 2022
f0d01d2
Added a Nominal detector that has the 2019 Sensor Survey constants in…
pbutti Mar 22, 2022
019db1c
Merge branch 'master' of https://github.com/JeffersonLab/hps-java
pbutti Mar 22, 2022
2dbcb29
Merge pull request #903 from JeffersonLab/fix_survey
cbravo135 Mar 23, 2022
0d12531
Merge pull request #900 from alspellm/iss899
cbravo135 Mar 23, 2022
300d145
Attempt to interface to composed gbl trajectories
pbutti Mar 25, 2022
9af9c10
momC fix
pbutti Mar 25, 2022
aef05e5
update readout system for application of DAQ configuration
tongtongcao Mar 28, 2022
9c584f0
Merge pull request #882 from alspellm/trackTruthRelations_PR_072021
cbravo135 Apr 6, 2022
d7f3aaa
Merge branch 'master' of https://github.com/JeffersonLab/hps-java
pbutti Apr 15, 2022
079b6c7
momC fix
pbutti Mar 25, 2022
8249bcc
Merge branch 'master' into jna_composed_traj
pbutti Apr 18, 2022
e36bbf7
Minor fixes to Vertexing and SimpleGBLTraj Drivers
pbutti Apr 18, 2022
7d68452
Workaround for XXE vulnerability
cbravo135 Apr 18, 2022
0199629
Add E/p for tracks from reconstructed particles
pbutti Apr 19, 2022
ce841e1
Add support for configuration
pbutti Apr 19, 2022
451288f
Merge branch 'jna_composed_traj'
pbutti Apr 19, 2022
9f902db
Fixes and cleanup to SimpleGBLTrajAliDriver
pbutti Apr 19, 2022
f117624
Fixed merging conflicts
pbutti Apr 19, 2022
18635c1
Fix SimpleAli driver
pbutti Apr 20, 2022
0903274
Fix typo in HPS_Run2021Pass2FEE compact and lcdd files
cbravo135 Apr 21, 2022
f7d508c
Merge pull request #910 from JeffersonLab/detHotFix
cbravo135 Apr 22, 2022
684a59b
Alignment updates
Apr 26, 2022
9cb1bd0
Added uresiduals vs v
pbutti Apr 27, 2022
d7fabae
Merge pull request #909 from JeffersonLab/Run2021
cbravo135 Apr 28, 2022
8ad67d9
Merge pull request #911 from JeffersonLab/iss858
cbravo135 May 5, 2022
ade8b2f
Merge pull request #907 from JeffersonLab/xxe_fix
JeremyMcCormick May 6, 2022
0b21a83
Merge branch 'master' into jna_composed_traj
pbutti May 6, 2022
9a78626
Update SimpleGBLTrajAliDriver.java
pbutti May 10, 2022
097fb88
Merge pull request #908 from JeffersonLab/jna_composed_traj
pbutti May 10, 2022
5366ada
Pass2FEE 2021 geometry with fieldmap for 1.92 beam energy
cbravo135 May 12, 2022
96ce129
Merge pull request #913 from JeffersonLab/newDet
JeremyMcCormick Jun 15, 2022
2544ff8
New detector with improved alignment for 2021 data.
cbravo135 Jun 18, 2022
c77b8c2
Merge pull request #916 from JeffersonLab/ali21
cbravo135 Jun 21, 2022
6880545
Merge pull request #905 from JeffersonLab/iss904
tongtongcao Jun 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ hs_err_pid*
.settings
nbproject

# Maven target dir
target

# Diff output
*.diff

Expand All @@ -40,4 +37,11 @@ ETBuffer

deps.txt

# directories to ignore
scratch/
bin/
target/


# editor swap files
.*.swp
1 change: 1 addition & 0 deletions analysis/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,12 @@ public class DataTriggerSim2019Driver extends Driver {
// Define trigger simulation modules.
private boolean[] pairTriggerEnabled = new boolean[4];
private boolean[] singlesTriggerEnabled = new boolean[4];
//2021 update
private boolean[] singlesXYMinMaxEnabled = new boolean[4];
private boolean[] singlesMollerModeEnabled = new boolean[4];

private boolean[][] pairCutsEnabled = new boolean[4][12];
private boolean[][] singlesCutsEnabled = new boolean[4][9];
private boolean[][] singlesCutsEnabled = new boolean[4][12];
private TriggerModule2019[] singlesTrigger = new TriggerModule2019[4];
private TriggerModule2019[] pairsTrigger = new TriggerModule2019[4];

Expand All @@ -135,6 +139,10 @@ public class DataTriggerSim2019Driver extends Driver {
private static final int L2_MATCHING = 3;
private static final int L1L2_GEO_MATCHING = 4;
private static final int HODOECAL_GEO_MATCHING = 5;
//2021 update
private static final int X_MAX = 6;
private static final int Y_MIN = 7;
private static final int Y_MAX = 8;

private static final int TIME_COINCIDENCE = 0;
private static final int ENERGY_SUM = 1;
Expand Down Expand Up @@ -254,6 +262,10 @@ public void actionPerformed(ActionEvent e) {
// Set the trigger enabled status.
singlesTriggerEnabled[i] = singles[i].isEnabled();
pairTriggerEnabled[i] = pairs[i].isEnabled();

//2021 update
singlesXYMinMaxEnabled[i] = singles[i].isSinglesXYMinMaxEnabled();
singlesMollerModeEnabled[i] = singles[i].isSinglesMollerModeEnabled();

// Set the singles cut statuses.
singlesCutsEnabled[i][ENERGY_MIN] = singles[i].getEnergyMinCutConfig().isEnabled();
Expand All @@ -267,6 +279,10 @@ public void actionPerformed(ActionEvent e) {
singlesCutsEnabled[i][3 + L1L2_GEO_MATCHING] = singles[i].getL1L2GeoMatchingConfig().isEnabled();
singlesCutsEnabled[i][3 + HODOECAL_GEO_MATCHING] = singles[i].getHodoEcalGeoMatchingConfig()
.isEnabled();
//2021 update
singlesCutsEnabled[i][3 + X_MAX] = singles[i].getXMaxCutConfig().isEnabled();
singlesCutsEnabled[i][3 + Y_MIN] = singles[i].getYMinCutConfig().isEnabled();
singlesCutsEnabled[i][3 + Y_MAX] = singles[i].getYMaxCutConfig().isEnabled();

// Set the pair cut statuses.
pairCutsEnabled[i][ENERGY_MIN] = pairs[i].getEnergyMinCutConfig().isEnabled();
Expand All @@ -283,10 +299,12 @@ public void actionPerformed(ActionEvent e) {
pairCutsEnabled[3][3 + PAIR_L1_MATCHING] = pairs[3].getL1MatchingConfig().isEnabled();
pairCutsEnabled[3][3 + PAIR_L2_MATCHING] = pairs[3].getL2MatchingConfig().isEnabled();
pairCutsEnabled[3][3 + PAIR_L1L2_GEO_MATCHING] = pairs[3].getL1L2GeoMatchingConfig().isEnabled();
pairCutsEnabled[3][3 + PAIR_HODOECAL_GEO_MATCHING] = pairs[3].getHodoEcalGeoMatchingConfig().isEnabled();
pairCutsEnabled[3][3 + PAIR_HODOECAL_GEO_MATCHING] = pairs[3].getHodoEcalGeoMatchingConfig().isEnabled();

// In evio, -31 for cluster xmin is written as 33 during DAQ since variable is not set as unsigned
if((int)singlesTrigger[0].getCutValue(TriggerModule2019.CLUSTER_XMIN) == 33) singlesTrigger[0].setCutValue(TriggerModule2019.CLUSTER_XMIN, -31);


}
});
}
Expand Down Expand Up @@ -568,6 +586,10 @@ private <E> SimTriggerModule2019<E> constructTriggers(List<E> clusters, Class<E>
boolean passHodoL2Matching = false;
boolean passHodoL1L2Matching = false;
boolean passHodoEcalMatching = false;
//2021 update
boolean passClusterXMax = true;
boolean passClusterYMin = true;
boolean passClusterYMax = true;

List<CalorimeterHit> hodoHitList = new ArrayList<CalorimeterHit>();
Map<Integer, HodoscopePattern> patternMap = new HashMap<Integer, HodoscopePattern>();
Expand All @@ -587,7 +609,18 @@ private <E> SimTriggerModule2019<E> constructTriggers(List<E> clusters, Class<E>
passClusterHigh = singlesTrigger[triggerNum].clusterTotalEnergyCutHigh(c);
passHitCount = singlesTrigger[triggerNum].clusterHitCountCut(c);
passClusterXMin = singlesTrigger[triggerNum].clusterXMinCut(c);
passClusterPDE = singlesTrigger[triggerNum].clusterPDECut(c);
//2021 update
if(singlesMollerModeEnabled[triggerNum])
passClusterPDE = singlesTrigger[triggerNum].clusterMollerPDECut(c);
else
passClusterPDE = singlesTrigger[triggerNum].clusterPDECut(c);

//2021 update
if(singlesXYMinMaxEnabled[1]) {
passClusterXMax = singlesTrigger[triggerNum].clusterXMaxCut(c);
passClusterYMin = singlesTrigger[triggerNum].clusterYMinCut(c);
passClusterYMax = singlesTrigger[triggerNum].clusterYMaxCut(c);
}

if (topnbot == 1) {
// Save valid hodoscope hits into a list
Expand Down Expand Up @@ -665,7 +698,18 @@ else if (cluster instanceof VTPCluster) {
passClusterHigh = singlesTrigger[triggerNum].clusterTotalEnergyCutHigh(c);
passHitCount = singlesTrigger[triggerNum].clusterHitCountCut(c);
passClusterXMin = singlesTrigger[triggerNum].clusterXMinCut(c);
passClusterPDE = singlesTrigger[triggerNum].clusterPDECut(c);
//2021 update
if(singlesMollerModeEnabled[triggerNum])
passClusterPDE = singlesTrigger[triggerNum].clusterMollerPDECut(c);
else
passClusterPDE = singlesTrigger[triggerNum].clusterPDECut(c);

//2021 update
if(singlesXYMinMaxEnabled[1]) {
passClusterXMax = singlesTrigger[triggerNum].clusterXMaxCut(c);
passClusterYMin = singlesTrigger[triggerNum].clusterYMinCut(c);
passClusterYMax = singlesTrigger[triggerNum].clusterYMaxCut(c);
}

if (topnbot == 1) {
// Save valid hodoscope hits into a list
Expand Down Expand Up @@ -744,6 +788,11 @@ else if (cluster instanceof VTPCluster) {
trigger.setStateHodoL2Matching(passHodoL2Matching);
trigger.setStateHodoL1L2Matching(passHodoL1L2Matching);
trigger.setStateHodoEcalMatching(passHodoEcalMatching);

//2021 update
trigger.setStateClusterXMax(passClusterXMax);
trigger.setStateClusterYMin(passClusterYMin);
trigger.setStateClusterYMax(passClusterYMax);

if (verbose) {
System.out.printf("\t N >= %1.0f :: [ %5b ]%n",
Expand All @@ -762,6 +811,12 @@ else if (cluster instanceof VTPCluster) {
System.out.printf("\t HodoL2Matching :: [ %5b ]%n", passHodoL2Matching);
System.out.printf("\t HodoL1L2Matching :: [ %5b ]%n", passHodoL1L2Matching);
System.out.printf("\t HodoEcalMatching :: [ %5b ]%n", passHodoEcalMatching);
System.out.printf("\t%-5.0f <= X :: [ %5b ]%n",
singlesTrigger[triggerNum].getCutValue(TriggerModule2019.CLUSTER_XMAX), passClusterXMax);
System.out.printf("\t%-5.0f <= X :: [ %5b ]%n",
singlesTrigger[triggerNum].getCutValue(TriggerModule2019.CLUSTER_YMIN), passClusterYMin);
System.out.printf("\t%-5.0f <= X :: [ %5b ]%n",
singlesTrigger[triggerNum].getCutValue(TriggerModule2019.CLUSTER_YMAX), passClusterYMax);
}

// A trigger will only be reported by the VTP if it
Expand Down Expand Up @@ -794,6 +849,17 @@ else if (cluster instanceof VTPCluster) {
if (singlesCutsEnabled[triggerNum][3 + HODOECAL_GEO_MATCHING] && !trigger.getStateHodoEcalMatching()) {
continue triggerLoop;
}

//2021 update
if (singlesCutsEnabled[triggerNum][3 + X_MAX] && !trigger.getStateClusterXMax()) {
continue triggerLoop;
}
if (singlesCutsEnabled[triggerNum][3 + Y_MIN] && !trigger.getStateClusterYMin()) {
continue triggerLoop;
}
if (singlesCutsEnabled[triggerNum][3 + Y_MAX] && !trigger.getStateClusterYMax()) {
continue triggerLoop;
}

// Store the trigger.
if(singlesTriggerEnabled[triggerNum] == true) singlesTriggers.get(triggerNum).add(trigger);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1475,25 +1475,40 @@ private int compareSimulatedToHardwareSingles(Collection<Trigger<?>> simTriggers
continue hardwareLoop;
}

if (hardwareSinglesTrigger.passHodo1() != simSinglesTrigger.getStateHodoL1Matching()) {
if (!singlesTrigger[triggerType.getTriggerNum()].getCutEn(TriggerModule2019.SINGLES_MOLLERMODE_EN) && hardwareSinglesTrigger.passHodo1() != simSinglesTrigger.getStateHodoL1Matching()) {
logger.printf(" [ fail; Hodo L1 ]%n");
continue hardwareLoop;
}

if (hardwareSinglesTrigger.passHodo2() != simSinglesTrigger.getStateHodoL2Matching()) {
if (!singlesTrigger[triggerType.getTriggerNum()].getCutEn(TriggerModule2019.SINGLES_MOLLERMODE_EN) && hardwareSinglesTrigger.passHodo2() != simSinglesTrigger.getStateHodoL2Matching()) {
logger.printf(" [ fail; Hodo L2 ]%n");
continue hardwareLoop;
}

if (hardwareSinglesTrigger.passHodoGeo() != simSinglesTrigger.getStateHodoL1L2Matching()) {
if (!singlesTrigger[triggerType.getTriggerNum()].getCutEn(TriggerModule2019.SINGLES_MOLLERMODE_EN) && hardwareSinglesTrigger.passHodoGeo() != simSinglesTrigger.getStateHodoL1L2Matching()) {
logger.printf(" [ fail; Hodo L1L2 ]%n");
continue hardwareLoop;
}

if (hardwareSinglesTrigger.passHodoECal() != simSinglesTrigger.getStateHodoEcalMatching()) {
if (!singlesTrigger[triggerType.getTriggerNum()].getCutEn(TriggerModule2019.SINGLES_MOLLERMODE_EN) && hardwareSinglesTrigger.passHodoECal() != simSinglesTrigger.getStateHodoEcalMatching()) {
logger.printf(" [ fail; Hodo Ecal ]%n");
continue hardwareLoop;
}

//2021 update
if (hardwareSinglesTrigger.passXMax() != simSinglesTrigger.getStateClusterXMax()) {
logger.printf(" [ fail; x max ]%n");
continue hardwareLoop;
}
if (hardwareSinglesTrigger.passYMin() != simSinglesTrigger.getStateClusterYMin()) {
logger.printf(" [ fail; y min ]%n");
continue hardwareLoop;
}
if (hardwareSinglesTrigger.passYMax() != simSinglesTrigger.getStateClusterYMax()) {
logger.printf(" [ fail; y max ]%n");
continue hardwareLoop;
}


} else {
throw new IllegalArgumentException("Trigger type is unrecongnized or simulated and "
Expand Down Expand Up @@ -1555,28 +1570,34 @@ && getTriggerTime(simTrigger) <= triggerWindowEnd) {
System.out.println("software trigger: ");
System.out.println("\ttime" + getTriggerTime(simTrigger));
System.out.println(
"\tstate of Emin, state of Emax, state of hit count, state of xmin, state of PED, state of Hodo L1, state of Hodo L2, state of Hodo L1L2, state of Hodo Ecal: "
"\tstate of Emin, state of Emax, state of hit count, state of xmin, state of PED, state of Hodo L1, state of Hodo L2, state of Hodo L1L2, state of Hodo Ecal, state of xmax, state of ymin, state of ymax: "
+ simSinglesTrigger.getStateClusterEnergyLow() + ", "
+ simSinglesTrigger.getStateClusterEnergyHigh() + ", "
+ simSinglesTrigger.getStateHitCount() + ", " + simSinglesTrigger.getStateClusterXMin()
+ ", " + simSinglesTrigger.getStateClusterPDE() + ", "
+ simSinglesTrigger.getStateHodoL1Matching() + ", "
+ simSinglesTrigger.getStateHodoL2Matching() + ", "
+ simSinglesTrigger.getStateHodoL1L2Matching() + ", "
+ simSinglesTrigger.getStateHodoEcalMatching());
+ simSinglesTrigger.getStateHodoEcalMatching() + ", "
+ simSinglesTrigger.getStateClusterXMax() + ", "
+ simSinglesTrigger.getStateClusterYMin() + ", "
+ simSinglesTrigger.getStateClusterYMax());

System.out.println("hardware triggers: ");
for (VTPSinglesTrigger hardwareTrigger : hardwareTriggers) {
VTPSinglesTrigger hardwareSinglesTrigger = (VTPSinglesTrigger) hardwareTrigger;
System.out.println("\ttime" + hardwareSinglesTrigger.getTime());
System.out.println(
"\tstate of Emin, state of Emax, state of hit count, state of xmin, state of PED, state of Hodo L1, state of Hodo L2, state of Hodo L1L2, state of Hodo Ecal: "
"\tstate of Emin, state of Emax, state of hit count, state of xmin, state of PED, state of Hodo L1, state of Hodo L2, state of Hodo L1L2, state of Hodo Ecal, state of xmax, state of ymin, state of ymax: "
+ hardwareSinglesTrigger.passEMin() + ", " + hardwareSinglesTrigger.passEMax()
+ ", " + hardwareSinglesTrigger.passNMin() + ", "
+ hardwareSinglesTrigger.passXMin() + ", " + hardwareSinglesTrigger.passPDET()
+ ", " + hardwareSinglesTrigger.passHodo1() + ", "
+ hardwareSinglesTrigger.passHodo2() + ", " + hardwareSinglesTrigger.passHodoGeo()
+ ", " + hardwareSinglesTrigger.passHodoECal());
+ ", " + hardwareSinglesTrigger.passHodoECal() + ", "
+ hardwareSinglesTrigger.passXMax() + ", "
+ hardwareSinglesTrigger.passYMin() + ", "
+ hardwareSinglesTrigger.passYMax());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public class SinglesTrigger2019<E> extends Trigger<E> {
private static final String HODO_L2_MATCHING = "hodoL2Matching";
private static final String HODO_L1L2_MATCHING = "hodoL1L2Matching";
private static final String HODO_ECAL_MATCHING = "hodoEcalMatching";

//2021 update
private static final String CLUSTER_XMAX = TriggerModule2019.CLUSTER_XMAX;
private static final String CLUSTER_YMIN = TriggerModule2019.CLUSTER_YMIN;
private static final String CLUSTER_YMAX = TriggerModule2019.CLUSTER_YMAX;

// Source of hodoscope
private List<CalorimeterHit> hodoHitList;
Expand Down Expand Up @@ -67,6 +72,11 @@ public SinglesTrigger2019(E source, List<CalorimeterHit> hodoHitList, Map<Intege
addValidCut(HODO_L2_MATCHING);
addValidCut(HODO_L1L2_MATCHING);
addValidCut(HODO_ECAL_MATCHING);

//2021 update
addValidCut(CLUSTER_XMAX);
addValidCut(CLUSTER_YMIN);
addValidCut(CLUSTER_YMAX);
}

/**
Expand Down Expand Up @@ -298,6 +308,68 @@ public boolean getStateHodoEcalMatching() {
public void setStateHodoEcalMatching(boolean state) {
setCutState(HODO_ECAL_MATCHING, state);
}

//2021 update
/**
* Gets whether cluster xmax was met.
*
* @return Returns <code>true</code> if the cut was met and <code>false</code>
* otherwise.
*/
public boolean getStateClusterXMax() {
return getCutState(CLUSTER_XMAX);
}

/**
* Sets whether the condition for cluster xmax was met.
*
* @param state - <code>true</code> indicates that the cut conditions were met
* and <code>false</code> that they were not.
*/
public void setStateClusterXMax(boolean state) {
setCutState(CLUSTER_XMAX, state);
}


/**
* Gets whether cluster ymin was met.
*
* @return Returns <code>true</code> if the cut was met and <code>false</code>
* otherwise.
*/
public boolean getStateClusterYMin() {
return getCutState(CLUSTER_YMIN);
}

/**
* Sets whether the condition for cluster ymin was met.
*
* @param state - <code>true</code> indicates that the cut conditions were met
* and <code>false</code> that they were not.
*/
public void setStateClusterYMin(boolean state) {
setCutState(CLUSTER_YMIN, state);
}

/**
* Gets whether cluster ymax was met.
*
* @return Returns <code>true</code> if the cut was met and <code>false</code>
* otherwise.
*/
public boolean getStateClusterYMax() {
return getCutState(CLUSTER_YMAX);
}

/**
* Sets whether the condition for cluster ymax was met.
*
* @param state - <code>true</code> indicates that the cut conditions were met
* and <code>false</code> that they were not.
*/
public void setStateClusterYMax(boolean state) {
setCutState(CLUSTER_YMAX, state);
}

@Override
public String toString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public Document createDocument() throws IOException, JDOMException {
final byte[] bytes = this.getFieldValue("content");
final InputStream inputStream = new ByteArrayInputStream(bytes);
final SAXBuilder builder = new SAXBuilder();
builder.setExpandEntities(false);

builder.setValidation(false);
return builder.build(inputStream);
}
Expand Down
Loading