CMS 3D CMS Logo

ZdcTopology.h
Go to the documentation of this file.
1 #ifndef Geometry_ForwardGeometry_ZdcTopology_H
2 #define Geometry_ForwardGeometry_ZdcTopology_H 1
3 
4 #include <vector>
7 
15 public:
16  ZdcTopology();
18  void exclude(const HcalZDCDetId& id);
20  void exclude(int zside);
24  int exclude(int zside, HcalZDCDetId::Section section, int ich1, int ich2);
25 
28  virtual bool valid(const HcalZDCDetId& id) const;
29 
31  virtual std::vector<DetId> transverse(const DetId& id) const;
32 
34  virtual std::vector<DetId> longitudinal(const DetId& id) const;
35 
36  //** I have to put this here since they inherit from CaloSubdetectorTopology
37  std::vector<DetId> east(const DetId& id) const override;
38  std::vector<DetId> west(const DetId& id) const override;
39  std::vector<DetId> north(const DetId& id) const override;
40  std::vector<DetId> south(const DetId& id) const override;
41  std::vector<DetId> up(const DetId& id) const override;
42  std::vector<DetId> down(const DetId& id) const override;
43 
44  // how many channels (deph) for a given section
47 
48  //return first and last cell of each section
51 
52 private:
53  bool validRaw(const HcalZDCDetId& id) const;
54 
55  std::vector<HcalZDCDetId> exclusionList_;
56 
58 
61 
62  bool isExcluded(const HcalZDCDetId& id) const;
63 
64  int firstEMModule() const { return firstEMModule_; }
65  int firstHADModule() const { return firstHADModule_; }
66  int firstLUMModule() const { return firstLUMModule_; }
67  int firstRPDModule() const { return firstRPDModule_; }
68  int lastEMModule() const { return lastEMModule_; }
69  int lastHADModule() const { return lastHADModule_; }
70  int lastLUMModule() const { return lastLUMModule_; }
71  int lastRPDModule() const { return lastRPDModule_; }
72 };
73 
74 #endif
int firstEMModule_
Definition: ZdcTopology.h:59
std::vector< DetId > down(const DetId &id) const override
Definition: ZdcTopology.cc:292
bool excludeEM_
Definition: ZdcTopology.h:57
int lastRPDModule() const
Definition: ZdcTopology.h:71
void exclude(const HcalZDCDetId &id)
Definition: ZdcTopology.cc:64
int firstLUMModule() const
Definition: ZdcTopology.h:66
int lastLUMModule_
Definition: ZdcTopology.h:59
bool excludeRPD_
Definition: ZdcTopology.h:57
int firstHADModule() const
Definition: ZdcTopology.h:65
bool excludeHAD_
Definition: ZdcTopology.h:57
int firstRPDModule() const
Definition: ZdcTopology.h:67
int zside(DetId const &)
std::vector< DetId > up(const DetId &id) const override
Definition: ZdcTopology.cc:287
virtual bool valid(const DetId &) const
is this detid present in the Topology?
std::vector< DetId > north(const DetId &id) const override
Definition: ZdcTopology.cc:277
int firstRPDModule_
Definition: ZdcTopology.h:59
bool excludeZN_
Definition: ZdcTopology.h:57
int lastLUMModule() const
Definition: ZdcTopology.h:70
std::vector< DetId > south(const DetId &id) const override
Definition: ZdcTopology.cc:282
int firstHADModule_
Definition: ZdcTopology.h:59
virtual std::vector< DetId > transverse(const DetId &id) const
Definition: ZdcTopology.cc:183
std::vector< HcalZDCDetId > exclusionList_
Definition: ZdcTopology.h:55
bool excludeLUM_
Definition: ZdcTopology.h:57
int lastRPDModule_
Definition: ZdcTopology.h:59
int lastHADModule() const
Definition: ZdcTopology.h:69
virtual bool valid(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:27
int firstCell(HcalZDCDetId::Section section) const
Definition: ZdcTopology.cc:320
std::vector< DetId > east(const DetId &id) const override
Definition: ZdcTopology.cc:265
Definition: DetId.h:17
int lastEMModule() const
Definition: ZdcTopology.h:68
std::vector< DetId > west(const DetId &id) const override
Definition: ZdcTopology.cc:271
virtual unsigned int ncells() const
return a count of valid cells (for dense indexing use)
int lastCell(HcalZDCDetId::Section section) const
Definition: ZdcTopology.cc:342
bool validRaw(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:161
bool excludeZP_
Definition: ZdcTopology.h:57
int lastEMModule_
Definition: ZdcTopology.h:59
bool isExcluded(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:34
int firstLUMModule_
Definition: ZdcTopology.h:59
int firstEMModule() const
Definition: ZdcTopology.h:64
virtual std::vector< DetId > longitudinal(const DetId &id) const
Definition: ZdcTopology.cc:209
int lastHADModule_
Definition: ZdcTopology.h:59