Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larcoreobj
larcoreobj
SummaryData
POTSummary.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
/// \file larcoreobj/SummaryData/POTSummary.h
3
///
4
/// Definition of object to store pot related information
5
///
6
/// \author brebel@fnal.gov
7
////////////////////////////////////////////////////////////////////////
8
#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
a
const double a
Definition:
gUpMuFluxGen.cxx:164
sumdata::operator<<
std::ostream & operator<<(std::ostream &, GeometryConfigurationInfo const &)
Definition:
GeometryConfigurationInfo.cxx:19
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:
GeometryConfigurationInfo.h:19
sumdata::POTSummary::POTSummary
POTSummary()=default
Generated by
1.8.11