EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
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 <map>
// for _Rb_tree_const_iterator
6
#include <iostream>
7
8
using namespace
std;
9
10
const
InttDeadMapv1::Map
&
11
InttDeadMapv1::getDeadChannels
(
void
)
const
12
{
13
return
m_DeadChannels;
14
}
15
16
InttDeadMapv1::Map
&
17
InttDeadMapv1::getDeadChannels
(
void
)
18
{
19
return
m_DeadChannels;
20
}
21
22
void
InttDeadMapv1::addDeadChannel
(
PHG4CellDefs::keytype
key)
23
{
24
m_DeadChannels.insert(key);
25
}
26
27
bool
InttDeadMapv1::isDeadChannel
(
PHG4CellDefs::keytype
key)
const
28
{
29
auto
it
= m_DeadChannels.find(key);
30
if
(
it
!= m_DeadChannels.end())
31
{
32
return
true
;
33
}
34
return
false
;
35
}
36
37
int
InttDeadMapv1::isValid
()
const
38
{
39
return
size() > 0;
40
}
41
42
void
InttDeadMapv1::Reset
()
43
{
44
m_DeadChannels.clear();
45
}
46
47
void
InttDeadMapv1::identify
(std::ostream& os)
const
48
{
49
os <<
"InttDeadMapv1, number of dead channel & sensors: "
<< size() << std::endl;
50
}
fun4all_coresoftware
blob
master
simulation
g4simulation
g4intt
InttDeadMapv1.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:49
using
1.8.2 with
EIC GitHub integration