ToF.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 /// \file ToF.h
3 /// \brief Encapsulation of reconstructed Time-of-Flight (ToF)
4 /// information.
5 /// Part of beamline reconstruction for NOvA test beam.
6 /// \author Mike Wallbank (University of Cincinnati) <wallbank@fnal.gov>
7 /// \date November 2018
8 ////////////////////////////////////////////////////////////////////////////
9 
10 #ifndef BRBTOF_H
11 #define BRBTOF_H
12 
13 // framework
14 #include "cetlib_except/exception.h"
15 
16 // stl
17 #include <utility>
18 
19 // root
20 
21 // -----------------------------------------------------------------------
22 namespace brb {
23 
24  // -----------------------------------------------------------------------
25  class ToF {
26 
27  public:
28 
29  ToF();
30  ToF(float time, std::pair<float, float> timestamps);
31 
32  float Time() const;
33  std::pair<float, float> Timestamps() const;
34  float Timestamp(unsigned int counter) const;
35 
36  void SetTime(float time);
37  void SetTimestamps(std::pair<float, float> timestamps);
38  void SetTimestamp(unsigned int counter, float timestamp);
39 
40  private:
41 
42  float fTime;
43  std::pair<float, float> fTimestamps;
44 
45  };
46 
47 } // namespace
48 
49 #endif
void SetTimestamps(std::pair< float, float > timestamps)
Definition: ToF.cxx:47
std::pair< float, float > Timestamps() const
Definition: ToF.cxx:28
void SetTimestamp(unsigned int counter, float timestamp)
Definition: ToF.cxx:53
void SetTime(float time)
Definition: ToF.cxx:41
float Timestamp(unsigned int counter) const
Definition: ToF.cxx:33
float Time() const
Definition: ToF.cxx:23
Definition: ToF.h:25
std::pair< float, float > fTimestamps
Definition: ToF.h:43
float fTime
Definition: ToF.h:42
ToF()
Definition: ToF.cxx:13