985 const EVENT *
event = evt.
fEvent;
986 const int16_t *
start =
event->StartPix;
997 const uint16_t roi =
event->Roi;
1009 const shared_ptr<DrsCalibration> cal = run.
calib;
1013 vector<float> vec((1440+160)*roi);
1014 cal->Apply(vec.data(),
event->Adc_Data,
start, roi);
1029 vector<char> data1(
sizeof(EVENT)+vec.size()*
sizeof(float));
1030 memcpy(data1.data(), event,
sizeof(EVENT));
1031 memcpy(data1.data()+
sizeof(EVENT), vec.data(), vec.size()*
sizeof(float));
1042 edat.runNum = evt.
runNum;
1043 edat.evNum = evt.
evNum;
1053 edat.evNum = evt.
evNum;
1054 edat.runNum = evt.
runNum;
1085 l.splice(l.begin(), l, --it);
1088 memcpy(l.front().data(),
start, 1440*
sizeof(int16_t));
static Step CorrectStep(float *vec, uint16_t nch, uint16_t roi, const int16_t *prev, const int16_t *start, const int16_t offset, const uint16_t *map=NULL)
static void SlidingAverage(float *const vec, const uint32_t roi, const uint16_t w)
Adds some functionality to boost::posix_time::ptime for our needs.
Queue< tuple< Time, uint32_t, EventData > > fQueueEventData
std::shared_ptr< RUN_CTRL2 > runCtrl
pair< float, EventData > fMaxEvent
static double GetPixelStats(float *ptr, const float *data, uint16_t roi, uint16_t begskip=0, uint16_t endskip=0)
std::list< std::array< int16_t, 1440 > > prevStart
std::shared_ptr< DrsCalibration > calib
Queue< vector< char > > fQueueRawData
static void RemoveSpikes4(float *ptr, uint32_t roi)