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 TypeMethodDescriptionlongclasifyEvent(org.jlab.jnp.hipo4.data.Event event) Get Map of beam current valuesvoidinit(org.jlab.jnp.hipo4.io.HipoReader reader) Initialize bank schemabooleanprocessEvent(org.jlab.jnp.hipo4.data.Event event) Event filter: selects events in scaler interval with beam current greater than threshold and build statistics informationvoidsetEpicsSequence(EpicsSequence sequence) Set sequence of Epics readingsvoidsetScalerSequence(DaqScalersSequence sequence) Set sequence of scaler readingsvoidShow 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:
initin 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:
processEventin interfaceorg.jlab.jnp.hipo4.data.Worker- Parameters:
event-- Returns:
-
clasifyEvent
public long clasifyEvent(org.jlab.jnp.hipo4.data.Event event) - Specified by:
clasifyEventin interfaceorg.jlab.jnp.hipo4.data.Worker
-
getCurrentMap
-
showStats
public void showStats()Show beam current histogram
-