LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 35 of file RunHistoryStandard.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file RunHistoryStandard.cxx.

References fRun.

32  {
33  fRun=run;
34  }
detinfo::RunHistoryStandard::RunHistoryStandard ( RunHistoryStandard const &  )
delete
detinfo::RunHistoryStandard::~RunHistoryStandard ( )
virtual

Definition at line 37 of file RunHistoryStandard.cxx.

38  {
39  }

Member Function Documentation

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

Definition at line 59 of file RunHistoryStandard.h.

59 { 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 45 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 44 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 46 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 50 of file RunHistoryStandard.cxx.

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

51  {
52  switch(fRunType) {
53  case(kProductionRun):
54  return std::string("Production");
55  case(kCommissioningRun):
56  return std::string("Commissioning");
57  case(kTestRun):
58  return std::string("Test");
59  case(kPedestalRun):
60  return std::string("Pedestal");
61  case(kCalibrationRun):
62  return std::string("Calibration");
63  case(kUnknownRunType):
64  default:
65  return std::string("Uknown");
66  }
67  }
void detinfo::RunHistoryStandard::SetDetId ( int  id)
inline

Definition at line 56 of file RunHistoryStandard.h.

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

Definition at line 61 of file RunHistoryStandard.h.

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

Definition at line 54 of file RunHistoryStandard.h.

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

Definition at line 55 of file RunHistoryStandard.h.

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

Definition at line 60 of file RunHistoryStandard.h.

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

Definition at line 57 of file RunHistoryStandard.h.

References detinfo::SubRunStandard::fTStart.

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

Definition at line 58 of file RunHistoryStandard.h.

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

Definition at line 52 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 48 of file RunHistoryStandard.h.

References detinfo::SubRunStandard::fTStart.

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

Implements detinfo::RunHistory.

Definition at line 49 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 42 of file RunHistoryStandard.cxx.

43  {
44  if (ts == 0) return false;
45 
46  return true;
47  }

Member Data Documentation

int detinfo::RunHistoryStandard::fDetId
protected

Definition at line 68 of file RunHistoryStandard.h.

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

Definition at line 74 of file RunHistoryStandard.h.

int detinfo::RunHistoryStandard::fNSubruns
protected

Definition at line 66 of file RunHistoryStandard.h.

int detinfo::RunHistoryStandard::fRun
protected

Definition at line 65 of file RunHistoryStandard.h.

Referenced by RunHistoryStandard().

int detinfo::RunHistoryStandard::fRunType
protected

Definition at line 67 of file RunHistoryStandard.h.

Referenced by RunTypeAsString().

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

Definition at line 73 of file RunHistoryStandard.h.

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

Definition at line 76 of file RunHistoryStandard.h.

uint64_t detinfo::RunHistoryStandard::fTStart
protected

Definition at line 70 of file RunHistoryStandard.h.

uint64_t detinfo::RunHistoryStandard::fTStop
protected

Definition at line 71 of file RunHistoryStandard.h.


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