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 firstRPDModule() const {return firstRPDModule_;}
69  int lastEMModule() const {return lastEMModule_;}
70  int lastHADModule() const {return lastHADModule_;}
71  int lastLUMModule() const {return lastLUMModule_;}
72  int lastRPDModule() const {return lastRPDModule_;}
73 
74 };
75 
76 
77 #endif
int firstEMModule_
Definition: ZdcTopology.h:60
bool excludeEM_
Definition: ZdcTopology.h:58
void exclude(const HcalZDCDetId &id)
Definition: ZdcTopology.cc:57
virtual std::vector< DetId > transverse(const DetId &id) const
Definition: ZdcTopology.cc:141
int lastLUMModule_
Definition: ZdcTopology.h:60
bool excludeRPD_
Definition: ZdcTopology.h:58
bool excludeHAD_
Definition: ZdcTopology.h:58
int firstRPDModule() const
Definition: ZdcTopology.h:68
int lastRPDModule() const
Definition: ZdcTopology.h:72
virtual std::vector< DetId > down(const DetId &id) const
Definition: ZdcTopology.cc:251
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:245
int firstEMModule() const
Definition: ZdcTopology.h:65
virtual std::vector< DetId > south(const DetId &id) const
Definition: ZdcTopology.cc:239
virtual std::vector< DetId > west(const DetId &id) const
Definition: ZdcTopology.cc:226
virtual bool valid(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:29
int firstRPDModule_
Definition: ZdcTopology.h:60
int lastCell(HcalZDCDetId::Section section) const
Definition: ZdcTopology.cc:282
bool excludeZN_
Definition: ZdcTopology.h:58
virtual std::vector< DetId > north(const DetId &id) const
Definition: ZdcTopology.cc:233
int lastEMModule() const
Definition: ZdcTopology.h:69
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 lastRPDModule_
Definition: ZdcTopology.h:60
int lastHADModule() const
Definition: ZdcTopology.h:70
Definition: DetId.h:18
int lastLUMModule() const
Definition: ZdcTopology.h:71
bool isExcluded(const HcalZDCDetId &id) const
Definition: ZdcTopology.cc:36
int firstLUMModule() const
Definition: ZdcTopology.h:67
bool excludeZP_
Definition: ZdcTopology.h:58
int firstCell(HcalZDCDetId::Section section) const
Definition: ZdcTopology.cc:270
int lastEMModule_
Definition: ZdcTopology.h:60
int firstLUMModule_
Definition: ZdcTopology.h:60
virtual std::vector< DetId > east(const DetId &id) const
Definition: ZdcTopology.cc:219
int firstHADModule() const
Definition: ZdcTopology.h:66
virtual std::vector< DetId > longitudinal(const DetId &id) const
Definition: ZdcTopology.cc:166
int lastHADModule_
Definition: ZdcTopology.h:60