#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <map>
#include <utility>
#include <sstream>
#include <algorithm>
#include <iostream>
#include "midas.h"
#include "TGlobalData.h"
#include "TSetupData.h"
#include "TPulseIsland.h"
Go to the source code of this file.
Functions | |
static INT | module_event_sort_and_stitch (EVENT_HEADER *pheader, void *pevent) |
This method sorts pulses in time and then stitches them together. | |
static INT | module_init_sort_and_stitch () |
static bool | pulse_islands_t_comp (TPulseIsland *a, TPulseIsland *b) |
Ordering of pulse islands in time base on timestamp. | |
static void | pulse_islands_stitch (std::vector< TPulseIsland * > &pulses, unsigned int nSamples) |
Stitch islands together if second of two that are time ordered is less than expected. | |
Variables | |
HNDLE | hDB |
TGlobalData * | gData |
Object to hold data used and produced by modules throughout alcapana stage of analysis. | |
TSetupData * | gSetup |
Hardware information about digitizers and detectors to be used during alcapana stage of analysis. | |
static unsigned int | nUHSamples |
Number of samples we expect a UH CAEN pulse to be no shorter than (from ODB). | |
static unsigned int | nBUSamples |
Number of samples we expect a BU CAEN pulse to be no shorter than (from ODB). | |
static unsigned int | nUHPreSamples |
Number of samples saved before a trigger on UH CAEN (from ODB). | |
static unsigned int | nBUPreSamples |
Number of samples saved before a trigger on BU CAEN (from ODB). | |
ANA_MODULE | MCAENPulseIslandSortAndStitch_module |