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 
9 
10 #include <ostream>
11 
12 namespace anab{
13 
14  //----------------------------------------------------------------------
16  : fChi2(0)
17  , fFlashID(0)
18  , fSubjectID(0)
19  , fInBeam(false)
20  {
21  }
22 
23  //----------------------------------------------------------------------
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 }
const double & Chi2() const
Definition: FlashMatch.h:42
const bool & InBeam() const
Definition: FlashMatch.h:45
const int & SubjectID() const
Definition: FlashMatch.h:44
const double a
friend std::ostream & operator<<(std::ostream &o, FlashMatch const &a)
Definition: FlashMatch.cxx:39
const int & FlashID() const
Definition: FlashMatch.h:43
QTextStream & endl(QTextStream &s)