ATLAS Offline Software
LArCalorimeter
LArCafJobs
src
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
8
#include "
LArCafJobs/ClassCounts.h
"
9
#include "TMath.h"
10
11
#include <iostream>
12
using
std::cout;
13
using
std::endl;
14
15
using namespace
LArSamples
;
16
17
18
RunData::RunData
(
int
run
)
19
: m_run(
run
)
20
{
21
ClassCounts::incrementInstanceCount
(
"RunData"
);
22
}
23
24
RunData::RunData
(
const
RunData
&
other
)
25
: m_run(
other
.m_run), m_triggerConfig(
other
.m_triggerConfig)
26
{
27
ClassCounts::incrementInstanceCount
(
"RunData"
);
28
}
29
30
31
RunData::~RunData
()
32
{
33
ClassCounts::decrementInstanceCount
(
"RunData"
);
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
Generated on Sun Dec 22 2024 21:17:28 for ATLAS Offline Software by
1.8.18