16 #ifndef IcebergDataInterface_H 17 #define IcebergDataInterface_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);
113 RawDigits& raw_digits,
114 RDTimeStamps ×tamps,
115 std::vector<int> &apalist);
121 RawDigits& raw_digits,
122 RDTimeStamps ×tamps,
123 std::vector<int> &apalist);
126 const artdaq::Fragment& frag,
127 RawDigits& raw_digits,
128 RDTimeStamps ×tamps,
129 std::vector<int> &apalist);
133 RawDigits& raw_digits,
134 RDTimeStamps ×tamps,
135 std::vector<int> &apalist);
138 size_t &n_felix_frags,
141 RawDigits& raw_digits,
142 RDTimeStamps ×tamps,
143 std::vector<int> &apalist,
147 const artdaq::Fragment& frag,
148 RawDigits& raw_digits,
149 RDTimeStamps ×tamps,
150 std::vector<int> &apalist,
bool _DiscardedCorruptData
bool _rce_check_buffer_size
size_t _rce_buffer_size_checklimit
bool _felix_drop_frags_with_badsf
bool _process_RCE_AUX(art::Event &evt, const artdaq::Fragment &frag, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
long int _max_offline_channel
unsigned int _tick_count_this_event
bool _rce_drop_frags_with_badc
bool _enforce_median_tick_count
unsigned int _default_crate_if_unexpected
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
bool _felix_check_buffer_size
bool _processRCE(art::Event &evt, std::string inputLabel, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
std::vector< raw::RDStatus > RDStatuses
std::vector< raw::RawDigit > RawDigits
unsigned int _full_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, std::string inputLabel)
IcebergDataInterface(fhicl::ParameterSet const &ps)
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 _rce_save_frags_to_files
bool _enforce_no_duplicate_channels
bool _enforce_full_tick_count
size_t _felix_buffer_size_checklimit
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
size_t _felix_frag_small_size
static constexpr double ps
bool _processFELIX(art::Event &evt, std::string inputLabel, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist)
bool _initialized_tick_count_this_event
bool _drop_small_felix_frags
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)
bool _drop_small_rce_frags
bool _process_FELIX_AUX(art::Event &evt, const artdaq::Fragment &frag, RawDigits &raw_digits, RDTimeStamps ×tamps, std::vector< int > &apalist, uint32_t runNumber, std::string inputLabel)
bool _felix_drop_frags_with_badc
void computeMedianSigma(raw::RawDigit::ADCvector_t &v_adc, float &median, float &sigma)
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)
bool _rce_drop_frags_with_badsf
long int _min_offline_channel
size_t _rce_frag_small_size
bool _enforce_same_tick_count
std::vector< raw::RDTimeStamp > RDTimeStamps
double median(sqlite3 *db, std::string const &table_name, std::string const &column_name)
void _collectRDStatus(std::vector< raw::RDStatus > &rdstatuses)