Package org.jlab.analysis.eventmerger
Class FilterFcup
java.lang.Object
org.jlab.analysis.eventmerger.FilterFcup
- All Implemented Interfaces:
org.jlab.jnp.hipo4.data.Worker
Hipo Reduce Worker: filters events based on beam current
calculated from integrating scalers
Inputs: minimum accepted beam current
- Author:
- devita
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilterFcup
(double min) FilterFcup
(double min, double max) FilterFcup
(double min, double max, String source) -
Method Summary
Modifier and TypeMethodDescriptionlong
clasifyEvent
(org.jlab.jnp.hipo4.data.Event event) Get Map of beam current valuesvoid
init
(org.jlab.jnp.hipo4.io.HipoReader reader) Initialize bank schemaboolean
processEvent
(org.jlab.jnp.hipo4.data.Event event) Event filter: selects events in scaler interval with beam current greater than threshold and build statistics informationvoid
setEpicsSequence
(EpicsSequence sequence) Set sequence of Epics readingsvoid
setScalerSequence
(DaqScalersSequence sequence) Set sequence of scaler readingsvoid
Show beam current histogram
-
Field Details
-
FCUP_SCALER
- See Also:
-
-
Constructor Details
-
FilterFcup
-
FilterFcup
public FilterFcup(double min, double max) -
FilterFcup
public FilterFcup(double min)
-
-
Method Details
-
init
public void init(org.jlab.jnp.hipo4.io.HipoReader reader) Initialize bank schema- Specified by:
init
in interfaceorg.jlab.jnp.hipo4.data.Worker
- Parameters:
reader
-
-
setScalerSequence
Set sequence of scaler readings- Parameters:
sequence
-
-
setEpicsSequence
Set sequence of Epics readings- Parameters:
sequence
-
-
processEvent
public boolean processEvent(org.jlab.jnp.hipo4.data.Event event) Event filter: selects events in scaler interval with beam current greater than threshold and build statistics information- Specified by:
processEvent
in interfaceorg.jlab.jnp.hipo4.data.Worker
- Parameters:
event
-- Returns:
-
clasifyEvent
public long clasifyEvent(org.jlab.jnp.hipo4.data.Event event) - Specified by:
clasifyEvent
in interfaceorg.jlab.jnp.hipo4.data.Worker
-
getCurrentMap
Get Map of beam current values- Returns:
-
showStats
public void showStats()Show beam current histogram
-