MEvent/ChannelRecData.h
Go to the documentation of this file.
1 #ifndef _mevt_ChannelRecData_h_
2 #define _mevt_ChannelRecData_h_
3 
4 // For frienship declaration, just forward declare.
5 #include <utl/ShadowPtr_fwd.h>
6 #include <utl/ShadowPtr.h>
7 #include <utl/Trace.h>
8 
9 #include <list>
10 
11 
12 namespace mevt {
13 
14  class Channel;
15 
16 
26  private:
27  typedef std::list<unsigned int> PatternMatchBinContainer;
28 
29  public:
30  typedef PatternMatchBinContainer::const_iterator PatternMatchBinIterator;
31 
33 
34  const utl::TraceUI& GetTrace() const;
35 
36  void MakeTrace();
37 
38  bool HasTrace() const;
39 
45  unsigned int GetNumberOfPatternMatchs() const;
46 
50  void AddPatternMatchBin(unsigned int bin);
51 
55  void ClearPatternMatchBins();
56 
61 
66 
67  private:
70 
71  // Keep the size separately, to avoid linear behaviour.
72  PatternMatchBinContainer::size_type fNPatternMatchBins = 0;
74 
79  friend class Channel;
80 
87  };
88 
89 }
90 
91 
92 #endif
PatternMatchBinContainer::size_type fNPatternMatchBins
PatternMatchBinIterator PatternMatchBinsBegin() const
Begin of the collection of times.
PatternMatchBinContainer::const_iterator PatternMatchBinIterator
PatternMatchBinContainer fPatternMatchBins
void ClearPatternMatchBins()
Clears pattern match detection times information.
utl::ShadowPtr< utl::TraceUI > fTrace
PatternMatchBinIterator PatternMatchBinsEnd() const
End of the collection of times.
unsigned int GetNumberOfPatternMatchs() const
Retrieve the number of pattern matchs that impinged this scintillator.
void AddPatternMatchBin(unsigned int bin)
Adds the time of a pattern match detection.
Template class for a FADC data or calibrated data container. Use the typedefs (TraceD, TraceI, etc.) defined in Trace-fwd.h.
Definition: Trace-fwd.h:19
Channel level event data.
std::list< unsigned int > PatternMatchBinContainer
Channel level reconstruction data.

, generated on Tue Sep 26 2023.