Public Member Functions | Public Attributes | Friends | List of all members
gar::sumdata::POTSummary Class Reference

#include <POTSummary.h>

Public Member Functions

 POTSummary ()=default
 
void aggregate (POTSummary const &other)
 
double const & TotalPOT () const
 
unsigned int const & TotalSpills () const
 

Public Attributes

double totpot
 
double totgoodpot
 
unsigned int totspills
 
unsigned int goodspills
 

Friends

std::ostream & operator<< (std::ostream &o, POTSummary const &a)
 

Detailed Description

Definition at line 17 of file POTSummary.h.

Constructor & Destructor Documentation

gar::sumdata::POTSummary::POTSummary ( )
default

Member Function Documentation

void gar::sumdata::POTSummary::aggregate ( POTSummary const &  other)

Definition at line 17 of file POTSummary.cxx.

17  {
18  totpot += other.totpot ;
19  totgoodpot += other.totgoodpot;
20  totspills += other.totspills ;
21  goodspills += other.goodspills;
22  } // POTSummary::aggregate()
unsigned int totspills
Definition: POTSummary.h:26
unsigned int goodspills
Definition: POTSummary.h:27
double const & gar::sumdata::POTSummary::TotalPOT ( ) const
inline

Definition at line 45 of file POTSummary.h.

45 { return totpot; }
unsigned int const & gar::sumdata::POTSummary::TotalSpills ( ) const
inline

Definition at line 46 of file POTSummary.h.

46 { return totspills; }
unsigned int totspills
Definition: POTSummary.h:26

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
POTSummary const &  a 
)
friend

Definition at line 25 of file POTSummary.cxx.

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  }
const double a
QTextStream & endl(QTextStream &s)

Member Data Documentation

unsigned int gar::sumdata::POTSummary::goodspills

Definition at line 27 of file POTSummary.h.

double gar::sumdata::POTSummary::totgoodpot

Definition at line 25 of file POTSummary.h.

double gar::sumdata::POTSummary::totpot

Definition at line 24 of file POTSummary.h.

unsigned int gar::sumdata::POTSummary::totspills

Definition at line 26 of file POTSummary.h.


The documentation for this class was generated from the following files: