ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LArSamples::RunData Class Reference

#include <RunData.h>

Collaboration diagram for LArSamples::RunData:

Public Member Functions

 RunData (int run=0)
 Constructor
More...
 
 RunData (const RunData &other)
 
virtual ~RunData ()
 Destructor. More...
 
void addBit (const TString &triggerBitName, unsigned int triggerBitPosition)
 
int triggerBitPosition (const TString &triggerBitName) const
 
int run () const
 
unsigned int nTriggerBits () const
 
const std::map< TString, unsigned int > & triggerConfig () const
 
TString triggerBits () const
 
double footprint () const
 
void setRun (unsigned int run)
 
TString description (unsigned int verbosity) const
 

Private Member Functions

RunDataoperator= (const RunData &)
 

Private Attributes

int m_run
 
std::map< TString, unsigned int > m_triggerConfig
 

Detailed Description

Definition at line 21 of file RunData.h.

Constructor & Destructor Documentation

◆ RunData() [1/2]

RunData::RunData ( int  run = 0)

Constructor

Definition at line 18 of file RunData.cxx.

19  : m_run(run)
20 {
22 }

◆ RunData() [2/2]

RunData::RunData ( const RunData other)

Definition at line 24 of file RunData.cxx.

25  : m_run(other.m_run), m_triggerConfig(other.m_triggerConfig)
26 {
28 }

◆ ~RunData()

RunData::~RunData ( )
virtual

Destructor.

Definition at line 31 of file RunData.cxx.

32 {
34 }

Member Function Documentation

◆ addBit()

void LArSamples::RunData::addBit ( const TString &  triggerBitName,
unsigned int  triggerBitPosition 
)
inline

Definition at line 33 of file RunData.h.

33 { m_triggerConfig[triggerBitName] = triggerBitPosition; }

◆ description()

TString RunData::description ( unsigned int  verbosity) const

Definition at line 56 of file RunData.cxx.

57 {
58  TString printout = "";
59  if (verbosity & 1)
60  printout += Form("run %6d", run());
61  return printout;
62 }

◆ footprint()

double LArSamples::RunData::footprint ( ) const
inline

Definition at line 43 of file RunData.h.

43 { return sizeof(*this); }

◆ nTriggerBits()

unsigned int LArSamples::RunData::nTriggerBits ( ) const
inline

Definition at line 38 of file RunData.h.

38 { return m_triggerConfig.size(); }

◆ operator=()

RunData& LArSamples::RunData::operator= ( const RunData )
private

◆ run()

int LArSamples::RunData::run ( ) const
inline

Definition at line 36 of file RunData.h.

36 { return m_run; }

◆ setRun()

void LArSamples::RunData::setRun ( unsigned int  run)
inline

Definition at line 45 of file RunData.h.

45 { m_run = run; }

◆ triggerBitPosition()

int RunData::triggerBitPosition ( const TString &  triggerBitName) const

Definition at line 37 of file RunData.cxx.

38 {
39  std::map<TString, unsigned int>::const_iterator entry = m_triggerConfig.find(triggerBitName);
40  if (entry == m_triggerConfig.end()) return -1;
41  return entry->second;
42 }

◆ triggerBits()

TString RunData::triggerBits ( ) const

Definition at line 45 of file RunData.cxx.

46 {
47  TString bits;
48  for (const std::pair<const TString, unsigned int>& bit : m_triggerConfig) {
49  if (bits != "") bits += "\n";
50  bits += bit.first;
51  }
52  return bits;
53 }

◆ triggerConfig()

const std::map<TString, unsigned int>& LArSamples::RunData::triggerConfig ( ) const
inline

Definition at line 39 of file RunData.h.

39 { return m_triggerConfig; }

Member Data Documentation

◆ m_run

int LArSamples::RunData::m_run
private

Definition at line 50 of file RunData.h.

◆ m_triggerConfig

std::map<TString, unsigned int> LArSamples::RunData::m_triggerConfig
private

Definition at line 51 of file RunData.h.


The documentation for this class was generated from the following files:
LArSamples::RunData::triggerBitPosition
int triggerBitPosition(const TString &triggerBitName) const
Definition: RunData.cxx:37
LArSamples::RunData::m_run
int m_run
Definition: RunData.h:50
LArSamples::ClassCounts::decrementInstanceCount
void decrementInstanceCount() const
Definition: LArCafJobs/LArCafJobs/ClassCounts.h:33
run
Definition: run.py:1
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
LArSamples::RunData::m_triggerConfig
std::map< TString, unsigned int > m_triggerConfig
Definition: RunData.h:51
LArSamples::ClassCounts::incrementInstanceCount
void incrementInstanceCount() const
Definition: LArCafJobs/LArCafJobs/ClassCounts.h:32
covarianceTool.verbosity
verbosity
Definition: covarianceTool.py:513
LArSamples::RunData::run
int run() const
Definition: RunData.h:36
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16