LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
T0.cxx
Go to the documentation of this file.
1 //
3 // \brief Definition of T0 analysis object
4 //
5 // \author k.warburton@sheffield.ac.uk
7 
9 
10 #include <ostream>
11 
12 namespace anab {
13 
14  //----------------------------------------------------------------------
15  T0::T0() : fTime(0), fTriggerType(0), fTriggerBits(0), fID(-1), fTriggerConfidence(-1) {}
16 
17  //----------------------------------------------------------------------
18  T0::T0(double Time, unsigned int TriggerType, int TriggerBits, int ID, double TriggerConfidence)
19  : fTime(Time)
20  , fTriggerType(TriggerType)
21  , fTriggerBits(TriggerBits)
22  , fID(ID)
23  , fTriggerConfidence(TriggerConfidence)
24  {}
25 
26  //----------------------------------------------------------------------
27  // ostream operator.
28  //
29  std::ostream& operator<<(std::ostream& o, T0 const& a)
30  {
31  o << "T0 with Time: " << a.fTime
32  << "\n from Trigger type: "
33  << a.fTriggerType
34  << "\n with bits: "
35  << a.fTriggerBits
36  << "\n with ID: " << a.fID
37  << "\n with confidence: " << a.fTriggerConfidence
38  << std::endl;
39 
40  return o;
41  }
42 
43 }
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