LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
POTSummary.h
Go to the documentation of this file.
1
#ifndef LARCOREOBJ_SUMMARYDATA_POTSUMMARY_H
9
#define LARCOREOBJ_SUMMARYDATA_POTSUMMARY_H
10
11
12
namespace
sumdata
{
13
14
class
POTSummary
{
15
public
:
16
double
totpot
= 0.0;
17
double
totgoodpot
= 0.0;
18
19
int
totspills
= 0;
20
int
goodspills
= 0;
21
22
23
POTSummary
() =
default
;
24
25
void
aggregate
(
POTSummary
const
&
other
);
26
27
};
28
29
template
<
typename
Stream>
30
Stream&
operator<<
(Stream&& o,
POTSummary
const
& a);
31
32
}
// namespace sumdata
33
34
35
//----------------------------------------------------------------------------
36
template
<
typename
Stream>
37
Stream&
sumdata::operator<<
(Stream&& o,
POTSummary
const
& a)
38
{
39
o <<
"This sub run has "
<< a.
totspills
40
<<
" total spills with an exposure of "
<< a.
totpot
<<
" POT"
41
<<
"\n with cuts on beam quality, there are "
<< a.
goodspills
42
<<
" good spills with an exposure of "
<< a.
totgoodpot
43
<<
"\n"
;
44
45
return
o;
46
}
// sumdata::operator<< (POTSummary)
47
48
49
#endif //LARCOREOBJ_SUMMARYDATA_POTSUMMARY_H
50
51
52
53
54
55
sumdata::POTSummary::goodspills
int goodspills
Definition:
POTSummary.h:20
sumdata::POTSummary::totspills
int totspills
Definition:
POTSummary.h:19
sumdata::POTSummary
Definition:
POTSummary.h:14
sumdata::POTSummary::totpot
double totpot
Definition:
POTSummary.h:16
sumdata::POTSummary::totgoodpot
double totgoodpot
Definition:
POTSummary.h:17
fhicl::other
Definition:
exception.h:26
sumdata::POTSummary::aggregate
void aggregate(POTSummary const &other)
Definition:
POTSummary.cxx:15
sumdata
Definition:
POTSummary.cxx:12
sumdata::POTSummary::POTSummary
POTSummary()=default
sumdata::operator<<
Stream & operator<<(Stream &&o, POTSummary const &a)
Definition:
POTSummary.h:37
larcoreobj
v07_00_01
source
larcoreobj
SummaryData
POTSummary.h
Generated on Wed Dec 12 2018 14:42:42 for LArSoft by
1.8.11