Public Member Functions | Protected Attributes | List of all members
gar::detinfo::RunHistoryStandard Class Reference

#include <RunHistoryStandard.h>

Inheritance diagram for gar::detinfo::RunHistoryStandard:
gar::detinfo::RunHistory

Public Member Functions

 RunHistoryStandard ()
 
 RunHistoryStandard (int runnum)
 
 RunHistoryStandard (RunHistoryStandard const &)=delete
 
virtual ~RunHistoryStandard ()
 
virtual bool Update (uint64_t ts=0) override
 
virtual int RunNumber () const override
 
virtual int NSubruns () const override
 
virtual int RunType () const override
 
virtual std::string RunTypeAsString () const override
 
virtual uint64_t TStart () const override
 
virtual uint64_t TStop () const override
 
virtual uint64_t Duration () const override
 
std::vector< std::stringShifters ()
 
void SetNSubruns (int nsr)
 
void SetRunType (int rt)
 
void SetDetId (int id)
 
void SetTStart (uint64_t t)
 
void SetTStop (uint64_t t)
 
void AddShifter (std::string sh)
 
void SetShifters (std::vector< std::string > sh)
 
void SetDetName (std::string dn)
 
- Public Member Functions inherited from gar::detinfo::RunHistory
virtual ~RunHistory ()=default
 

Protected Attributes

int fRun
 
int fNSubruns
 
int fRunType
 
int fDetId
 
uint64_t fTStart
 
uint64_t fTStop
 
std::vector< std::stringfShifter
 
std::string fDetName
 
std::vector< SubRunStandardfSubrun
 

Detailed Description

Definition at line 36 of file RunHistoryStandard.h.

Constructor & Destructor Documentation

gar::detinfo::RunHistoryStandard::RunHistoryStandard ( )
gar::detinfo::RunHistoryStandard::RunHistoryStandard ( int  runnum)

Definition at line 34 of file RunHistoryStandard.cxx.

gar::detinfo::RunHistoryStandard::RunHistoryStandard ( RunHistoryStandard const &  )
delete
gar::detinfo::RunHistoryStandard::~RunHistoryStandard ( )
virtual

Definition at line 40 of file RunHistoryStandard.cxx.

41  {
42  }

Member Function Documentation

void gar::detinfo::RunHistoryStandard::AddShifter ( std::string  sh)
inline

Definition at line 60 of file RunHistoryStandard.h.

60 { fShifter.push_back(sh); }
std::vector< std::string > fShifter
virtual uint64_t gar::detinfo::RunHistoryStandard::Duration ( ) const
inlineoverridevirtual
virtual int gar::detinfo::RunHistoryStandard::NSubruns ( ) const
inlineoverridevirtual

Implements gar::detinfo::RunHistory.

Definition at line 46 of file RunHistoryStandard.h.

virtual int gar::detinfo::RunHistoryStandard::RunNumber ( ) const
inlineoverridevirtual

Implements gar::detinfo::RunHistory.

Definition at line 45 of file RunHistoryStandard.h.

virtual int gar::detinfo::RunHistoryStandard::RunType ( ) const
inlineoverridevirtual

Implements gar::detinfo::RunHistory.

Definition at line 47 of file RunHistoryStandard.h.

std::string gar::detinfo::RunHistoryStandard::RunTypeAsString ( ) const
overridevirtual

Implements gar::detinfo::RunHistory.

Definition at line 53 of file RunHistoryStandard.cxx.

54  {
55  switch(fRunType) {
56  case(kProductionRun):
57  return std::string("Production");
58  case(kCommissioningRun):
59  return std::string("Commissioning");
60  case(kTestRun):
61  return std::string("Test");
62  case(kPedestalRun):
63  return std::string("Pedestal");
64  case(kCalibrationRun):
65  return std::string("Calibration");
66  case(kUnknownRunType):
67  default:
68  return std::string("Uknown");
69  }
70  }
std::string string
Definition: nybbler.cc:12
void gar::detinfo::RunHistoryStandard::SetDetId ( int  id)
inline

Definition at line 57 of file RunHistoryStandard.h.

void gar::detinfo::RunHistoryStandard::SetDetName ( std::string  dn)
inline

Definition at line 62 of file RunHistoryStandard.h.

void gar::detinfo::RunHistoryStandard::SetNSubruns ( int  nsr)
inline

Definition at line 55 of file RunHistoryStandard.h.

void gar::detinfo::RunHistoryStandard::SetRunType ( int  rt)
inline

Definition at line 56 of file RunHistoryStandard.h.

void gar::detinfo::RunHistoryStandard::SetShifters ( std::vector< std::string sh)
inline

Definition at line 61 of file RunHistoryStandard.h.

61 { fShifter = sh; }
std::vector< std::string > fShifter
void gar::detinfo::RunHistoryStandard::SetTStart ( uint64_t  t)
inline
void gar::detinfo::RunHistoryStandard::SetTStop ( uint64_t  t)
inline
std::vector<std::string> gar::detinfo::RunHistoryStandard::Shifters ( )
inline

Definition at line 53 of file RunHistoryStandard.h.

53 { return fShifter; }
std::vector< std::string > fShifter
virtual uint64_t gar::detinfo::RunHistoryStandard::TStart ( ) const
inlineoverridevirtual

Implements gar::detinfo::RunHistory.

Definition at line 49 of file RunHistoryStandard.h.

virtual uint64_t gar::detinfo::RunHistoryStandard::TStop ( ) const
inlineoverridevirtual

Implements gar::detinfo::RunHistory.

Definition at line 50 of file RunHistoryStandard.h.

bool gar::detinfo::RunHistoryStandard::Update ( uint64_t  ts = 0)
overridevirtual

Implements gar::detinfo::RunHistory.

Definition at line 45 of file RunHistoryStandard.cxx.

46  {
47  if (ts == 0) return false;
48 
49  return true;
50  }

Member Data Documentation

int gar::detinfo::RunHistoryStandard::fDetId
protected

Definition at line 69 of file RunHistoryStandard.h.

std::string gar::detinfo::RunHistoryStandard::fDetName
protected

Definition at line 75 of file RunHistoryStandard.h.

int gar::detinfo::RunHistoryStandard::fNSubruns
protected

Definition at line 67 of file RunHistoryStandard.h.

int gar::detinfo::RunHistoryStandard::fRun
protected

Definition at line 66 of file RunHistoryStandard.h.

int gar::detinfo::RunHistoryStandard::fRunType
protected

Definition at line 68 of file RunHistoryStandard.h.

std::vector<std::string> gar::detinfo::RunHistoryStandard::fShifter
protected

Definition at line 74 of file RunHistoryStandard.h.

std::vector<SubRunStandard> gar::detinfo::RunHistoryStandard::fSubrun
protected

Definition at line 77 of file RunHistoryStandard.h.

uint64_t gar::detinfo::RunHistoryStandard::fTStart
protected

Definition at line 71 of file RunHistoryStandard.h.

uint64_t gar::detinfo::RunHistoryStandard::fTStop
protected

Definition at line 72 of file RunHistoryStandard.h.


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