EIC Software
 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&
12 {
13  return m_DeadChannels;
14 }
15 
18 {
19  return m_DeadChannels;
20 }
21 
23 {
24  m_DeadChannels.insert(key);
25 }
26 
28 {
29  auto it = m_DeadChannels.find(key);
30  if (it != m_DeadChannels.end())
31  {
32  return true;
33  }
34  return false;
35 }
36 
38 {
39  return size() > 0;
40 }
41 
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 }