152 try { rawFragments->size(); }
154 std::cout <<
"WARNING: Raw RCE data not found in event " << eventNumber <<
std::endl;
155 std::vector<raw::RawDigit> digits;
162 std::cerr <<
"Run: " << evt.
run()
163 <<
", SubRun: " << evt.
subRun()
164 <<
", Event: " << eventNumber
169 lbne::TpcNanoSlice::Header::nova_timestamp_t firstTimestamp;
170 std::vector<std::pair< std::pair<unsigned int,unsigned int>, lbne::TpcNanoSlice::Header::nova_timestamp_t> > DigitsIndexList;
178 std::cout <<
"Digits has size " << digits.size() <<
" digits[0] has " << digits[0].Samples() <<
std::endl;
180 pedestals.SetDetName(
"dune35t");
181 pedestals.SetUseDefaults(
false);
182 pedestals.SetUseDB(
true);
183 pedestals.Update(evt.
run());
185 for (
int dig=0; dig<
DigSize; ++dig ) {
186 int Chan = digits[dig].Channel();
188 Pedestal[dig] = pedestals.PedMean(Chan);
197 std::cout <<
"JPD: this_time_stamp: " << this_time_stamp.
value() <<
std::endl;
unsigned int fZeroThreshold
Zero suppression threshold.
EventNumber_t event() const
raw::Compress_t fCompression
compression type to use
std::string fRawDataLabel
constexpr TimeValue_t value() const
std::vector< raw::RawDigit > tpcFragmentToRawDigits(artdaq::Fragments const &rawFragments, std::vector< std::pair< std::pair< unsigned int, unsigned int >, lbne::TpcNanoSlice::Header::nova_timestamp_t > > &DigitsIndexList, lbne::TpcNanoSlice::Header::nova_timestamp_t &firstTimestamp, art::ServiceHandle< lbne::ChannelMapService > const &channelMap, bool useChannelMap, bool debug, raw::Compress_t compression, unsigned int zeroThreshold)
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
art::Timestamp make_art_timestamp_from_nova_timestamp(lbne::TpcNanoSlice::Header::nova_timestamp_t this_nova_timestamp)
std::string fOutputDataLabel
tick_as<> tick
Tick number, represented by std::ptrdiff_t.
SubRunNumber_t subRun() const
float ADCs[MaxChannels][MaxSamples]
art::ServiceHandle< lbne::ChannelMapService > fChannelMap
ChannelMappingService::Channel Channel
IDNumber_t< Level::Event > EventNumber_t
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
float Pedestal[MaxChannels]
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)