16 #ifndef PDSPTPCDataInterface_H 17 #define PDSPTPCDataInterface_H 32 #include "artdaq-core/Data/Fragment.hh" 33 #include "artdaq-core/Data/ContainerFragment.hh" 43 std::vector<raw::RDStatus> &rdstatuses );
49 std::vector<raw::RDStatus> &rdstatuses,
50 std::vector<int> &apalist);
56 std::vector<raw::RDStatus> &rdstatuses,
57 std::vector<int> &apalist);
118 RawDigits& raw_digits,
119 RDTimeStamps ×tamps,
120 std::vector<int> &apalist);
126 RawDigits& raw_digits,
127 RDTimeStamps ×tamps,
128 std::vector<int> &apalist);
131 const artdaq::Fragment& frag,
132 RawDigits& raw_digits,
133 RDTimeStamps ×tamps,
134 std::vector<int> &apalist);
138 RawDigits& raw_digits,
139 RDTimeStamps ×tamps,
140 std::vector<int> &apalist);
143 size_t &n_felix_frags,
146 RawDigits& raw_digits,
147 RDTimeStamps ×tamps,
148 std::vector<int> &apalist);
151 const artdaq::Fragment& frag,
152 RawDigits& raw_digits,
153 RDTimeStamps ×tamps,
154 std::vector<int> &apalist);
size_t _felix_buffer_size_checklimit
bool _processFELIX(art::Event &evt, std::string inputLabel, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
int retrieveData(art::Event &evt, std::string inputlabel, std::vector< raw::RawDigit > &raw_digits, std::vector< raw::RDTimeStamp > &rd_timestamps, std::vector< raw::RDStatus > &rdstatuses)
int retrieveDataForSpecifiedAPAs(art::Event &evt, std::vector< raw::RawDigit > &raw_digits, std::vector< raw::RDTimeStamp > &rd_timestamps, std::vector< raw::RDStatus > &rdstatuses, std::vector< int > &apalist)
bool _felix_drop_frags_with_badsf
long int _max_offline_channel
void computeMedianSigma(raw::RawDigit::ADCvector_t &v_adc, float &median, float &sigma)
unsigned int _default_crate_if_unexpected
bool _drop_small_felix_frags
unsigned int _tick_count_this_event
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
bool _processRCE(art::Event &evt, std::string inputLabel, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
size_t _rce_frag_small_size
bool _process_FELIX_AUX(art::Event &evt, const artdaq::Fragment &frag, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
std::vector< raw::RawDigit > RawDigits
bool _rce_drop_frags_with_badsf
bool _DiscardedCorruptData
bool _enforce_no_duplicate_channels
unsigned int _full_tick_count
bool _felix_check_buffer_size
bool _enforce_same_tick_count
bool _felixProcContNCFrags(art::Handle< artdaq::Fragments > frags, size_t &n_felix_frags, bool is_container, art::Event &evt, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
void _collectRDStatus(std::vector< raw::RDStatus > &rdstatuses)
bool _enforce_median_tick_count
static constexpr double ps
bool _drop_small_rce_frags
bool _initialized_tick_count_this_event
bool _enforce_full_tick_count
std::vector< raw::RDTimeStamp > RDTimeStamps
int retrieveDataAPAListWithLabels(art::Event &evt, std::string inputlabel, std::vector< raw::RawDigit > &raw_digits, std::vector< raw::RDTimeStamp > &rd_timestamps, std::vector< raw::RDStatus > &rdstatuses, std::vector< int > &apalist)
std::vector< raw::RDStatus > RDStatuses
size_t _felix_frag_small_size
bool _rceProcContNCFrags(art::Handle< artdaq::Fragments > frags, size_t &n_rce_frags, bool is_container, art::Event &evt, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
std::map< int, std::vector< std::string > > _input_labels_by_apa
bool _rce_save_frags_to_files
bool _process_RCE_AUX(art::Event &evt, const artdaq::Fragment &frag, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
bool _rce_check_buffer_size
bool _felix_drop_frags_with_badc
PDSPTPCDataInterface(fhicl::ParameterSet const &ps)
unsigned int _rce_fix110_nticks
double median(sqlite3 *db, std::string const &table_name, std::string const &column_name)
size_t _rce_buffer_size_checklimit
bool _rce_drop_frags_with_badc
long int _min_offline_channel