Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public class SinglesTrigger2019ReadoutDriver extends TriggerDriver {
// ==============================================================
// ==== LCIO Collections ========================================
// ==============================================================
/**
* Indicates singles trigger type. Corresponding DAQ configuration is accessed by DAQ
* configuration system, and applied into readout.
*/
private String triggerType = "singles3";

/**
* Indicates the name of the calorimeter geometry object. This is
Expand Down Expand Up @@ -85,6 +90,7 @@ public class SinglesTrigger2019ReadoutDriver extends TriggerDriver {
*/
private boolean geometryMatchingRequired = false;


// ==============================================================
// ==== AIDA Plots ==============================================
// ==============================================================
Expand Down Expand Up @@ -114,7 +120,10 @@ public void setDaqConfigurationAppliedintoReadout(boolean state) {
public void actionPerformed(ActionEvent e) {
// Get the DAQ configuration.
DAQConfig2019 daq = ConfigurationManager2019.getInstance();
triggerModule.loadDAQConfiguration(daq.getVTPConfig().getSingles3Config());
if(triggerType.contentEquals("singles3")) triggerModule.loadDAQConfiguration(daq.getVTPConfig().getSingles3Config());
else if(triggerType.equals("singles2")) triggerModule.loadDAQConfiguration(daq.getVTPConfig().getSingles2Config());
else if(triggerType.equals("singles1")) triggerModule.loadDAQConfiguration(daq.getVTPConfig().getSingles1Config());
else if(triggerType.equals("singles0")) triggerModule.loadDAQConfiguration(daq.getVTPConfig().getSingles0Config());
}
});
}
Expand Down Expand Up @@ -276,6 +285,10 @@ public void setInputCollectionNameHodo(String collection) {
inputCollectionNameHodo = collection;
}

public void setTriggerType(String trigger) {
triggerType = trigger;
}

/**
* Sets the beam energy for the trigger. This is only used to
* determine the range of the x-axis for trigger plots.
Expand Down
Loading