GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
The TGRSIDataParser is the DAQ dependent part of GRSISort. It takes a "DAQ-dependent"-flavoured MIDAS file and converts it into a generic TFragment that the rest of GRSISort can deal with. This is where event word masks are applied, and any changes to the event format must be implemented.
Definition at line 44 of file TGRSIDataParser.h.
Public Types | |
enum class | EBank { kWFDN = 0 , kGRF1 = 1 , kGRF2 = 2 , kGRF3 = 3 , kGRF4 = 4 , kFME0 = 5 , kFME1 = 6 , kFME2 = 7 , kFME3 = 8 , kMADC = 9 , kEMMT = 10 } |
enum class | EDataParserState { kGood , kBadHeader , kMissingWords , kBadScalerLowTS , kBadScalerValue , kBadScalerHighTS , kBadScalerType , kBadTriggerId , kBadLowTS , kBadHighTS , kSecondHeader , kWrongNofWords , kNotSingleCfd , kSizeMismatch , kBadFooter , kFault , kMissingPsd , kMissingCfd , kMissingCharge , kBadBank , kBadModuleType , kEndOfData , kBadRFScalerWord , kUndefined } |
Public Member Functions | |
TGRSIDataParser () | |
TGRSIDataParser (const TGRSIDataParser &)=default | |
TGRSIDataParser (TGRSIDataParser &&) noexcept=default | |
~TGRSIDataParser () override=default | |
virtual std::shared_ptr< ThreadsafeQueue< std::shared_ptr< const TFragment > > > & | AddGoodOutputQueue (size_t maxSize=50000) |
virtual std::shared_ptr< ThreadsafeQueue< std::shared_ptr< const TBadFragment > > > & | BadOutputQueue () |
int | CaenPhaToFragment (uint32_t *data, int size, std::shared_ptr< TMidasEvent > &event) |
int | CaenPsdToFragment (uint32_t *data, int size, std::shared_ptr< TMidasEvent > &event) |
virtual void | ClearQueue () |
int | EightPIDataToFragment (uint32_t stream, uint32_t *data, int size, unsigned int midasSerialNumber=0, time_t midasTime=0) |
int | EmmaMadcDataToFragment (const uint32_t *data, int size, std::shared_ptr< TMidasEvent > &event) |
int | EmmaRawDataToFragment (uint32_t *data, int size, std::shared_ptr< TMidasEvent > &event) |
int | EmmaSumDataToFragment (uint32_t *data, int size, std::shared_ptr< TMidasEvent > &event) |
int | EmmaTdcDataToFragment (uint32_t *data, int size, std::shared_ptr< TMidasEvent > &event) |
int | EPIXToScalar (float *data, int size, unsigned int midasSerialNumber=0, time_t midasTime=0) |
int | GriffinDataToFragment (uint32_t *data, int size, EBank bank, unsigned int midasSerialNumber=0, time_t midasTime=0) |
int | GriffinDataToPPGEvent (uint32_t *data, int size, unsigned int midasSerialNumber=0, time_t midasTime=0) |
int | GriffinDataToScalerEvent (uint32_t *data, int address) |
virtual size_t | ItemsPushed () |
TGRSIDataParser & | operator= (const TGRSIDataParser &)=delete |
TGRSIDataParser & | operator= (TGRSIDataParser &&) noexcept=delete |
virtual std::string | OutputQueueStatus () |
int | Process (std::shared_ptr< TRawEvent >) override |
int | ProcessGriffin (uint32_t *data, const int &size, const EBank &bank, std::shared_ptr< TMidasEvent > &event) |
void | Push (std::vector< std::shared_ptr< ThreadsafeQueue< std::shared_ptr< const TFragment > > > > &queues, const std::shared_ptr< TFragment > &frag) |
void | Push (ThreadsafeQueue< std::shared_ptr< const TBadFragment > > &queue, const std::shared_ptr< TBadFragment > &frag) |
int | RFScalerToFragment (uint32_t *data, int size, const std::shared_ptr< TFragment > &frag) |
virtual std::shared_ptr< ThreadsafeQueue< std::shared_ptr< TEpicsFrag > > > & | ScalerOutputQueue () |
int | SCLRToScalar (uint32_t *data, int size, unsigned int midasSerialNumber=0, time_t midasTime=0) |
virtual void | SetFinished () |
virtual void | SetNoWaveForms (bool temp=true) |
virtual void | SetRecordDiag (bool temp=true) |
virtual void | SetStatusVariables (std::atomic_size_t *itemsPopped, std::atomic_long *inputSize) |
int | TigressDataToFragment (uint32_t *data, int size, std::shared_ptr< TMidasEvent > &event) |
Protected Member Functions | |
TChannel * | Channel () const |
bool | FragmentHasWaveform () const |
void | FragmentHasWaveform (const bool &val) |
TFragmentMap | FragmentMap () const |
std::vector< std::shared_ptr< ThreadsafeQueue< std::shared_ptr< const TFragment > > > > & | GoodOutputQueues () |
uint64_t | LastDaqId () const |
uint64_t | LastNetworkPacket () const |
std::map< UInt_t, Long64_t > | LastTimeStampMap () const |
uint64_t | LastTriggerId () const |
void | LastTriggerId (const uint64_t &val) |
uint64_t | MaxTriggerId () const |
bool | NoWaveforms () const |
bool | RecordDiag () const |
Static Protected Member Functions | |
static TGRSIOptions * | Options () |
static void | Options (TGRSIOptions *val) |
Private Member Functions | |
bool | SetGRIFCc (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetGRIFChannelTriggerId (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetGRIFDeadTime (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetGRIFHeader (uint32_t, const std::shared_ptr< TFragment > &, EBank) |
bool | SetGRIFNetworkPacket (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetGRIFPrimaryFilterId (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetGRIFPrimaryFilterPattern (uint32_t, const std::shared_ptr< TFragment > &, EBank) |
bool | SetGRIFPsd (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetGRIFTimeStampLow (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetGRIFWaveForm (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetNewPPGPattern (uint32_t, TPPGData *) |
bool | SetOldPPGPattern (uint32_t, TPPGData *) |
bool | SetPPGHighTimeStamp (uint32_t, TPPGData *) |
bool | SetPPGLowTimeStamp (uint32_t, TPPGData *) |
bool | SetPPGNetworkPacket (uint32_t, TPPGData *) |
bool | SetScalerHighTimeStamp (uint32_t, TScalerData *, int &) |
bool | SetScalerLowTimeStamp (uint32_t, TScalerData *) |
bool | SetScalerNetworkPacket (uint32_t, TScalerData *) |
bool | SetScalerValue (int, uint32_t, TScalerData *) |
void | SetTIGAddress (uint32_t, const std::shared_ptr< TFragment > &) |
void | SetTIGCfd (uint32_t, const std::shared_ptr< TFragment > &) |
void | SetTIGCharge (uint32_t, const std::shared_ptr< TFragment > &) |
void | SetTIGLed (uint32_t, const std::shared_ptr< TFragment > &) |
bool | SetTIGTimeStamp (uint32_t *, const std::shared_ptr< TFragment > &) |
bool | SetTIGTriggerID (uint32_t, const std::shared_ptr< TFragment > &) |
void | SetTIGWave (uint32_t, const std::shared_ptr< TFragment > &) |
Private Attributes | |
std::shared_ptr< ThreadsafeQueue< std::shared_ptr< const TBadFragment > > > | fBadOutputQueue |
TChannel * | fChannel |
bool | fFragmentHasWaveform |
std::map< Long_t, int > | fFragmentIdMap |
TFragmentMap | fFragmentMap |
std::vector< std::shared_ptr< ThreadsafeQueue< std::shared_ptr< const TFragment > > > > | fGoodOutputQueues |
bool | fIgnoreMissingChannel |
std::atomic_long * | fInputSize |
std::atomic_size_t * | fItemsPopped |
uint64_t | fLastDaqId |
uint64_t | fLastNetworkPacket |
std::map< UInt_t, Long64_t > | fLastTimeStampMap |
uint64_t | fLastTriggerId |
const uint64_t | fMaxTriggerId |
bool | fNoWaveforms |
bool | fRecordDiag |
std::shared_ptr< ThreadsafeQueue< std::shared_ptr< TEpicsFrag > > > | fScalerOutputQueue |
EDataParserState | fState |
Static Private Attributes | |
static TGRSIOptions * | fOptions = nullptr |
|
strong |
Enumerator | |
---|---|
kWFDN | |
kGRF1 | |
kGRF2 | |
kGRF3 | |
kGRF4 | |
kFME0 | |
kFME1 | |
kFME2 | |
kFME3 | |
kMADC | |
kEMMT |
Definition at line 54 of file TGRSIDataParser.h.
|
strong |
Definition at line 66 of file TGRSIDataParser.h.
TGRSIDataParser::TGRSIDataParser | ( | ) |
Definition at line 20 of file TGRSIDataParser.cxx.
|
default |
|
defaultnoexcept |
|
overridedefault |
|
inlinevirtualinherited |
Definition at line 65 of file TDataParser.h.
References TDataParser::fGoodOutputQueues.
Referenced by TUnpackingLoop::AddGoodOutputQueue().
|
inlinevirtualinherited |
Definition at line 73 of file TDataParser.h.
References TDataParser::fBadOutputQueue.
Referenced by TUnpackingLoop::BadOutputQueue(), EmmaTdcDataToFragment(), GriffinDataToFragment(), and RFScalerToFragment().
int TGRSIDataParser::CaenPhaToFragment | ( | uint32_t * | data, |
int | size, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Converts a Caen flavoured MIDAS events into TFragments and returns the number of events processed
Definition at line 1792 of file TGRSIDataParser.cxx.
References TGRSIOptions::Get(), TDataParser::GoodOutputQueues(), TDataParser::Options(), TDataParser::Push(), and s.
Referenced by Process().
int TGRSIDataParser::CaenPsdToFragment | ( | uint32_t * | data, |
int | size, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Converts a Caen flavoured MIDAS events into TFragments and returns the number of events processed
Definition at line 1589 of file TGRSIDataParser.cxx.
References TGRSIOptions::Get(), TDataParser::GoodOutputQueues(), TDataParser::Options(), TDataParser::Push(), and s.
Referenced by Process().
|
inlineprotectedinherited |
Definition at line 105 of file TDataParser.h.
References TDataParser::fChannel.
Referenced by EmmaMadcDataToFragment(), and SetTIGCharge().
|
virtualinherited |
Definition at line 32 of file TDataParser.cxx.
References TDataParser::fBadOutputQueue, TDataParser::fGoodOutputQueues, and TDataParser::fScalerOutputQueue.
Referenced by TUnpackingLoop::ClearQueue().
int TGRSIDataParser::EightPIDataToFragment | ( | uint32_t | stream, |
uint32_t * | data, | ||
int | size, | ||
unsigned int | midasSerialNumber = 0, | ||
time_t | midasTime = 0 ) |
int TGRSIDataParser::EmmaMadcDataToFragment | ( | const uint32_t * | data, |
int | size, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Converts a MIDAS File from the Emma DAQ into a TFragment.
Definition at line 2015 of file TGRSIDataParser.cxx.
References TDataParser::Channel(), TChannel::GetChannel(), TDataParser::GoodOutputQueues(), TDataParser::Push(), xferhfts, xfermidsn, and xfermidts.
Referenced by Process().
int TGRSIDataParser::EmmaRawDataToFragment | ( | uint32_t * | data, |
int | size, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Extract SRAW data, i.e. the instantaneous rates
Definition at line 2223 of file TGRSIDataParser.cxx.
References TRateScalerQueue::Add(), TRateScalerQueue::Get(), and TScalerData::SetAddress().
Referenced by Process().
int TGRSIDataParser::EmmaSumDataToFragment | ( | uint32_t * | data, |
int | size, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Extract SSUM data, i.e. the cumulative counts
Definition at line 2236 of file TGRSIDataParser.cxx.
References TRateScalerQueue::Add(), TRateScalerQueue::Get(), and TScalerData::SetAddress().
Referenced by Process().
int TGRSIDataParser::EmmaTdcDataToFragment | ( | uint32_t * | data, |
int | size, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Building TDC events, duplicating logic from EmmaMadcDataToFragment
Definition at line 2086 of file TGRSIDataParser.cxx.
References TParsingDiagnostics::BadFragment(), TDataParser::BadOutputQueue(), countsbetweenwraps, fState, TSingleton< TParsingDiagnostics >::Get(), TDataParser::GoodOutputQueues(), kBadFooter, kFault, kGood, kUndefined, lasttimestamp, TDataParser::Push(), wraparoundcounter, xferhfts, xfermidsn, and xfermidts.
Referenced by Process().
int TGRSIDataParser::EPIXToScalar | ( | float * | data, |
int | size, | ||
unsigned int | midasSerialNumber = 0, | ||
time_t | midasTime = 0 ) |
Definition at line 1987 of file TGRSIDataParser.cxx.
References TEpicsFrag::GetEpicsVariableName(), and TDataParser::ScalerOutputQueue().
Referenced by Process().
|
inlineprotectedinherited |
Definition at line 112 of file TDataParser.h.
References TDataParser::fFragmentHasWaveform.
Referenced by GriffinDataToFragment(), and SetGRIFPrimaryFilterPattern().
|
inlineprotectedinherited |
Definition at line 122 of file TDataParser.h.
References TDataParser::fFragmentHasWaveform.
|
inlineprotectedinherited |
Definition at line 114 of file TDataParser.h.
References TDataParser::fFragmentMap.
Referenced by GriffinDataToFragment().
|
inlineprotectedinherited |
Definition at line 101 of file TDataParser.h.
References TDataParser::fGoodOutputQueues.
Referenced by CaenPhaToFragment(), CaenPsdToFragment(), EmmaMadcDataToFragment(), EmmaTdcDataToFragment(), GriffinDataToFragment(), RFScalerToFragment(), and TigressDataToFragment().
int TGRSIDataParser::GriffinDataToFragment | ( | uint32_t * | data, |
int | size, | ||
EBank | bank, | ||
unsigned int | midasSerialNumber = 0, | ||
time_t | midasTime = 0 ) |
Converts a Griffin flavoured MIDAS file into a TFragment and returns the number of words processed (or the negative index of the word it failed on)
Definition at line 502 of file TGRSIDataParser.cxx.
References TFragmentMap::Add(), TParsingDiagnostics::BadFragment(), TDataParser::BadOutputQueue(), BLUE, DRED, DYELLOW, fIgnoreMissingChannel, TDataParser::FragmentHasWaveform(), TDataParser::FragmentMap(), fState, TGRSIOptions::Get(), TSingleton< TParsingDiagnostics >::Get(), TChannel::GetChannel(), TParsingDiagnostics::GoodFragment(), TDataParser::GoodOutputQueues(), GriffinDataToPPGEvent(), GriffinDataToScalerEvent(), hex(), kBadBank, kBadFooter, kBadHeader, kBadHighTS, kBadLowTS, kBadModuleType, kBadTriggerId, kEndOfData, kFault, kGood, kGRF1, kGRF2, kGRF3, kGRF4, kMissingCfd, kMissingCharge, kMissingPsd, kMissingWords, kNotSingleCfd, kSecondHeader, kSizeMismatch, kWrongNofWords, TDataParser::LastTimeStampMap(), TDataParser::NoWaveforms(), TDataParser::Options(), TDataParser::Push(), TDataParser::RecordDiag(), RESET_COLOR, RFScalerToFragment(), SetGRIFCc(), SetGRIFChannelTriggerId(), SetGRIFDeadTime(), SetGRIFHeader(), SetGRIFNetworkPacket(), SetGRIFPrimaryFilterId(), SetGRIFPrimaryFilterPattern(), SetGRIFPsd(), SetGRIFTimeStampLow(), and SetGRIFWaveForm().
Referenced by ProcessGriffin(), and QueueEvents().
int TGRSIDataParser::GriffinDataToPPGEvent | ( | uint32_t * | data, |
int | size, | ||
unsigned int | midasSerialNumber = 0, | ||
time_t | midasTime = 0 ) |
Definition at line 1403 of file TGRSIDataParser.cxx.
References TPPG::AddData(), TParsingDiagnostics::BadFragment(), TSingleton< TParsingDiagnostics >::Get(), TSingleton< TPPG >::Get(), TParsingDiagnostics::GoodFragment(), SetNewPPGPattern(), SetOldPPGPattern(), SetPPGHighTimeStamp(), SetPPGLowTimeStamp(), and SetPPGNetworkPacket().
Referenced by GriffinDataToFragment().
int TGRSIDataParser::GriffinDataToScalerEvent | ( | uint32_t * | data, |
int | address ) |
Definition at line 1496 of file TGRSIDataParser.cxx.
References TDeadtimeScalerQueue::Add(), TRateScalerQueue::Add(), TParsingDiagnostics::BadFragment(), fState, TDeadtimeScalerQueue::Get(), TRateScalerQueue::Get(), TSingleton< TParsingDiagnostics >::Get(), TParsingDiagnostics::GoodFragment(), kBadScalerHighTS, kBadScalerLowTS, kBadScalerType, kBadScalerValue, TScalerData::SetAddress(), SetScalerHighTimeStamp(), SetScalerLowTimeStamp(), SetScalerNetworkPacket(), and SetScalerValue().
Referenced by GriffinDataToFragment().
|
inlinevirtualinherited |
Definition at line 88 of file TDataParser.h.
References TDataParser::fGoodOutputQueues.
Referenced by TUnpackingLoop::GetItemsPushed().
|
inlineprotectedinherited |
Definition at line 108 of file TDataParser.h.
References TDataParser::fLastDaqId.
|
inlineprotectedinherited |
Definition at line 110 of file TDataParser.h.
References TDataParser::fLastNetworkPacket.
|
inlineprotectedinherited |
Definition at line 115 of file TDataParser.h.
References TDataParser::fLastTimeStampMap.
Referenced by GriffinDataToFragment().
|
inlineprotectedinherited |
Definition at line 109 of file TDataParser.h.
References TDataParser::fLastTriggerId.
Referenced by SetTIGTriggerID().
|
inlineprotectedinherited |
Definition at line 120 of file TDataParser.h.
References TDataParser::fLastTriggerId.
|
inlineprotectedinherited |
Definition at line 107 of file TDataParser.h.
References TDataParser::fMaxTriggerId.
Referenced by SetTIGTriggerID().
|
inlineprotectedinherited |
Definition at line 103 of file TDataParser.h.
References TDataParser::fNoWaveforms.
Referenced by GriffinDataToFragment(), and TigressDataToFragment().
|
delete |
|
deletenoexcept |
|
inlinestaticprotectedinherited |
Definition at line 117 of file TDataParser.h.
References TDataParser::fOptions.
Referenced by CaenPhaToFragment(), CaenPsdToFragment(), and GriffinDataToFragment().
|
inlinestaticprotectedinherited |
Definition at line 124 of file TDataParser.h.
References TDataParser::fOptions.
|
virtualinherited |
Definition at line 78 of file TDataParser.cxx.
References TDataParser::fGoodOutputQueues.
Referenced by TUnpackingLoop::EndStatus().
|
overridevirtual |
Implements TDataParser.
Definition at line 25 of file TGRSIDataParser.cxx.
References CaenPhaToFragment(), CaenPsdToFragment(), DRED, EmmaMadcDataToFragment(), EmmaRawDataToFragment(), EmmaSumDataToFragment(), EmmaTdcDataToFragment(), EPIXToScalar(), TGRSIOptions::Get(), kGRF1, kGRF2, kGRF3, kGRF4, ProcessGriffin(), RESET_COLOR, TRunInfo::SetRunLength(), TRunInfo::SetRunStop(), TGRSIOptions::SuppressErrors(), and TigressDataToFragment().
int TGRSIDataParser::ProcessGriffin | ( | uint32_t * | data, |
const int & | size, | ||
const EBank & | bank, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Definition at line 435 of file TGRSIDataParser.cxx.
References DRED, TGRSIOptions::Get(), TGRSIDataParserException::GetFailedWord(), GriffinDataToFragment(), RESET_COLOR, and TGRSIDataParserException::what().
Referenced by Process().
|
inherited |
Definition at line 59 of file TDataParser.cxx.
References TDataParser::fFragmentIdMap.
|
inherited |
Definition at line 70 of file TDataParser.cxx.
References TDataParser::fFragmentIdMap.
Referenced by CaenPhaToFragment(), CaenPsdToFragment(), THILDataParser::EagleEventToFragment(), EmmaMadcDataToFragment(), EmmaTdcDataToFragment(), GriffinDataToFragment(), RFScalerToFragment(), TTdrDataParser::TdrToFragment(), TigressDataToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), and TILLDataParser::V2SingleFippsEventToFragment().
|
inlineprotectedinherited |
Definition at line 104 of file TDataParser.h.
References TDataParser::fRecordDiag.
Referenced by GriffinDataToFragment().
int TGRSIDataParser::RFScalerToFragment | ( | uint32_t * | data, |
int | size, | ||
const std::shared_ptr< TFragment > & | frag ) |
Definition at line 1241 of file TGRSIDataParser.cxx.
References TParsingDiagnostics::BadFragment(), TDataParser::BadOutputQueue(), fState, TSingleton< TParsingDiagnostics >::Get(), TDataParser::GoodOutputQueues(), kBadRFScalerWord, kEndOfData, kUndefined, TDataParser::Push(), and s.
Referenced by GriffinDataToFragment().
|
inlinevirtualinherited |
Definition at line 75 of file TDataParser.h.
References TDataParser::fScalerOutputQueue.
Referenced by EPIXToScalar(), and TUnpackingLoop::ScalerOutputQueue().
int TGRSIDataParser::SCLRToScalar | ( | uint32_t * | data, |
int | size, | ||
unsigned int | midasSerialNumber = 0, | ||
time_t | midasTime = 0 ) |
|
virtualinherited |
Definition at line 50 of file TDataParser.cxx.
References TDataParser::fBadOutputQueue, TDataParser::fGoodOutputQueues, and TDataParser::fScalerOutputQueue.
Referenced by TUnpackingLoop::Iteration().
|
private |
set the short integration and the lower 9 bits of the long integration
Definition at line 1219 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Sets the Griffin Channel Trigger ID
Definition at line 1150 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Sets the Griffin deadtime and the upper 14 bits of the timestamp
Definition at line 1207 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Definition at line 1064 of file TGRSIDataParser.cxx.
References kGRF1, kGRF2, kGRF3, and kGRF4.
Referenced by GriffinDataToFragment().
|
private |
Ignores the network packet number (for now)
Definition at line 1160 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Sets the Griffin Primary filter ID and PPG
Definition at line 1139 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Sets the Griffin Primary Filter Pattern
Definition at line 1116 of file TGRSIDataParser.cxx.
References TDataParser::FragmentHasWaveform(), kGRF1, kGRF2, kGRF3, and kGRF4.
Referenced by GriffinDataToFragment().
|
private |
set the zero crossing and the higher 10 bits of the long integration
Definition at line 1230 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Sets the lower 28 bits of the griffin time stamp
Definition at line 1178 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Sets the Griffin waveform if record_waveform is set to true
Definition at line 1189 of file TGRSIDataParser.cxx.
Referenced by GriffinDataToFragment().
|
private |
Definition at line 1452 of file TGRSIDataParser.cxx.
References TPPGData::SetNewPPG().
Referenced by GriffinDataToPPGEvent().
|
inlinevirtualinherited |
Definition at line 50 of file TDataParser.h.
References TDataParser::fNoWaveforms.
Referenced by TUnpackingLoop::SetNoWaveForms().
|
private |
Definition at line 1461 of file TGRSIDataParser.cxx.
References TPPGData::SetOldPPG().
Referenced by GriffinDataToPPGEvent().
|
private |
Definition at line 1487 of file TGRSIDataParser.cxx.
References TPPGData::SetHighTimeStamp().
Referenced by GriffinDataToPPGEvent().
|
private |
Definition at line 1478 of file TGRSIDataParser.cxx.
References TPPGData::SetLowTimeStamp().
Referenced by GriffinDataToPPGEvent().
|
private |
Definition at line 1467 of file TGRSIDataParser.cxx.
References TPPGData::SetNetworkPacketId().
Referenced by GriffinDataToPPGEvent().
|
inlinevirtualinherited |
Definition at line 51 of file TDataParser.h.
References TDataParser::fRecordDiag.
Referenced by TUnpackingLoop::SetRecordDiag().
|
private |
Definition at line 1571 of file TGRSIDataParser.cxx.
References TScalerData::GetLowTimeStamp(), and TScalerData::SetHighTimeStamp().
Referenced by GriffinDataToScalerEvent().
|
private |
Definition at line 1560 of file TGRSIDataParser.cxx.
References TScalerData::SetLowTimeStamp().
Referenced by GriffinDataToScalerEvent().
|
private |
Definition at line 1551 of file TGRSIDataParser.cxx.
References TScalerData::SetNetworkPacketId().
Referenced by GriffinDataToScalerEvent().
|
private |
Definition at line 1583 of file TGRSIDataParser.cxx.
References TScalerData::SetScaler().
Referenced by GriffinDataToScalerEvent().
|
inlinevirtualinherited |
Definition at line 77 of file TDataParser.h.
References TDataParser::fInputSize, and TDataParser::fItemsPopped.
Referenced by TUnpackingLoop::Iteration().
|
private |
Sets the digitizer address of the 'currentFrag' TFragment
Definition at line 231 of file TGRSIDataParser.cxx.
Referenced by TigressDataToFragment().
|
private |
Sets the CFD of a Tigress Event.
Definition at line 264 of file TGRSIDataParser.cxx.
Referenced by TigressDataToFragment().
|
private |
Sets the integrated charge of a Tigress event.
Definition at line 278 of file TGRSIDataParser.cxx.
References TDataParser::Channel(), and TChannel::GetDigitizerTypeString().
Referenced by TigressDataToFragment().
|
private |
Sets the LED of a Tigress event.
Definition at line 271 of file TGRSIDataParser.cxx.
Referenced by TigressDataToFragment().
|
private |
Sets the Timestamp of a Tigress Event
Definition at line 342 of file TGRSIDataParser.cxx.
References hex().
Referenced by TigressDataToFragment().
|
private |
Sets the Trigger ID of a Tigress event.
Definition at line 310 of file TGRSIDataParser.cxx.
References DBLUE, DRED, TDataParser::LastTriggerId(), TDataParser::MaxTriggerId(), and RESET_COLOR.
Referenced by TigressDataToFragment().
|
private |
Sets the waveform for a Tigress event.
Definition at line 237 of file TGRSIDataParser.cxx.
Referenced by TigressDataToFragment().
int TGRSIDataParser::TigressDataToFragment | ( | uint32_t * | data, |
int | size, | ||
std::shared_ptr< TMidasEvent > & | event ) |
Converts A MIDAS File from the Tigress DAQ into a TFragment.
check whether the fragment is 'good'
Definition at line 138 of file TGRSIDataParser.cxx.
References DYELLOW, TChannel::GetChannel(), TDataParser::GoodOutputQueues(), hex(), TDataParser::NoWaveforms(), TDataParser::Push(), RED, RESET_COLOR, SetTIGAddress(), SetTIGCfd(), SetTIGCharge(), SetTIGLed(), SetTIGTimeStamp(), SetTIGTriggerID(), and SetTIGWave().
Referenced by Process().
|
privateinherited |
Definition at line 130 of file TDataParser.h.
Referenced by TDataParser::BadOutputQueue(), TDataParser::ClearQueue(), THILDataParser::EagleEventToFragment(), TDataParser::SetFinished(), TTdrDataParser::TdrToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), and TILLDataParser::V2SingleFippsEventToFragment().
|
privateinherited |
Definition at line 136 of file TDataParser.h.
Referenced by TDataParser::~TDataParser(), and TDataParser::Channel().
|
privateinherited |
Definition at line 144 of file TDataParser.h.
Referenced by TDataParser::FragmentHasWaveform(), and TDataParser::FragmentHasWaveform().
|
privateinherited |
Definition at line 143 of file TDataParser.h.
Referenced by TDataParser::Push(), and TDataParser::Push().
|
privateinherited |
Class that holds a map of fragments per address, takes care of calculating charges for GRF4 banks.
Definition at line 146 of file TDataParser.h.
Referenced by TDataParser::FragmentMap().
|
privateinherited |
Definition at line 129 of file TDataParser.h.
Referenced by TDataParser::AddGoodOutputQueue(), TDataParser::ClearQueue(), THILDataParser::EagleEventToFragment(), TDataParser::GoodOutputQueues(), TDataParser::ItemsPushed(), TDataParser::OutputQueueStatus(), TDataParser::SetFinished(), TTdrDataParser::TdrToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), and TILLDataParser::V2SingleFippsEventToFragment().
|
private |
flag that's set to TGRSIOptions::IgnoreMissingChannel
Definition at line 117 of file TGRSIDataParser.h.
Referenced by GriffinDataToFragment().
|
privateinherited |
Definition at line 154 of file TDataParser.h.
Referenced by THILDataParser::Process(), TILLDataParser::Process(), TDataParser::SetStatusVariables(), and TTdrDataParser::TdrToFragment().
|
privateinherited |
Definition at line 153 of file TDataParser.h.
Referenced by THILDataParser::Process(), TILLDataParser::Process(), TDataParser::SetStatusVariables(), and TTdrDataParser::TdrToFragment().
|
privateinherited |
The last daq ID in the raw file.
Definition at line 139 of file TDataParser.h.
Referenced by TDataParser::LastDaqId().
|
privateinherited |
The last network packet recieved.
Definition at line 141 of file TDataParser.h.
Referenced by TDataParser::LastNetworkPacket().
|
privateinherited |
Definition at line 148 of file TDataParser.h.
Referenced by TDataParser::LastTimeStampMap().
|
privateinherited |
The last Trigged ID in the raw File.
Definition at line 140 of file TDataParser.h.
Referenced by TDataParser::LastTriggerId(), and TDataParser::LastTriggerId().
|
privateinherited |
The last trigger ID Called.
Definition at line 138 of file TDataParser.h.
Referenced by TDataParser::MaxTriggerId().
|
privateinherited |
The flag to turn wave_forms on or off.
Definition at line 134 of file TDataParser.h.
Referenced by TDataParser::NoWaveforms(), and TDataParser::SetNoWaveForms().
|
staticprivateinherited |
Static pointer to TGRSIOptions, gets set on the first call of GriffinDataToFragment.
Definition at line 150 of file TDataParser.h.
Referenced by TDataParser::Options(), and TDataParser::Options().
|
privateinherited |
The flag to turn on diagnostics recording.
Definition at line 135 of file TDataParser.h.
Referenced by THILDataParser::EagleEventToFragment(), TDataParser::RecordDiag(), TDataParser::SetRecordDiag(), TTdrDataParser::TdrToFragment(), TILLDataParser::V1SingleFippsEventToFragment(), and TILLDataParser::V2SingleFippsEventToFragment().
|
privateinherited |
Definition at line 131 of file TDataParser.h.
Referenced by TDataParser::ClearQueue(), TDataParser::ScalerOutputQueue(), and TDataParser::SetFinished().
|
private |
Definition at line 116 of file TGRSIDataParser.h.
Referenced by EmmaTdcDataToFragment(), GriffinDataToFragment(), GriffinDataToScalerEvent(), and RFScalerToFragment().