Public Member Functions | Protected Attributes | List of all members
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::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 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 33 of file RunHistoryStandard.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file RunHistoryStandard.cxx.

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

Definition at line 29 of file RunHistoryStandard.cxx.

30  {
31  }

Member Function Documentation

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

Definition at line 57 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 48 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 43 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 42 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 44 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 42 of file RunHistoryStandard.cxx.

43  {
44  switch(fRunType) {
45  case(kProductionRun):
46  return std::string("Production");
47  case(kCommissioningRun):
48  return std::string("Commissioning");
49  case(kTestRun):
50  return std::string("Test");
51  case(kPedestalRun):
52  return std::string("Pedestal");
53  case(kCalibrationRun):
54  return std::string("Calibration");
55  case(kUnknownRunType):
56  default:
57  return std::string("Uknown");
58  }
59  }
std::string string
Definition: nybbler.cc:12
void detinfo::RunHistoryStandard::SetDetId ( int  id)
inline

Definition at line 54 of file RunHistoryStandard.h.

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

Definition at line 59 of file RunHistoryStandard.h.

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

Definition at line 52 of file RunHistoryStandard.h.

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

Definition at line 53 of file RunHistoryStandard.h.

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

Definition at line 58 of file RunHistoryStandard.h.

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

Definition at line 50 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 46 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 47 of file RunHistoryStandard.h.

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

Implements detinfo::RunHistory.

Definition at line 34 of file RunHistoryStandard.cxx.

35  {
36  if (ts == 0) return false;
37 
38  return true;
39  }

Member Data Documentation

int detinfo::RunHistoryStandard::fDetId
protected

Definition at line 66 of file RunHistoryStandard.h.

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

Definition at line 72 of file RunHistoryStandard.h.

int detinfo::RunHistoryStandard::fNSubruns
protected

Definition at line 64 of file RunHistoryStandard.h.

int detinfo::RunHistoryStandard::fRun
protected

Definition at line 63 of file RunHistoryStandard.h.

int detinfo::RunHistoryStandard::fRunType
protected

Definition at line 65 of file RunHistoryStandard.h.

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

Definition at line 71 of file RunHistoryStandard.h.

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

Definition at line 74 of file RunHistoryStandard.h.

uint64_t detinfo::RunHistoryStandard::fTStart
protected

Definition at line 68 of file RunHistoryStandard.h.

uint64_t detinfo::RunHistoryStandard::fTStop
protected

Definition at line 69 of file RunHistoryStandard.h.


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