Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lardataobj
lardataobj
AnalysisBase
FlashMatch.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
//
3
// \brief Definition of FlashMatch analysis object
4
//
5
// \author bjpjones@mit.edu
6
////////////////////////////////////////////////////////////////////////
7
8
#include "
lardataobj/AnalysisBase/FlashMatch.h
"
9
10
#include <ostream>
11
12
namespace
anab
{
13
14
//----------------------------------------------------------------------
15
FlashMatch::FlashMatch
()
16
: fChi2(0)
17
, fFlashID(0)
18
, fSubjectID(0)
19
, fInBeam(false)
20
{
21
}
22
23
//----------------------------------------------------------------------
24
FlashMatch::FlashMatch
(
double
Chi2
,
25
int
FlashID
,
26
int
SubjectID
,
27
bool
InBeam
)
28
:
fChi2
(Chi2)
29
,
fFlashID
(FlashID)
30
,
fSubjectID
(SubjectID)
31
,
fInBeam
(InBeam)
32
{
33
34
}
35
36
//----------------------------------------------------------------------
37
// ostream operator.
38
//
39
std::ostream&
operator<<
(std::ostream & o,
FlashMatch
const
&
a
)
40
{
41
o <<
"Flash match with Chi2: "
<< a.
fChi2
42
<<
"\n from flash: "
<< a.
fFlashID
43
<<
"\n to object: "
<< a.
fSubjectID
44
<<
std::endl
;
45
46
47
return
o;
48
}
49
50
}
anab::FlashMatch::fChi2
double fChi2
Definition:
FlashMatch.h:21
anab::FlashMatch::FlashMatch
FlashMatch()
Definition:
FlashMatch.cxx:15
anab::FlashMatch::Chi2
const double & Chi2() const
Definition:
FlashMatch.h:42
FlashMatch.h
anab::FlashMatch::InBeam
const bool & InBeam() const
Definition:
FlashMatch.h:45
anab
Definition:
DUNEAnaTrackUtils.h:27
anab::FlashMatch::SubjectID
const int & SubjectID() const
Definition:
FlashMatch.h:44
a
const double a
Definition:
gUpMuFluxGen.cxx:164
anab::FlashMatch::operator<<
friend std::ostream & operator<<(std::ostream &o, FlashMatch const &a)
Definition:
FlashMatch.cxx:39
anab::FlashMatch::FlashID
const int & FlashID() const
Definition:
FlashMatch.h:43
anab::FlashMatch::fSubjectID
int fSubjectID
Definition:
FlashMatch.h:23
anab::FlashMatch::fFlashID
int fFlashID
Definition:
FlashMatch.h:22
anab::FlashMatch::fInBeam
bool fInBeam
Definition:
FlashMatch.h:24
anab::FlashMatch
Definition:
FlashMatch.h:16
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11