mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-10 20:38:51 -05:00
34 lines
748 B
C
34 lines
748 B
C
|
/*
|
||
|
*Goal is to provide a fast coinc window for rejecting si.
|
||
|
*And a way to orgainize focal plane data within slow cw.
|
||
|
*
|
||
|
*/
|
||
|
#ifndef FASTSORT_H
|
||
|
#define FASTSORT_H
|
||
|
|
||
|
#include "DataStructs.h"
|
||
|
#include <TH2.h>
|
||
|
|
||
|
class FastSort {
|
||
|
|
||
|
public:
|
||
|
FastSort(float si_windowSize, float ion_windowSize);
|
||
|
~FastSort();
|
||
|
std::vector<CoincEvent> GetFastEvents(CoincEvent& event);
|
||
|
|
||
|
private:
|
||
|
void ResetSABRE();
|
||
|
void ResetFocalPlane();
|
||
|
void ProcessSABRE(unsigned int scint_index);
|
||
|
void ProcessFocalPlane(unsigned int scint_index, unsigned int ionch_index);
|
||
|
|
||
|
float si_coincWindow, ion_coincWindow;
|
||
|
CoincEvent *event_address, slowEvent;
|
||
|
CoincEvent fastEvent, blank;
|
||
|
SabreDetector sblank;
|
||
|
FPDetector fpblank;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|