All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
std::ostream & operator<<(std::ostream &o, Calorimetry const &a)
int fID
Current size of T0 data product.
Definition: T0.h:24
Definition: T0.h:16
process_name gaushit a
double fTime
Time in ns.
Definition: T0.h:21
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
unsigned int fTriggerType
Type of trigger used. 0 - Muon Counters, 1 - Photon Detectors, 2 - Monte Carlo Truth.
Definition: T0.h:22