ATLAS Offline Software
RunData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #include "LArCafJobs/RunData.h"
7 
9 #include "TMath.h"
10 
11 #include <iostream>
12 using std::cout;
13 using std::endl;
14 
15 using namespace LArSamples;
16 
17 
19  : m_run(run)
20 {
22 }
23 
25  : m_run(other.m_run), m_triggerConfig(other.m_triggerConfig)
26 {
28 }
29 
30 
32 {
34 }
35 
36 
37 int RunData::triggerBitPosition(const TString& triggerBitName) const
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 }
43 
44 
45 TString RunData::triggerBits() const
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 }
54 
55 
56 TString RunData::description(unsigned int verbosity) const
57 {
58  TString printout = "";
59  if (verbosity & 1)
60  printout += Form("run %6d", run());
61  return printout;
62 }
RunData.h
LArSamples::RunData::description
TString description(unsigned int verbosity) const
Definition: RunData.cxx:56
LArSamples::RunData::triggerBitPosition
int triggerBitPosition(const TString &triggerBitName) const
Definition: RunData.cxx:37
LArSamples
Definition: AbsShape.h:24
LArSamples::RunData::RunData
RunData(int run=0)
Constructor
Definition: RunData.cxx:18
LArSamples::RunData
Definition: RunData.h:21
LArSamples::RunData::triggerBits
TString triggerBits() const
Definition: RunData.cxx:45
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
LArSamples::RunData::~RunData
virtual ~RunData()
Destructor.
Definition: RunData.cxx:31
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
ClassCounts.h