1 #ifndef HDColdboxDataInterface_H 2 #define HDColdboxDataInterface_H 11 #include "artdaq-core/Data/Fragment.hh" 13 #include "daqdataformats/Fragment.hpp" 33 std::vector<raw::RawDigit> &raw_digits,
34 std::vector<raw::RDTimeStamp> &rd_timestamps,
35 std::vector<raw::RDStatus> &rdstatuses );
41 std::vector<raw::RawDigit> &raw_digits,
42 std::vector<raw::RDTimeStamp> &rd_timestamps,
43 std::vector<raw::RDStatus> &rdstatuses,
44 std::vector<int> &apalist);
47 art::Event &evt, std::vector<raw::RawDigit> &raw_digits,
48 std::vector<raw::RDTimeStamp> &rd_timestamps,
49 std::vector<raw::RDStatus> &rdstatuses,
50 std::vector<int> &apalist);
60 unsigned int maxchan);
std::vector< raw::RDTimeStamp > RDTimeStamps
std::vector< raw::RawDigit > RawDigits
std::vector< duneFragment > duneFragments
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)
std::map< int, std::vector< std::string > > _input_labels_by_apa
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
HDColdboxDataInterface(fhicl::ParameterSet const &ps)
unsigned int fDefaultCrate
void getMedianSigma(const raw::RawDigit::ADCvector_t &v_adc, float &median, float &sigma)
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)
std::string fFileInfoLabel
void getFragmentsForEvent(hid_t the_group, RawDigits &raw_digits, RDTimeStamps ×tamps, int apano, unsigned int maxchan)
static constexpr double ps
void _collectRDStatus(std::vector< raw::RDStatus > &rdstatuses)
dunedaq::daqdataformats::Fragment duneFragment
~HDColdboxDataInterface()
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)
double median(sqlite3 *db, std::string const &table_name, std::string const &column_name)