Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garsoft
SummaryDataProducts
POTSummary.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
/// \file POTSummary.cxx
3
///
4
/// Definition of object to store pot related information
5
///
6
/// \version $Id: RunData.h,v 1.1.1.1 2011/03/03 00:19:49 brebel Exp $
7
/// \author brebel@fnal.gov
8
////////////////////////////////////////////////////////////////////////
9
10
11
#include "
SummaryDataProducts/POTSummary.h
"
12
13
namespace
gar
{
14
namespace
sumdata
{
15
16
//----------------------------------------------------------------------------
17
void
POTSummary::aggregate
(
POTSummary
const
&
other
) {
18
totpot
+= other.
totpot
;
19
totgoodpot
+= other.
totgoodpot
;
20
totspills
+= other.
totspills
;
21
goodspills
+= other.
goodspills
;
22
}
// POTSummary::aggregate()
23
24
//----------------------------------------------------------------------------
25
std::ostream&
operator<<
(std::ostream &o,
POTSummary
const
&
a
)
26
{
27
o <<
"This sub run has "
<< a.
totspills
28
<<
" total spills with an exposure of "
29
<< a.
totpot
<<
" POT"
<<
std::endl
30
<<
" with cuts on beam quality, there are "
<< a.
goodspills
31
<<
" good spills with an exposure of "
<< a.
totgoodpot
32
<<
std::endl
;
33
34
return
o;
35
}
36
37
}
// sumdata
38
}
// end namespace
gar::sumdata::POTSummary::totspills
unsigned int totspills
Definition:
POTSummary.h:26
gar::sumdata::POTSummary
Definition:
POTSummary.h:17
gar::sumdata::POTSummary::totpot
double totpot
Definition:
POTSummary.h:24
gar::sumdata::POTSummary::totgoodpot
double totgoodpot
Definition:
POTSummary.h:25
gar::sumdata::POTSummary::aggregate
void aggregate(POTSummary const &other)
Definition:
POTSummary.cxx:17
a
const double a
Definition:
gUpMuFluxGen.cxx:164
gar::sumdata::POTSummary::operator<<
friend std::ostream & operator<<(std::ostream &o, POTSummary const &a)
Definition:
POTSummary.cxx:25
gar::sumdata::POTSummary::goodspills
unsigned int goodspills
Definition:
POTSummary.h:27
fhicl::other
Definition:
exception.h:26
gar
General GArSoft Utilities.
Definition:
anatest_module.cc:57
sumdata
Definition:
GeometryConfigurationInfo.h:19
POTSummary.h
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11