Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
InttDeadMapv1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file InttDeadMapv1.cc
1
#include "
InttDeadMapv1.h
"
2
3
#include <
g4detectors/PHG4CellDefs.h
>
// for keytype
4
5
#include <iostream>
6
#include <map>
// for _Rb_tree_const_iterator
7
8
const
InttDeadMapv1::Map
&
9
InttDeadMapv1::getDeadChannels
(
void
)
const
10
{
11
return
m_DeadChannels
;
12
}
13
14
InttDeadMapv1::Map
&
15
InttDeadMapv1::getDeadChannels
(
void
)
16
{
17
return
m_DeadChannels
;
18
}
19
20
void
InttDeadMapv1::addDeadChannel
(
PHG4CellDefs::keytype
key)
21
{
22
m_DeadChannels
.insert(key);
23
}
24
25
bool
InttDeadMapv1::isDeadChannel
(
PHG4CellDefs::keytype
key)
const
26
{
27
auto
it
=
m_DeadChannels
.find(key);
28
if
(
it
!=
m_DeadChannels
.end())
29
{
30
return
true
;
31
}
32
return
false
;
33
}
34
35
int
InttDeadMapv1::isValid
()
const
36
{
37
return
size
() > 0;
38
}
39
40
void
InttDeadMapv1::Reset
()
41
{
42
m_DeadChannels
.clear();
43
}
44
45
void
InttDeadMapv1::identify
(std::ostream&
os
)
const
46
{
47
os <<
"InttDeadMapv1, number of dead channel & sensors: "
<<
size
() << std::endl;
48
}
coresoftware
blob
master
simulation
g4simulation
g4intt
InttDeadMapv1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:14
using
1.8.2 with
sPHENIX GitHub integration