CMS 3D CMS Logo

CastorTopology.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_CALOTOPOLOGY_CASTORTOPOLOGY_H
2 #define GEOMETRY_CALOTOPOLOGY_CASTORTOPOLOGY_H 1
3 
4 #include <vector>
7 
14 public:
15 
18  void exclude(const HcalCastorDetId& id);
20  void exclude(int zside);
22  void exclude(int zside, HcalCastorDetId::Section section);
24  int exclude(int zside, HcalCastorDetId::Section section1, int isec1, int imod1, HcalCastorDetId::Section section2, int isec2, int imod2);
25 
28  virtual bool valid(const HcalCastorDetId& id) const;
29 
31  virtual bool validRaw(const HcalCastorDetId& id) const;
32 
34  virtual std::vector<DetId> incSector(const DetId& id) const;
35 
37  virtual std::vector<DetId> incModule(const DetId& id) const;
38 
39  //** I have to put this here since they inherit from CaloSubdetectorTopology
40  std::vector<DetId> east(const DetId& id) const override;
41  std::vector<DetId> west(const DetId& id) const override;
42  std::vector<DetId> north(const DetId& id) const override;
43  std::vector<DetId> south(const DetId& id) const override;
44  std::vector<DetId> up(const DetId& id) const override;
45  std::vector<DetId> down(const DetId& id) const override;
46 
47  // how many channels (deph) for a given section
49  int ncells(HcalCastorDetId::Section section) const;
50 
51  //return first and last cell of each section
52  int firstCell(HcalCastorDetId::Section section)const;
53  int lastCell(HcalCastorDetId::Section section)const;
54 
55  private:
56 
57  std::vector<HcalCastorDetId> exclusionList_;
58 
60 
62 
63  bool isExcluded(const HcalCastorDetId& id) const;
64 
65  int firstEMModule() const {return firstEMModule_;}
66  int firstHADModule() const {return firstHADModule_;}
67  int lastEMModule() const {return lastEMModule_;}
68  int lastHADModule() const {return lastHADModule_;}
69 
70 };
71 
72 
73 #endif
74 
virtual std::vector< DetId > incModule(const DetId &id) const
std::vector< DetId > north(const DetId &id) const override
virtual bool validRaw(const HcalCastorDetId &id) const
int zside(DetId const &)
std::vector< DetId > up(const DetId &id) const override
std::vector< DetId > south(const DetId &id) const override
std::vector< DetId > west(const DetId &id) const override
int lastHADModule() const
virtual unsigned int ncells() const
return a count of valid cells (for dense indexing use)
virtual bool valid(const HcalCastorDetId &id) const
Definition: DetId.h:18
int lastEMModule() const
virtual std::vector< DetId > incSector(const DetId &id) const
virtual bool valid(const DetId &) const
is this detid present in the Topology?
std::vector< DetId > east(const DetId &id) const override
std::vector< DetId > down(const DetId &id) const override
int firstCell(HcalCastorDetId::Section section) const
bool isExcluded(const HcalCastorDetId &id) const
int firstEMModule() const
int lastCell(HcalCastorDetId::Section section) const
int firstHADModule() const
void exclude(const HcalCastorDetId &id)
std::vector< HcalCastorDetId > exclusionList_