19 #include "art_root_io/TFileService.h" 26 #include "TTimeStamp.h" 32 #include "hep_hpc/hdf5/File.hpp" 33 #include "hep_hpc/hdf5/Ntuple.hpp" 36 using evt_nt_t = hep_hpc::hdf5::Ntuple<unsigned int, double>;
38 inline std::array<unsigned int, 3>
121 evtids.insert(event_id.data(),
evttime);
124 std::vector < art::Ptr < recob::Wire > > wires;
125 auto wireListHandle =
e.getHandle < std::vector < recob::Wire > >(itag);
126 if (wireListHandle) {
130 std::sort(wires.begin(), wires.end(),
chIncrease);
135 for (
auto & wire : wires){
137 if (!((channel>=2080 && channel < 2560)||
138 (channel>=7200 && channel < 7680)||
139 (channel>=12320 && channel < 12800)))
continue;
140 if (channel%1000==0) std::cout<<
"Channel = "<<channel<<
std::endl;
144 for(
const auto& range : signalROI.
get_ranges()){
145 const auto& waveform = range.data();
148 for (
int i = lasttick; i<roiFirstBinTick; ++i){
151 for(
size_t idx = 0; idx < waveform.size(); idx++){
152 wiresigs.insert(waveform[idx]);
156 for (
int i = lasttick; i<6000; ++i){
constexpr std::uint32_t timeLow() const
void analyze(art::Event const &e) noexcept
constexpr std::uint32_t timeHigh() const
const range_list_t & get_ranges() const
Returns the internal list of non-void ranges.
hep_hpc::hdf5::File hdffile
EDAnalyzer(fhicl::ParameterSet const &pset)
art framework interface to geometry description
bool chIncrease(art::Ptr< recob::Wire > const &w1, art::Ptr< recob::Wire > const &w2)
int TDCtick_t
Type representing a TDC tick.
virtual ~DataDumpHDF() noexcept
#define DEFINE_ART_MODULE(klass)
raw::ChannelID_t Channel() const
Returns the ID of the channel (or InvalidChannelID)
hep_hpc::hdf5::Ntuple< float > wire_nt_t
DataDumpHDF & operator=(DataDumpHDF const &)=delete
std::array< unsigned int, 3 > get_eid(art::Event const &e)
SubRunNumber_t subRun() const
DataDumpHDF(fhicl::ParameterSet const &p)
hep_hpc::hdf5::Ntuple< unsigned int, double > evt_nt_t
EventNumber_t event() const
Declaration of basic channel signal object.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
QTextStream & endl(QTextStream &s)