LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
T0.h
Go to the documentation of this file.
1 // \version
3 //
4 // \brief Definition of data product to hold T0 information
5 //
6 // \author k.warburton@sheffield.ac.uk
7 //
9 #ifndef ANAB_T0_H
10 #define ANAB_T0_H
11 
12 #include <vector>
13 #include <iosfwd>
14 #include <iostream>
15 #include <iomanip>
16 
17 namespace anab {
18 
19  class T0{
20  public:
21 
22  T0();
23 
24  double fTime;
25  unsigned int fTriggerType;
27  int fID;
29 
30  public:
31 
32  T0(double Time, unsigned int TriggerType, int TriggerBits, int ID=-1, double TriggerConfidence=-1);
33 
34  friend std::ostream& operator << (std::ostream &o, T0 const& a);
35 
36  const double& Time() const;
37  const unsigned int& TriggerType() const;
38  const int& TriggerBits() const;
39  const int& ID() const;
40  const double& TriggerConfidence() const;
41 
42  };
43 
44 }
45 
46 
47 inline const double& anab::T0::Time() const { return fTime; }
48 inline const unsigned int& anab::T0::TriggerType() const { return fTriggerType; }
49 inline const int& anab::T0::TriggerBits() const { return fTriggerBits; }
50 inline const int& anab::T0::ID() const { return fID; }
51 inline const double& anab::T0::TriggerConfidence() const { return fTriggerConfidence; }
52 
53 
54 #endif //ANAB_T0
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