LibrarySummary.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file LibrarySummary.cxx
3 /// \brief Details of the library LEM matches were made against
4 /// \author Christopher Backhouse - bckhouse@caltech.edu
5 ////////////////////////////////////////////////////////////////////////
6 
8 
9 #include <ostream>
10 
11 namespace lem
12 {
13  //......................................................................
15  : N(0), nTrueNC(0), nSwapNC(0), totBkg(0), totSig(0), totEnrich(0)
16  {
17  }
18 
19  //......................................................................
21  {
22  N += s.N;
23  nTrueNC += s.nTrueNC;
24  nSwapNC += s.nSwapNC;
25  totBkg += s.totBkg;
26  totSig += s.totSig;
27  totEnrich += s.totEnrich;
28  return *this;
29  }
30 
31  //......................................................................
32  std::ostream& operator<<(std::ostream& os, const lem::LibrarySummary& ls)
33  {
34  os << ls.N << " events, weighted to "
35  << ls.totSig << " signal, "
36  << ls.totBkg << " background and "
37  << ls.totEnrich << " enriched background";
38 
39  return os;
40  }
41 
42 } // namespace
LibrarySummary & operator+=(const LibrarySummary &s)
std::ostream & operator<<(std::ostream &os, const lem::Heads &hs)
Definition: Heads.cxx:140
PID
Definition: FillPIDs.h:14
const XML_Char * s
Definition: expat.h:262
Details of the library LEM matches were made against.
Details of the library LEM matches were made against.
def ls(target="")
Definition: g4zmq.py:69