LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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
namespace
sumdata
{
12
13
class
POTSummary
{
14
public
:
15
double
totpot
= 0.0;
16
double
totgoodpot
= 0.0;
17
18
int
totspills
= 0;
19
int
goodspills
= 0;
20
21
POTSummary
() =
default
;
22
23
void
aggregate
(
POTSummary
const
&
other
);
24
};
25
26
template
<
typename
Stream>
27
Stream&
operator<<
(Stream&& o,
POTSummary
const
& a);
28
29
}
// namespace sumdata
30
31
//----------------------------------------------------------------------------
32
template
<
typename
Stream>
33
Stream&
sumdata::operator<<
(Stream&& o,
POTSummary
const
& a)
34
{
35
o <<
"This sub run has "
<< a.
totspills
<<
" total spills with an exposure of "
<< a.
totpot
36
<<
" POT"
37
<<
"\n with cuts on beam quality, there are "
<< a.
goodspills
38
<<
" good spills with an exposure of "
<< a.
totgoodpot
<<
"\n"
;
39
40
return
o;
41
}
// sumdata::operator<< (POTSummary)
42
43
#endif //LARCOREOBJ_SUMMARYDATA_POTSUMMARY_H
sumdata::POTSummary::goodspills
int goodspills
Definition:
POTSummary.h:19
sumdata::POTSummary::totspills
int totspills
Definition:
POTSummary.h:18
sumdata::POTSummary
Definition:
POTSummary.h:13
sumdata::POTSummary::totpot
double totpot
Definition:
POTSummary.h:15
sumdata::operator<<
std::ostream & operator<<(std::ostream &, GeometryConfigurationInfo const &)
Definition:
GeometryConfigurationInfo.cxx:17
sumdata::POTSummary::totgoodpot
double totgoodpot
Definition:
POTSummary.h:16
fhicl::other
Definition:
exception.h:26
sumdata::POTSummary::aggregate
void aggregate(POTSummary const &other)
Definition:
POTSummary.cxx:14
sumdata
Definition:
GeometryConfigurationInfo.h:18
sumdata::POTSummary::POTSummary
POTSummary()=default
larcoreobj
v09_10_01
source
larcoreobj
SummaryData
POTSummary.h
Generated on Thu May 2 2024 20:59:35 for LArSoft by
1.8.11