LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
FlashMatch.cxx
Go to the documentation of this file.
1 //
3 // \brief Definition of FlashMatch analysis object
4 //
5 // \author bjpjones@mit.edu
7 
9 
10 #include <ostream>
11 
12 namespace anab {
13 
14  //----------------------------------------------------------------------
15  FlashMatch::FlashMatch() : fChi2(0), fFlashID(0), fSubjectID(0), fInBeam(false) {}
16 
17  //----------------------------------------------------------------------
19  : fChi2(Chi2), fFlashID(FlashID), fSubjectID(SubjectID), fInBeam(InBeam)
20  {}
21 
22  //----------------------------------------------------------------------
23  // ostream operator.
24  //
25  std::ostream& operator<<(std::ostream& o, FlashMatch const& a)
26  {
27  o << "Flash match with Chi2: " << a.fChi2 << "\n from flash: " << a.fFlashID
28  << "\n to object: " << a.fSubjectID << std::endl;
29 
30  return o;
31  }
32 
33 }
const double & Chi2() const
Definition: FlashMatch.h:38
const bool & InBeam() const
Definition: FlashMatch.h:50
const int & SubjectID() const
Definition: FlashMatch.h:46
friend std::ostream & operator<<(std::ostream &o, FlashMatch const &a)
Definition: FlashMatch.cxx:25
const int & FlashID() const
Definition: FlashMatch.h:42