MEvent/ChannelRecData.cc
Go to the documentation of this file.
1 #include <mevt/ChannelRecData.h>
2 
3 
4 namespace mevt {
5 
6  unsigned int
8  const
9  {
10  return fNPatternMatchBins;
11  }
12 
13 
14  void
15  ChannelRecData::AddPatternMatchBin(const unsigned int bin)
16  {
17  fPatternMatchBins.push_back(bin);
19  }
20 
21 
22  void
24  {
25  fPatternMatchBins.clear();
27  }
28 
29 
32  const
33  {
34  return fPatternMatchBins.begin();
35  }
36 
37 
40  const
41  {
42  return fPatternMatchBins.end();
43  }
44 
47  {
48  return *fTrace;
49  }
50 
51 
52  const utl::TraceUI&
54  const
55  {
56  return *fTrace;
57  }
58 
59  void
61  {
62  if (fTrace)
63  ERROR("Trace already present.");
64  else
65  fTrace = new utl::TraceUI();
66  }
67 
68 
69  bool
71  const
72  {
73  return bool(fTrace);
74  }
75 
76 }
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
Trace< unsigned int > TraceUI
Definition: Trace-fwd.h:23
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165

, generated on Tue Sep 26 2023.