SPS_SABRE_EventBuilder/include/FastSort.h

34 lines
748 B
C
Raw Normal View History

2021-07-13 16:36:41 -04:00
/*
*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