Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
N21-02-24
LEM
func
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
7
#include "
LEM/func/LibrarySummary.h
"
8
9
#include <ostream>
10
11
namespace
lem
12
{
13
//......................................................................
14
LibrarySummary::LibrarySummary
()
15
: N(0), nTrueNC(0), nSwapNC(0), totBkg(0), totSig(0), totEnrich(0)
16
{
17
}
18
19
//......................................................................
20
LibrarySummary
&
LibrarySummary::operator+=
(
const
LibrarySummary
&
s
)
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
lem::LibrarySummary::nTrueNC
int nTrueNC
Definition:
LibrarySummary.h:24
lem::LibrarySummary::operator+=
LibrarySummary & operator+=(const LibrarySummary &s)
Definition:
LibrarySummary.cxx:20
lem::LibrarySummary::totSig
double totSig
Definition:
LibrarySummary.h:27
lem::operator<<
std::ostream & operator<<(std::ostream &os, const lem::Heads &hs)
Definition:
Heads.cxx:140
lem::LibrarySummary::nSwapNC
int nSwapNC
Definition:
LibrarySummary.h:25
lem::LibrarySummary::totBkg
double totBkg
Definition:
LibrarySummary.h:26
lem
PID
Definition:
FillPIDs.h:14
s
const XML_Char * s
Definition:
expat.h:262
LibrarySummary.h
Details of the library LEM matches were made against.
lem::LibrarySummary
Details of the library LEM matches were made against.
Definition:
LibrarySummary.h:15
lem::LibrarySummary::totEnrich
double totEnrich
Definition:
LibrarySummary.h:28
lem::LibrarySummary::N
int N
Definition:
LibrarySummary.h:23
g4zmq.ls
def ls(target="")
Definition:
g4zmq.py:69
lem::LibrarySummary::LibrarySummary
LibrarySummary()
Definition:
LibrarySummary.cxx:14
Generated on Wed Feb 24 2021 14:12:54 for NOvA by
1.8.11