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