LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 
10 
11 namespace anab{
12 
13  //----------------------------------------------------------------------
14  T0::T0()
15  : fTime(0)
16  , fTriggerType(0)
17  , fTriggerBits(0)
18  , fID(-1)
19  , fTriggerConfidence(-1)
20  {
21  }
22 
23  //----------------------------------------------------------------------
24  T0::T0(double Time,
25  unsigned int TriggerType,
26  int TriggerBits,
27  int ID,
28  double TriggerConfidence)
29  : fTime(Time)
30  , fTriggerType(TriggerType)
31  , fTriggerBits(TriggerBits)
32  , fID(ID)
33  , fTriggerConfidence(TriggerConfidence)
34  {
35 
36  }
37 
38  //----------------------------------------------------------------------
39  // ostream operator.
40  //
41  std::ostream& operator<< (std::ostream & o, T0 const& a)
42  {
43  o << "T0 with Time: " << a.fTime
44  << "\n from Trigger type: " << a.fTriggerType
45  << "\n with bits: " << a.fTriggerBits
46  << "\n with ID: " << a.fID
47  << "\n with confidence: " << a.fTriggerConfidence
48  <<std::endl;
49 
50  return o;
51  }
52 
53 }
T0()
Definition: T0.cxx:14
int fID
Current size of T0 data product.
Definition: T0.h:27
const unsigned int & TriggerType() const
Definition: T0.h:48
const int & TriggerBits() const
Definition: T0.h:49
friend std::ostream & operator<<(std::ostream &o, T0 const &a)
Definition: T0.cxx:41
const double & Time() const
Definition: T0.h:47
Definition: T0.h:19
double fTime
Time in ns.
Definition: T0.h:24
double fTriggerConfidence
Confidence with which this T0 is known.
Definition: T0.h:28
int fTriggerBits
An identifier for the Muon track / Flash / MCParticle used in matching.
Definition: T0.h:26
const int & ID() const
Definition: T0.h:50
const double & TriggerConfidence() const
Definition: T0.h:51
unsigned int fTriggerType
Type of trigger used. 0 - Muon Counters, 1 - Photon Detectors, 2 - Monte Carlo Truth.
Definition: T0.h:25