Public Member Functions | Public Attributes | Friends | List of all members
cmf::SpillSummary Struct Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CovarianceMatrixFit/dataProducts/Structs.h"

Public Member Functions

 SpillSummary ()
 
 SpillSummary (double const &totPOT, double const &gPOT, double const &lt, unsigned long int const &totSpill, unsigned long int const &goodSpill)
 
void clear ()
 
void operator+= (SpillSummary const &o)
 
void operator*= (float f)
 

Public Attributes

double totalPOT
 
double goodPOT
 
double liveTime
 
unsigned long int totalNumSpills
 
unsigned long int numGoodSpills
 

Friends

std::ostream & operator<< (std::ostream &o, SpillSummary const &ss)
 

Detailed Description

Definition at line 176 of file Structs.h.

Constructor & Destructor Documentation

cmf::SpillSummary::SpillSummary ( )

Definition at line 313 of file Structs.cxx.

314  : totalPOT (0.)
315  , goodPOT (0.)
316  , liveTime (0.)
317  , totalNumSpills(0)
318  , numGoodSpills (0)
319  {}
unsigned long int totalNumSpills
Definition: Structs.h:188
double liveTime
Definition: Structs.h:187
unsigned long int numGoodSpills
Definition: Structs.h:189
double goodPOT
Definition: Structs.h:186
double totalPOT
Definition: Structs.h:185
cmf::SpillSummary::SpillSummary ( double const &  totPOT,
double const &  gPOT,
double const &  lt,
unsigned long int const &  totSpill,
unsigned long int const &  goodSpill 
)

Definition at line 322 of file Structs.cxx.

327  : totalPOT (totPOT )
328  , goodPOT (gPOT )
329  , liveTime (lt )
330  , totalNumSpills(totSpill )
331  , numGoodSpills (goodSpill)
332  {}
double lt
unsigned long int totalNumSpills
Definition: Structs.h:188
double liveTime
Definition: Structs.h:187
unsigned long int numGoodSpills
Definition: Structs.h:189
double goodPOT
Definition: Structs.h:186
double totalPOT
Definition: Structs.h:185

Member Function Documentation

void cmf::SpillSummary::clear ( )

Definition at line 335 of file Structs.cxx.

References goodPOT, liveTime, numGoodSpills, totalNumSpills, and totalPOT.

336  {
337  totalPOT = 0.;
338  goodPOT = 0.;
339  liveTime = 0.;
340  totalNumSpills = 0;
341  numGoodSpills = 0;
342  }
unsigned long int totalNumSpills
Definition: Structs.h:188
double liveTime
Definition: Structs.h:187
unsigned long int numGoodSpills
Definition: Structs.h:189
double goodPOT
Definition: Structs.h:186
double totalPOT
Definition: Structs.h:185
void cmf::SpillSummary::operator*= ( float  f)

Definition at line 355 of file Structs.cxx.

References MakeMiniprodValidationCuts::f, goodPOT, liveTime, numGoodSpills, totalNumSpills, and totalPOT.

356  {
357  totalPOT *= f;
358  goodPOT *= f;
359  liveTime *= f;
360  totalNumSpills *= f;
361  numGoodSpills *= f;
362  }
unsigned long int totalNumSpills
Definition: Structs.h:188
double liveTime
Definition: Structs.h:187
unsigned long int numGoodSpills
Definition: Structs.h:189
double goodPOT
Definition: Structs.h:186
double totalPOT
Definition: Structs.h:185
void cmf::SpillSummary::operator+= ( SpillSummary const &  o)

Definition at line 345 of file Structs.cxx.

References goodPOT, liveTime, numGoodSpills, totalNumSpills, and totalPOT.

346  {
347  totalPOT += o.totalPOT;
348  goodPOT += o.goodPOT;
349  liveTime += o.liveTime;
350  totalNumSpills += o.totalNumSpills;
351  numGoodSpills += o.numGoodSpills;
352  }
unsigned long int totalNumSpills
Definition: Structs.h:188
double liveTime
Definition: Structs.h:187
unsigned long int numGoodSpills
Definition: Structs.h:189
double goodPOT
Definition: Structs.h:186
double totalPOT
Definition: Structs.h:185

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
SpillSummary const &  ss 
)
friend

Definition at line 199 of file Structs.h.

200  {
201  o << "good POT: "
202  << ss.goodPOT
203  << " total POT: "
204  << ss.totalPOT
205  << " live time: "
206  << ss.liveTime
207  << " good spills: "
208  << ss.numGoodSpills
209  << " total spills: "
210  << ss.totalNumSpills;
211 
212  return o;
213  }
Float_t ss
Definition: plot.C:24

Member Data Documentation

double cmf::SpillSummary::goodPOT
double cmf::SpillSummary::liveTime
unsigned long int cmf::SpillSummary::numGoodSpills

Definition at line 189 of file Structs.h.

Referenced by clear(), operator*=(), operator+=(), and cmf::operator<<().

unsigned long int cmf::SpillSummary::totalNumSpills

Definition at line 188 of file Structs.h.

Referenced by clear(), operator*=(), operator+=(), and cmf::operator<<().

double cmf::SpillSummary::totalPOT

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