Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InttDeadMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InttDeadMap.h
1 #ifndef G4INTT_INTTDEADMAP_H
2 #define G4INTT_INTTDEADMAP_H
3 
5 
6 #include <phool/PHObject.h>
7 
8 #include <iostream> // for cout, ostream
9 #include <set>
10 
11 class InttDeadMap : public PHObject
12 {
13  public:
14  typedef std::set<PHG4CellDefs::keytype> Map;
15 
16  ~InttDeadMap() override {}
17 
18  int isValid() const override;
19  void identify(std::ostream &os = std::cout) const override;
20 
21  void addDeadChannelIntt(const int layer,
22  const int ladder_phi, const int ladder_z,
23  const int strip_z, const int strip_phi);
24  virtual void addDeadChannel(PHG4CellDefs::keytype) { return; }
25 
26  virtual bool isDeadChannel(PHG4CellDefs::keytype) const { return false; }
27  bool isDeadChannelIntt(const int layer,
28  const int ladder_phi, const int ladder_z,
29  const int strip_z, const int strip_phi) const;
30 
32  virtual const Map &getDeadChannels(void) const;
33  virtual Map &getDeadChannels(void);
34 
35  virtual unsigned int size() const { return 0; }
36 
38  int ladder_phi, int ladder_z,
39  int strip_z, int strip_phi);
40 
41  static int getWildCardID() { return s_wildCardID; }
42 
43  protected:
45  {
46  }
47 
48  private:
49  static int s_wildCardID;
50 
51  ClassDefOverride(InttDeadMap, 1)
52 };
53 
54 #endif /* G4INTT_INTTDEADMAP_H */