test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17  ZdcTopology();
19  void exclude(const HcalZDCDetId& id);
21  void exclude(int zside);
23  void exclude(int zside, HcalZDCDetId::Section section);
25  int exclude(int zside, HcalZDCDetId::Section section, int ich1, int ich2);
26 
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  virtual std::vector<DetId> east(const DetId& id) const;
38  virtual std::vector<DetId> west(const DetId& id) const;
39  virtual std::vector<DetId> north(const DetId& id) const;
40  virtual std::vector<DetId> south(const DetId& id) const;
41  virtual std::vector<DetId> up(const DetId& id) const;
42  virtual std::vector<DetId> down(const DetId& id) const;
43 
44 
45  // how many channels (deph) for a given section
46  int ncells(HcalZDCDetId::Section section) const;
47 
48  //return first and last cell of each section
49  int firstCell(HcalZDCDetId::Section section)const;
50  int lastCell(HcalZDCDetId::Section section)const;
51 
52  private:
53 
54  bool validRaw(const HcalZDCDetId& id) const;
55 
56  std::vector<HcalZDCDetId> exclusionList_;
57 
59 
62 
63  bool isExcluded(const HcalZDCDetId& id) const;
64 
65  int firstEMModule() const {return firstEMModule_;}
66  int firstHADModule() const {return firstHADModule_;}
67  int firstLUMModule() const {return firstLUMModule_;}
68  int lastEMModule() const {return lastEMModule_;}
69  int lastHADModule() const {return lastHADModule_;}
70  int lastLUMModule() const {return lastLUMModule_;}
71 
72 };
73 
74 
75 #endif
int firstEMModule_
Definition: ZdcTopology.h:60
bool excludeEM_
Definition: ZdcTopology.h:58
void exclude(const HcalZDCDetId &id)
Definition: ZdcTopology.cc:59
virtual std::vector< DetId > transverse(const DetId &id) const
Definition: ZdcTopology.cc:134
int lastLUMModule_
Definition: ZdcTopology.h:60
bool excludeHAD_
Definition: ZdcTopology.h:58
virtual std::vector< DetId > down(const DetId &id) const
Definition: ZdcTopology.cc:230
int zside(DetId const &)
bool validRaw(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:118
virtual std::vector< DetId > up(const DetId &id) const
Definition: ZdcTopology.cc:224
int firstEMModule() const
Definition: ZdcTopology.h:65
virtual std::vector< DetId > south(const DetId &id) const
Definition: ZdcTopology.cc:218
virtual std::vector< DetId > west(const DetId &id) const
Definition: ZdcTopology.cc:205
virtual bool valid(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:25
int lastCell(HcalZDCDetId::Section section) const
Definition: ZdcTopology.cc:259
bool excludeZN_
Definition: ZdcTopology.h:58
virtual std::vector< DetId > north(const DetId &id) const
Definition: ZdcTopology.cc:212
int lastEMModule() const
Definition: ZdcTopology.h:68
virtual unsigned int ncells() const
return a count of valid cells (for dense indexing use)
int firstHADModule_
Definition: ZdcTopology.h:60
std::vector< HcalZDCDetId > exclusionList_
Definition: ZdcTopology.h:56
bool excludeLUM_
Definition: ZdcTopology.h:58
int lastHADModule() const
Definition: ZdcTopology.h:69
Definition: DetId.h:18
int lastLUMModule() const
Definition: ZdcTopology.h:70
bool isExcluded(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:32
int firstLUMModule() const
Definition: ZdcTopology.h:67
bool excludeZP_
Definition: ZdcTopology.h:58
int firstCell(HcalZDCDetId::Section section) const
Definition: ZdcTopology.cc:248
int lastEMModule_
Definition: ZdcTopology.h:60
int firstLUMModule_
Definition: ZdcTopology.h:60
virtual std::vector< DetId > east(const DetId &id) const
Definition: ZdcTopology.cc:198
int firstHADModule() const
Definition: ZdcTopology.h:66
virtual std::vector< DetId > longitudinal(const DetId &id) const
Definition: ZdcTopology.cc:159
int lastHADModule_
Definition: ZdcTopology.h:60