Public Member Functions | Public Attributes | List of all members
sumdata::POTSum Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-24/SummaryData/POTSum.h"

Public Member Functions

 POTSum ()
 
 ~POTSum ()
 
 POTSum (double totPOT, double totgoodPOT, int totSpills, int goodSpills)
 
void Print (std::ostream &stream)
 
void operator+= (sumdata::POTSum const &b)
 

Public Attributes

double totpot
 normalized by 10^12 POT More...
 
double totgoodpot
 normalized by 10^12 POT More...
 
int totspills
 
int goodspills
 

Detailed Description

Definition at line 13 of file POTSum.h.

Constructor & Destructor Documentation

sumdata::POTSum::POTSum ( )

Definition at line 11 of file POTSum.cxx.

12  : totpot (0.0)
13  , totgoodpot(0.0)
14  , totspills (0)
15  , goodspills(0)
16  {
17  }
int goodspills
Definition: POTSum.h:31
int totspills
Definition: POTSum.h:30
double totgoodpot
normalized by 10^12 POT
Definition: POTSum.h:28
double totpot
normalized by 10^12 POT
Definition: POTSum.h:27
sumdata::POTSum::~POTSum ( )

Definition at line 32 of file POTSum.cxx.

33  {
34  }
sumdata::POTSum::POTSum ( double  totPOT,
double  totgoodPOT,
int  totSpills,
int  goodSpills 
)

Definition at line 20 of file POTSum.cxx.

24  : totpot (totPOT)
25  , totgoodpot(totgoodPOT)
26  , totspills (totSpills)
27  , goodspills(goodSpills)
28  {
29  }
int goodspills
Definition: POTSum.h:31
int totspills
Definition: POTSum.h:30
double totgoodpot
normalized by 10^12 POT
Definition: POTSum.h:28
double totpot
normalized by 10^12 POT
Definition: POTSum.h:27

Member Function Documentation

void sumdata::POTSum::operator+= ( sumdata::POTSum const &  b)
inline

Definition at line 38 of file POTSum.h.

References goodspills, totgoodpot, totpot, and totspills.

39 {
40  this->totpot += b.totpot;
41  this->totgoodpot += b.totgoodpot;
42  this->totspills += b.totspills;
43  this->goodspills += b.goodspills;
44 
45  return;
46 }
int goodspills
Definition: POTSum.h:31
const hit & b
Definition: hits.cxx:21
int totspills
Definition: POTSum.h:30
double totgoodpot
normalized by 10^12 POT
Definition: POTSum.h:28
double totpot
normalized by 10^12 POT
Definition: POTSum.h:27
void sumdata::POTSum::Print ( std::ostream &  stream)

Definition at line 37 of file POTSum.cxx.

References goodspills, totgoodpot, totpot, and totspills.

38  {
39  stream << "This sub run has " << totspills << " total spills with an exposure of " << totpot << " POT\n"
40  << "With cuts on beam quality, there are " << goodspills << " good spills with an exposure of " << totgoodpot;
41  }
int goodspills
Definition: POTSum.h:31
int totspills
Definition: POTSum.h:30
double totgoodpot
normalized by 10^12 POT
Definition: POTSum.h:28
double totpot
normalized by 10^12 POT
Definition: POTSum.h:27

Member Data Documentation

int sumdata::POTSum::goodspills
double sumdata::POTSum::totgoodpot
double sumdata::POTSum::totpot
int sumdata::POTSum::totspills

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