Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
LArCalorimeter
LArSamplesMon
LArSamplesMon
LArSamplesMon/LArSamplesMon/ClassCounts.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
#ifndef LArSamples_ClassCounts_H
11
#define LArSamples_ClassCounts_H
12
13
#include "TString.h"
14
#include <map>
15
#include "
CxxUtils/checker_macros.h
"
16
17
namespace
LArSamples
{
18
19
class
ATLAS_NOT_THREAD_SAFE
ClassCounts
{
20
21
public
:
22
24
ClassCounts
(
const
TString&
name
);
25
26
virtual
~ClassCounts
();
27
28
const
TString&
className
()
const
{
return
m_className; }
29
static
std::map<TString, int>&
counts
();
30
31
void
incrementInstanceCount
()
const
{
incrementInstanceCount
(
className
()); }
32
void
decrementInstanceCount
()
const
{
decrementInstanceCount
(
className
()); }
33
34
static
void
incrementInstanceCount
(
const
TString&
name
) { counts()[
name
]++; }
35
static
void
decrementInstanceCount
(
const
TString&
name
) { counts()[
name
]--; }
36
37
int
instanceCount
()
const
{
return
instanceCount
(
className
()); }
38
static
int
instanceCount
(
const
TString&
name
) {
return
m_counts ? (*m_counts)[
name
] : 0; }
39
40
static
void
printCountsTable
();
41
42
private
:
43
44
TString m_className;
45
static
std::map<TString, int>* m_counts;
46
};
47
}
48
#endif
ClassCounts
xx
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
LArSamples::ClassCounts::instanceCount
int instanceCount() const
Definition:
LArSamplesMon/LArSamplesMon/ClassCounts.h:37
LArSamples::ClassCounts::ClassCounts
ClassCounts(const TString &name)
Constructor
LArSamples::ClassCounts::className
const TString & className() const
Definition:
LArSamplesMon/LArSamplesMon/ClassCounts.h:28
LArSamples
Definition:
AbsShape.h:24
LArSamples::ClassCounts::instanceCount
static int instanceCount(const TString &name)
Definition:
LArSamplesMon/LArSamplesMon/ClassCounts.h:38
LArSamples::ClassCounts::decrementInstanceCount
void decrementInstanceCount() const
Definition:
LArSamplesMon/LArSamplesMon/ClassCounts.h:32
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
LArSamples::ClassCounts::decrementInstanceCount
static void decrementInstanceCount(const TString &name)
Definition:
LArSamplesMon/LArSamplesMon/ClassCounts.h:35
LArSamples::ClassCounts::incrementInstanceCount
void incrementInstanceCount() const
Definition:
LArSamplesMon/LArSamplesMon/ClassCounts.h:31
LArSamples::ClassCounts::~ClassCounts
virtual ~ClassCounts()
checker_macros.h
Define macros for attributes used to control the static checker.
LArSamples::ClassCounts::printCountsTable
static void printCountsTable()
LArL1Calo_ComputeHVCorr.className
className
Definition:
LArL1Calo_ComputeHVCorr.py:135
LArSamples::ClassCounts::counts
static std::map< TString, int > & counts()
LArSamples::ClassCounts::incrementInstanceCount
static void incrementInstanceCount(const TString &name)
Definition:
LArSamplesMon/LArSamplesMon/ClassCounts.h:34
Generated on Sat Mar 29 2025 21:08:23 for ATLAS Offline Software by
1.8.18