Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
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
a
process_name gaushit a
Definition:
decode_signalprocess_icarus.fcl:37
sumdata::POTSummary::totpot
double totpot
Definition:
POTSummary.h:16
sumdata::operator<<
std::ostream & operator<<(std::ostream &, GeometryConfigurationInfo const &)
Definition:
GeometryConfigurationInfo.cxx:19
sumdata::POTSummary::totgoodpot
double totgoodpot
Definition:
POTSummary.h:17
sumdata::POTSummary::aggregate
void aggregate(POTSummary const &other)
Definition:
POTSummary.cxx:15
sumdata::POTSummary::POTSummary
POTSummary()=default
Stream
bnb BNB Stream
Definition:
runFilesFromSAM.sh:296
Generated by
1.8.5