Analysis Software
Documentation for sPHENIX simulation 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 <iostream>
6 #include <map> // for _Rb_tree_const_iterator
7 
10 {
11  return m_DeadChannels;
12 }
13 
16 {
17  return m_DeadChannels;
18 }
19 
21 {
22  m_DeadChannels.insert(key);
23 }
24 
26 {
27  auto it = m_DeadChannels.find(key);
28  if (it != m_DeadChannels.end())
29  {
30  return true;
31  }
32  return false;
33 }
34 
36 {
37  return size() > 0;
38 }
39 
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 }