#include <SSPReformatterAlgs.h>
Public Member Functions | |
SSPReformatterAlgs (fhicl::ParameterSet const &pset) | |
void | SSPFragmentToWaveformsAndHits (artdaq::Fragments const &rawFragments, std::vector< raw::OpDetWaveform > &opDetWaveformVector, std::vector< recob::OpHit > &opHitVector) |
std::vector< raw::OpDetWaveform > | SSPFragmentToOpDetWaveform (artdaq::Fragments const &raw) |
Construct a waveform from each trigger. More... | |
std::vector< recob::OpHit > | SSPHeaderToOpHit (artdaq::Fragments const &raw) |
void | PrintHeaderInfo (const SSPDAQ::EventHeader *daqHeader) |
Print out header information. More... | |
unsigned int | CheckAndGetNTriggers (const artdaq::Fragment &frag, const lbne::SSPFragment sspf) |
Load the milislice. More... | |
const SSPDAQ::EventHeader * | GetHeaderAndAdvance (const unsigned int *&dataPointer) |
Load the header. More... | |
uint32_t | GetPeakSum (const SSPDAQ::EventHeader *daqHeader) |
unsigned short | GetOpChannel (const SSPDAQ::EventHeader *daqHeader) |
unsigned long | GetGlobalFirstSample (const SSPDAQ::EventHeader *daqHeader) |
unsigned long | GetInternalFirstSample (const SSPDAQ::EventHeader *daqHeader) |
unsigned long | GetBaselineSum (const SSPDAQ::EventHeader *daqHeader) |
unsigned long | GetIntegratedSum (const SSPDAQ::EventHeader *daqHeader) |
unsigned int | GetPeakTime (const SSPDAQ::EventHeader *daqHeader) |
unsigned int | GetWaveformLength (const SSPDAQ::EventHeader *daqHeader) |
double | ClockFrequency () |
Return the NOvAClockFrequency. More... | |
Private Member Functions | |
raw::OpDetWaveform | ConstructWaveformAndAdvance (const SSPDAQ::EventHeader *daqHeader, const unsigned int *&dataPointer) |
Construct a waveform from the adc vector, advance the data pointer when done. More... | |
recob::OpHit | ConstructOpHit (const SSPDAQ::EventHeader *daqHeader) |
Construct an OpHit object from the daqHeader. More... | |
void | BuildOpDetChannelMap (std::string fChannelMapFile) |
Private Attributes | |
double | NOvAClockFrequency |
std::map< int, int > | theChannelMap |
int | m1 |
int | i1 |
int | i2 |
double | SPESize |
Definition at line 30 of file SSPReformatterAlgs.h.
DAQToOffline::SSPReformatterAlgs::SSPReformatterAlgs | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 26 of file SSPReformatterAlgs.cc.
|
private |
Definition at line 245 of file SSPReformatterAlgs.cc.
unsigned int DAQToOffline::SSPReformatterAlgs::CheckAndGetNTriggers | ( | const artdaq::Fragment & | frag, |
const lbne::SSPFragment | sspf | ||
) |
Load the milislice.
Definition at line 206 of file SSPReformatterAlgs.cc.
|
inline |
Return the NOvAClockFrequency.
Definition at line 68 of file SSPReformatterAlgs.h.
|
private |
Construct an OpHit object from the daqHeader.
< Derived Optical channel
< first sample time in ticks
< first sample time in microseconds
Definition at line 421 of file SSPReformatterAlgs.cc.
|
private |
Construct a waveform from the adc vector, advance the data pointer when done.
< Derived Optical channel
< first sample time in ticks
< first sample time in microseconds
Definition at line 387 of file SSPReformatterAlgs.cc.
unsigned long DAQToOffline::SSPReformatterAlgs::GetBaselineSum | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 355 of file SSPReformatterAlgs.cc.
unsigned long DAQToOffline::SSPReformatterAlgs::GetGlobalFirstSample | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 333 of file SSPReformatterAlgs.cc.
const SSPDAQ::EventHeader * DAQToOffline::SSPReformatterAlgs::GetHeaderAndAdvance | ( | const unsigned int *& | dataPointer | ) |
Load the header.
Definition at line 276 of file SSPReformatterAlgs.cc.
unsigned long DAQToOffline::SSPReformatterAlgs::GetIntegratedSum | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 363 of file SSPReformatterAlgs.cc.
unsigned long DAQToOffline::SSPReformatterAlgs::GetInternalFirstSample | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 345 of file SSPReformatterAlgs.cc.
unsigned short DAQToOffline::SSPReformatterAlgs::GetOpChannel | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 303 of file SSPReformatterAlgs.cc.
uint32_t DAQToOffline::SSPReformatterAlgs::GetPeakSum | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 289 of file SSPReformatterAlgs.cc.
unsigned int DAQToOffline::SSPReformatterAlgs::GetPeakTime | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 370 of file SSPReformatterAlgs.cc.
unsigned int DAQToOffline::SSPReformatterAlgs::GetWaveformLength | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Definition at line 378 of file SSPReformatterAlgs.cc.
void DAQToOffline::SSPReformatterAlgs::PrintHeaderInfo | ( | const SSPDAQ::EventHeader * | daqHeader | ) |
Print out header information.
Definition at line 161 of file SSPReformatterAlgs.cc.
std::vector< raw::OpDetWaveform > DAQToOffline::SSPReformatterAlgs::SSPFragmentToOpDetWaveform | ( | artdaq::Fragments const & | raw | ) |
Construct a waveform from each trigger.
Definition at line 85 of file SSPReformatterAlgs.cc.
void DAQToOffline::SSPReformatterAlgs::SSPFragmentToWaveformsAndHits | ( | artdaq::Fragments const & | rawFragments, |
std::vector< raw::OpDetWaveform > & | opDetWaveformVector, | ||
std::vector< recob::OpHit > & | opHitVector | ||
) |
Construct OpDetWaveform objects from triggers with full waveforms and construct OpHit objects from triggers which only have headers.
Definition at line 41 of file SSPReformatterAlgs.cc.
std::vector< recob::OpHit > DAQToOffline::SSPReformatterAlgs::SSPHeaderToOpHit | ( | artdaq::Fragments const & | raw | ) |
Definition at line 120 of file SSPReformatterAlgs.cc.
|
private |
Definition at line 82 of file SSPReformatterAlgs.h.
|
private |
Definition at line 83 of file SSPReformatterAlgs.h.
|
private |
Definition at line 81 of file SSPReformatterAlgs.h.
|
private |
Definition at line 78 of file SSPReformatterAlgs.h.
|
private |
Definition at line 84 of file SSPReformatterAlgs.h.
|
private |
Definition at line 79 of file SSPReformatterAlgs.h.