LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 
10 
11 namespace anab{
12 
13  //----------------------------------------------------------------------
15  : fChi2(0)
16  , fFlashID(0)
17  , fSubjectID(0)
18  , fInBeam(false)
19  {
20  }
21 
22  //----------------------------------------------------------------------
24  int FlashID,
25  int SubjectID,
26  bool InBeam)
27  : fChi2(Chi2)
28  , fFlashID(FlashID)
29  , fSubjectID(SubjectID)
30  , fInBeam(InBeam)
31  {
32 
33  }
34 
35  //----------------------------------------------------------------------
36  // ostream operator.
37  //
38  std::ostream& operator<< (std::ostream & o, FlashMatch const& a)
39  {
40  o << "Flash match with Chi2: " << a.fChi2
41  << "\n from flash: " << a.fFlashID
42  << "\n to object: " << a.fSubjectID
43  <<std::endl;
44 
45 
46  return o;
47  }
48 
49 }
const double & Chi2() const
Definition: FlashMatch.h:45
const bool & InBeam() const
Definition: FlashMatch.h:48
const int & SubjectID() const
Definition: FlashMatch.h:47
friend std::ostream & operator<<(std::ostream &o, FlashMatch const &a)
Definition: FlashMatch.cxx:38
const int & FlashID() const
Definition: FlashMatch.h:46