Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawTowerDeadMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawTowerDeadMap.h
1 #ifndef CALOBASE_RAWTOWERDEADMAP_H
2 #define CALOBASE_RAWTOWERDEADMAP_H
3 
4 #include "RawTowerDefs.h"
5 
6 #include <phool/PHObject.h>
7 
8 #include <iostream>
9 #include <set>
10 
11 class RawTowerDeadMap : public PHObject
12 {
13  public:
14  typedef std::set<RawTowerDefs::keytype> Map;
15 
16  ~RawTowerDeadMap() override {}
17 
18  void Reset() override;
19  int isValid() const override;
20 
21  void identify(std::ostream &os = std::cout) const override;
22 
23  virtual void setCalorimeterID(RawTowerDefs::CalorimeterId /*caloid*/) {}
25  virtual void addDeadTower(const unsigned int ieta, const unsigned int iphi);
26  virtual void addDeadTower(RawTowerDefs::keytype key);
27 
28  virtual bool isDeadTower(RawTowerDefs::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(RawTowerDeadMap, 1)
43 };
44 
45 #endif