Hall-D Software
alpha
|
#include <JEventProcessor_DAQ_online.h>
Public Member Functions | |
JEventProcessor_DAQ_online () | |
~JEventProcessor_DAQ_online () | |
const char * | className (void) |
void | AddROCIDLabels (jana::JEventLoop *loop) |
void | ParseEventSize (jana::JEvent &event) |
void | DataWordStats (uint32_t *iptr, uint32_t *iend, uint32_t *word_stats) |
void | ParseJLabModuleData (uint32_t rocid, uint32_t *&iptr, uint32_t *iend, uint32_t *word_stats) |
void | Parsef250Bank (uint32_t rocid, uint32_t *&iptr, uint32_t *iend, uint32_t *word_stats) |
void | Parsef125Bank (uint32_t rocid, uint32_t *&iptr, uint32_t *iend, uint32_t *word_stats) |
void | ParseF1v2TDCBank (uint32_t rocid, uint32_t *&iptr, uint32_t *iend, uint32_t *word_stats) |
void | ParseF1v3TDCBank (uint32_t rocid, uint32_t *&iptr, uint32_t *iend, uint32_t *word_stats) |
void | ParseCAEN1190 (uint32_t rocid, uint32_t *&iptr, uint32_t *iend, uint32_t *word_stats) |
void | ParseModuleConfiguration (uint32_t rocid, uint32_t *&iptr, uint32_t *iend, uint32_t *word_stats) |
Public Attributes | |
TDirectory * | maindir |
TDirectory * | daqdir |
Private Member Functions | |
jerror_t | init (void) |
Called once at program start. More... | |
jerror_t | brun (jana::JEventLoop *eventLoop, int32_t runnumber) |
Called everytime a new run number is detected. More... | |
jerror_t | evnt (jana::JEventLoop *eventLoop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | erun (void) |
Called everytime run number changes, provided brun has been called. More... | |
jerror_t | fini (void) |
Called after last event of last event source has been processed. More... | |
Definition at line 16 of file JEventProcessor_DAQ_online.h.
Definition at line 19 of file JEventProcessor_DAQ_online.h.
JEventProcessor_DAQ_online::JEventProcessor_DAQ_online | ( | ) |
Definition at line 57 of file JEventProcessor_DAQ_online.cc.
JEventProcessor_DAQ_online::~JEventProcessor_DAQ_online | ( | ) |
Definition at line 65 of file JEventProcessor_DAQ_online.cc.
void JEventProcessor_DAQ_online::AddROCIDLabels | ( | jana::JEventLoop * | loop | ) |
This is called just once to set the x-axis labels of histograms whose x-axis is the rocid so that we can label them by detector.
Definition at line 189 of file JEventProcessor_DAQ_online.cc.
References daq_hits_per_event, daq_words_per_event, DTranslationTable::DChannelInfo::det_sys, DTranslationTable::DetectorName(), e, and DTranslationTable::GetDetectorIndex().
|
private |
Called everytime a new run number is detected.
Definition at line 227 of file JEventProcessor_DAQ_online.cc.
|
inline |
Definition at line 123 of file JEventProcessor_DAQ_online.h.
void JEventProcessor_DAQ_online::DataWordStats | ( | uint32_t * | iptr, |
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 685 of file JEventProcessor_DAQ_online.cc.
|
private |
Called everytime run number changes, provided brun has been called.
Definition at line 955 of file JEventProcessor_DAQ_online.cc.
References daq_occ_crates, daq_ped_crates, daq_TDClocked_crates, daq_TDCovr_crates, highcratenum, and japp.
|
private |
Called every event.
Definition at line 236 of file JEventProcessor_DAQ_online.cc.
References DDAQAddress::channel, daq_hits_per_event, daq_occ_crates, daq_ped_crates, daq_TDClocked_crates, daq_TDCovr_crates, DF1TDCHit::data_word, Df125PulseIntegral::emulated, japp, Df125PulseIntegral::pedestal, Df250PulseIntegral::pedestal, Df125CDCPulse::pedestal, Df125FDCPulse::pedestal, Df250PulseData::pedestal, printf(), DDAQAddress::rocid, DDAQAddress::slot, sprintf(), and ttab_labels_set.
|
private |
Called after last event of last event source has been processed.
Definition at line 988 of file JEventProcessor_DAQ_online.cc.
|
private |
Called once at program start.
Definition at line 73 of file JEventProcessor_DAQ_online.cc.
References daq_event_size, daq_event_tdiff, daq_hits_per_event, daq_occ_crates, daq_ped_crates, daq_TDClocked_crates, daq_TDCovr_crates, daq_words_by_type, daq_words_per_event, E3, highcratenum, and printf().
void JEventProcessor_DAQ_online::ParseCAEN1190 | ( | uint32_t | rocid, |
uint32_t *& | iptr, | ||
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 901 of file JEventProcessor_DAQ_online.cc.
void JEventProcessor_DAQ_online::ParseEventSize | ( | jana::JEvent & | event | ) |
This ugliness is needed to get at the true banks for each event by rocid.
Definition at line 506 of file JEventProcessor_DAQ_online.cc.
References daq_event_size, daq_event_tdiff, daq_words_by_type, daq_words_per_event, event_num, JEventSource_EVIO::GetEVIOBufferFromRef(), JEventSource_EVIO::GetEVIOBufferSizeFromRef(), ievent, japp, and string.
void JEventProcessor_DAQ_online::Parsef125Bank | ( | uint32_t | rocid, |
uint32_t *& | iptr, | ||
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 810 of file JEventProcessor_DAQ_online.cc.
void JEventProcessor_DAQ_online::ParseF1v2TDCBank | ( | uint32_t | rocid, |
uint32_t *& | iptr, | ||
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 861 of file JEventProcessor_DAQ_online.cc.
void JEventProcessor_DAQ_online::ParseF1v3TDCBank | ( | uint32_t | rocid, |
uint32_t *& | iptr, | ||
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 881 of file JEventProcessor_DAQ_online.cc.
void JEventProcessor_DAQ_online::Parsef250Bank | ( | uint32_t | rocid, |
uint32_t *& | iptr, | ||
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 771 of file JEventProcessor_DAQ_online.cc.
void JEventProcessor_DAQ_online::ParseJLabModuleData | ( | uint32_t | rocid, |
uint32_t *& | iptr, | ||
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 749 of file JEventProcessor_DAQ_online.cc.
References DModuleType::F1TDC32, DModuleType::F1TDC48, DModuleType::FADC125, and DModuleType::FADC250.
void JEventProcessor_DAQ_online::ParseModuleConfiguration | ( | uint32_t | rocid, |
uint32_t *& | iptr, | ||
uint32_t * | iend, | ||
uint32_t * | word_stats | ||
) |
Definition at line 931 of file JEventProcessor_DAQ_online.cc.
TDirectory* JEventProcessor_DAQ_online::daqdir |
Definition at line 126 of file JEventProcessor_DAQ_online.h.
TDirectory* JEventProcessor_DAQ_online::maindir |
Definition at line 125 of file JEventProcessor_DAQ_online.h.