DDTHelpers.h
Go to the documentation of this file.
1 #ifndef OFFLINE_DDT_HELPERS_HH
2 #define OFFLINE_DDT_HELPERS_HH
3 
5 
9 
10 #include "RawData/RawDigit.h"
11 #include "RecoBase/CellHit.h"
12 #include "RecoBase/Cluster.h"
13 
14 #include <vector>
15 
16 //using unsigned long long rather than uint64_t to ensure consistent behavior on OSX and LINUX
17 
18 namespace ddthelpers
19 {
21  cluster_hits(std::vector<art::Ptr<rb::CellHit> > const& hits,
22  int32_t t_start, int32_t t_end, int16_t adc_cut = 0);
23 
24  bool is_equal
25  (novaddt::DAQHit const& ddthit, art::Ptr<rb::CellHit> const& cellhit,
26  novaddt::TDC const& event_time);
27  bool is_equal
28  (novaddt::DAQHit const& ddthit, rawdata::RawDigit const& digit,
29  novaddt::TDC const& event_time);
30  bool is_equal
31  (novaddt::DAQHit const& lhs, novaddt::DAQHit const& rhs);
32 
33  void print(novaddt::DAQHit const& h, unsigned long long const& event_time = 0);
34  void print(art::Ptr<rb::CellHit> const& h);
35  void print(rawdata::RawDigit const& h);
36  void print(std::vector<novaddt::TriggerDecision> const& decisions);
37 
38 }
39 
40 
41 #endif
rb::Cluster cluster_hits(std::vector< art::Ptr< rb::CellHit > > const &hits, int32_t t_start, int32_t t_end, int16_t adc_cut=0)
Definition: DDTHelpers.cxx:13
A collection of associated CellHits.
Definition: Cluster.h:47
void hits()
Definition: readHits.C:15
void print(novaddt::DAQHit const &h, unsigned long long const &event_time=0)
Definition: DDTHelpers.cxx:84
bool is_equal(novaddt::DAQHit const &ddthit, art::Ptr< rb::CellHit > const &cellhit, novaddt::TDC const &event_time)
Definition: DDTHelpers.cxx:30