T0.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 // \version
3 //
4 // \brief Definition of data product to hold T0 information
5 //
6 // \author k.warburton@sheffield.ac.uk
7 //
8 ////////////////////////////////////////////////////////////////////////////
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 
19  T0();
20 
21  double fTime; ///< Time in ns
22  unsigned int fTriggerType; ///< Type of trigger used. 0 - Muon Counters, 1 - Photon Detectors, 2 - Monte Carlo Truth
23  int fTriggerBits; ///< An identifier for the Muon track / Flash / MCParticle used in matching.
24  int fID; ///< Current size of T0 data product.
25  double fTriggerConfidence; ///< Confidence with which this T0 is known.
26 
27  public:
28 
29  T0(double Time, unsigned int TriggerType, int TriggerBits, int ID=-1, double TriggerConfidence=-1);
30 
31  friend std::ostream& operator << (std::ostream &o, T0 const& a);
32 
33  const double& Time() const;
34  const unsigned int& TriggerType() const;
35  const int& TriggerBits() const;
36  const int& ID() const;
37  const double& TriggerConfidence() const;
38 
39  };
40 
41 }
42 
43 
44 inline const double& anab::T0::Time() const { return fTime; }
45 inline const unsigned int& anab::T0::TriggerType() const { return fTriggerType; }
46 inline const int& anab::T0::TriggerBits() const { return fTriggerBits; }
47 inline const int& anab::T0::ID() const { return fID; }
48 inline const double& anab::T0::TriggerConfidence() const { return fTriggerConfidence; }
49 
50 
51 #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: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