ATLAS Offline Software
RunData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
11 #ifndef LArSamples_RunData_H
12 #define LArSamples_RunData_H
13 
14 #include "TString.h"
15 #include <map>
17 
18 
19 namespace LArSamples {
20 
22 
23  public:
24 
26  RunData(int run = 0);
27 
28  RunData(const RunData& other);
29 
31  virtual ~RunData();
32 
33  void addBit(const TString& triggerBitName, unsigned int triggerBitPosition) { m_triggerConfig[triggerBitName] = triggerBitPosition; }
34  int triggerBitPosition(const TString& triggerBitName) const;
35 
36  int run() const { return m_run; }
37 
38  unsigned int nTriggerBits() const { return m_triggerConfig.size(); }
39  const std::map<TString, unsigned int>& triggerConfig() const { return m_triggerConfig; }
40 
41  TString triggerBits() const;
42 
43  double footprint() const { return sizeof(*this); }
44 
45  void setRun(unsigned int run) { m_run = run; }
46  TString description(unsigned int verbosity) const;
47 
48  private:
49 
50  int m_run;
51  std::map<TString, unsigned int> m_triggerConfig;
52 
53  RunData& operator= (const RunData&);
54  };
55 }
56 #endif
57 
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
LArSamples::RunData::setRun
void setRun(unsigned int run)
Definition: RunData.h:45
LArSamples::RunData::nTriggerBits
unsigned int nTriggerBits() const
Definition: RunData.h:38
LArSamples
Definition: AbsShape.h:24
LArSamples::RunData
Definition: RunData.h:21
LArSamples::RunData::triggerConfig
const std::map< TString, unsigned int > & triggerConfig() const
Definition: RunData.h:39
LArSamples::RunData::addBit
void addBit(const TString &triggerBitName, unsigned int triggerBitPosition)
Definition: RunData.h:33
LArSamples::RunData::m_run
int m_run
Definition: RunData.h:50
LArSamples::RunData::footprint
double footprint() const
Definition: RunData.h:43
run
Definition: run.py:1
LArSamples::RunData::m_triggerConfig
std::map< TString, unsigned int > m_triggerConfig
Definition: RunData.h:51
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
checker_macros.h
Define macros for attributes used to control the static checker.
description
std::string description
glabal timer - how long have I taken so far?
Definition: hcg.cxx:88