TriggerPrimitiveFinderTool.h
Go to the documentation of this file.
1 #ifndef TriggerPrimitiveFinderTool_h
2 #define TriggerPrimitiveFinderTool_h
3 
4 #include <vector>
5 #include <iostream>
6 
8 
9 public:
10  struct Hit
11  {
12  Hit(int _channel, int _startTime, int _charge, int _timeOverThreshold)
13  : channel(_channel),
14  startTime(_startTime),
15  charge(_charge),
16  timeOverThreshold(_timeOverThreshold)
17  {}
18  int channel;
19  int startTime;
20  int charge;
22  };
23 
24  virtual ~TriggerPrimitiveFinderTool() =default;
25 
26  virtual std::vector<TriggerPrimitiveFinderTool::Hit>
27  findHits(const std::vector<unsigned int>& channel_numbers,
28  const std::vector<std::vector<short>>& collection_samples) = 0;
29 
30 };
31 
32 #endif // include guard
Hit(int _channel, int _startTime, int _charge, int _timeOverThreshold)
struct vector vector
virtual std::vector< TriggerPrimitiveFinderTool::Hit > findHits(const std::vector< unsigned int > &channel_numbers, const std::vector< std::vector< short >> &collection_samples)=0
virtual ~TriggerPrimitiveFinderTool()=default