LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
detinfo::RunHistoryStandard Class Referenceabstract

#include "RunHistoryStandard.h"

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

Public Member Functions

 RunHistoryStandard ()
 
 RunHistoryStandard (int runnum)
 
 RunHistoryStandard (RunHistoryStandard const &)=delete
 
virtual ~RunHistoryStandard ()
 
virtual bool Update (uint64_t ts=0) override=0
 
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::string > Shifters ()
 
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)
 

Protected Attributes

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

Detailed Description

Definition at line 34 of file RunHistoryStandard.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file RunHistoryStandard.cxx.

References fRun.

21  {
22  fRun = run;
23  }
detinfo::RunHistoryStandard::RunHistoryStandard ( RunHistoryStandard const &  )
delete
detinfo::RunHistoryStandard::~RunHistoryStandard ( )
virtual

Definition at line 26 of file RunHistoryStandard.cxx.

26 {}

Member Function Documentation

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

Definition at line 58 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 44 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 43 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 45 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 37 of file RunHistoryStandard.cxx.

References fRunType, detinfo::kCalibrationRun, detinfo::kCommissioningRun, detinfo::kPedestalRun, detinfo::kProductionRun, detinfo::kTestRun, and detinfo::kUnknownRunType.

38  {
39  switch (fRunType) {
40  case (kProductionRun): return std::string("Production");
41  case (kCommissioningRun): return std::string("Commissioning");
42  case (kTestRun): return std::string("Test");
43  case (kPedestalRun): return std::string("Pedestal");
44  case (kCalibrationRun): return std::string("Calibration");
45  case (kUnknownRunType):
46  default: return std::string("Uknown");
47  }
48  }
void detinfo::RunHistoryStandard::SetDetId ( int  id)
inline

Definition at line 55 of file RunHistoryStandard.h.

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

Definition at line 60 of file RunHistoryStandard.h.

60 { fDetName = dn; }
void detinfo::RunHistoryStandard::SetNSubruns ( int  nsr)
inline

Definition at line 53 of file RunHistoryStandard.h.

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

Definition at line 54 of file RunHistoryStandard.h.

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

Definition at line 59 of file RunHistoryStandard.h.

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

Definition at line 56 of file RunHistoryStandard.h.

References detinfo::SubRunStandard::fTStart.

void detinfo::RunHistoryStandard::SetTStop ( uint64_t  t)
inline

Definition at line 57 of file RunHistoryStandard.h.

std::vector<std::string> detinfo::RunHistoryStandard::Shifters ( )
inline

Definition at line 51 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 47 of file RunHistoryStandard.h.

References detinfo::SubRunStandard::fTStart.

47 { return fTStart; }
virtual uint64_t detinfo::RunHistoryStandard::TStop ( ) const
inlineoverridevirtual

Implements detinfo::RunHistory.

Definition at line 48 of file RunHistoryStandard.h.

48 { return fTStop; }
bool detinfo::RunHistoryStandard::Update ( uint64_t  ts = 0)
overridepure virtual

Implements detinfo::RunHistory.

Definition at line 29 of file RunHistoryStandard.cxx.

30  {
31  if (ts == 0) return false;
32 
33  return true;
34  }

Member Data Documentation

int detinfo::RunHistoryStandard::fDetId
protected

Definition at line 67 of file RunHistoryStandard.h.

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

Definition at line 73 of file RunHistoryStandard.h.

int detinfo::RunHistoryStandard::fNSubruns
protected

Definition at line 65 of file RunHistoryStandard.h.

int detinfo::RunHistoryStandard::fRun
protected

Definition at line 64 of file RunHistoryStandard.h.

Referenced by RunHistoryStandard().

int detinfo::RunHistoryStandard::fRunType
protected

Definition at line 66 of file RunHistoryStandard.h.

Referenced by RunTypeAsString().

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

Definition at line 72 of file RunHistoryStandard.h.

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

Definition at line 75 of file RunHistoryStandard.h.

uint64_t detinfo::RunHistoryStandard::fTStart
protected

Definition at line 69 of file RunHistoryStandard.h.

uint64_t detinfo::RunHistoryStandard::fTStop
protected

Definition at line 70 of file RunHistoryStandard.h.


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