Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lardataobj
lardataobj
AnalysisBase
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
8
#include "
lardataobj/AnalysisBase/T0.h
"
9
10
#include <ostream>
11
12
namespace
anab
{
13
14
//----------------------------------------------------------------------
15
T0::T0
()
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
}
anab::T0::T0
T0()
Definition:
T0.cxx:15
anab::T0::fID
int fID
Current size of T0 data product.
Definition:
T0.h:24
anab::T0::TriggerType
const unsigned int & TriggerType() const
Definition:
T0.h:45
anab::T0::TriggerBits
const int & TriggerBits() const
Definition:
T0.h:46
anab::T0::operator<<
friend std::ostream & operator<<(std::ostream &o, T0 const &a)
Definition:
T0.cxx:42
anab::T0::Time
const double & Time() const
Definition:
T0.h:44
T0.h
anab::T0
Definition:
T0.h:16
anab::T0::fTime
double fTime
Time in ns.
Definition:
T0.h:21
anab::T0::fTriggerConfidence
double fTriggerConfidence
Confidence with which this T0 is known.
Definition:
T0.h:25
anab
Definition:
DUNEAnaTrackUtils.h:27
a
const double a
Definition:
gUpMuFluxGen.cxx:164
anab::T0::fTriggerBits
int fTriggerBits
An identifier for the Muon track / Flash / MCParticle used in matching.
Definition:
T0.h:23
anab::T0::ID
const int & ID() const
Definition:
T0.h:47
anab::T0::TriggerConfidence
const double & TriggerConfidence() const
Definition:
T0.h:48
anab::T0::fTriggerType
unsigned int fTriggerType
Type of trigger used. 0 - Muon Counters, 1 - Photon Detectors, 2 - Monte Carlo Truth.
Definition:
T0.h:22
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11