LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
T0.h
Go to the documentation of this file.
1 // \version
3 //
4 // \brief Definition of data product to hold T0 information
5 //
6 // \author k.warburton@sheffield.ac.uk
7 //
9 #ifndef ANAB_T0_H
10 #define ANAB_T0_H
11 
12 #include <iosfwd>
13 
14 namespace anab {
15 
16  class T0 {
17  public:
18  T0();
19 
20  double fTime;
21  unsigned int
24  int fID;
26 
27  public:
28  T0(double Time,
29  unsigned int TriggerType,
30  int TriggerBits,
31  int ID = -1,
32  double TriggerConfidence = -1);
33 
34  friend std::ostream& operator<<(std::ostream& o, T0 const& a);
35 
36  const double& Time() const;
37  const unsigned int& TriggerType() const;
38  const int& TriggerBits() const;
39  const int& ID() const;
40  const double& TriggerConfidence() const;
41  };
42 
43 }
44 
45 inline const double& anab::T0::Time() const
46 {
47  return fTime;
48 }
49 inline const unsigned int& anab::T0::TriggerType() const
50 {
51  return fTriggerType;
52 }
53 inline const int& anab::T0::TriggerBits() const
54 {
55  return fTriggerBits;
56 }
57 inline const int& anab::T0::ID() const
58 {
59  return fID;
60 }
61 inline const double& anab::T0::TriggerConfidence() const
62 {
63  return fTriggerConfidence;
64 }
65 
66 #endif //ANAB_T0
T0()
Definition: T0.cxx:15
int fID
Current size of T0 data product.
Definition: T0.h:24
const unsigned int & TriggerType() const
Definition: T0.h:49
const int & TriggerBits() const
Definition: T0.h:53
friend std::ostream & operator<<(std::ostream &o, T0 const &a)
Definition: T0.cxx:29
const double & Time() const
Definition: T0.h:45
Definition: T0.h:16
double fTime
Time in ns.
Definition: T0.h:20
double fTriggerConfidence
Confidence with which this T0 is known.
Definition: T0.h:25
int fTriggerBits
An identifier for the Muon track / Flash / MCParticle used in matching.
Definition: T0.h:23
const int & ID() const
Definition: T0.h:57
const double & TriggerConfidence() const
Definition: T0.h:61
unsigned int fTriggerType
Type of trigger used. 0 - Muon Counters, 1 - Photon Detectors, 2 - Monte Carlo Truth.
Definition: T0.h:22