ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawTowerZDCDeadMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawTowerZDCDeadMap.h
1 #ifndef EICZDCBASE_RAWTOWERZDCDEADMAP_H
2 #define EICZDCBASE_RAWTOWERZDCDEADMAP_H
3 
4 #include "RawTowerZDCDefs.h"
5 
6 #include <phool/PHObject.h>
7 
8 #include <iostream>
9 #include <set>
10 
12 {
13  public:
14  typedef std::set<RawTowerZDCDefs::keytype> Map;
15 
16  ~RawTowerZDCDeadMap() override {}
17 
18  void Reset() override;
19  int isValid() const override;
20 
21  void identify(std::ostream &os = std::cout) const override;
22 
25  virtual void addDeadTower(const unsigned int ieta, const unsigned int iphi);
26  virtual void addDeadTower(RawTowerZDCDefs::keytype key);
27 
28  virtual bool isDeadTower(RawTowerZDCDefs::keytype key);
29  virtual bool isDeadTower(const unsigned int ieta, const unsigned int iphi);
31  virtual const Map &getDeadTowers(void) const;
32  virtual Map &getDeadTowers(void);
33 
34  virtual unsigned int size() const { return 0; }
35 
36  protected:
38  {
39  }
40 
41  private:
42  ClassDefOverride(RawTowerZDCDeadMap, 1)
43 };
44 
45 #endif