35 default: exed =
false;
40 std::vector<HcalCastorDetId>::const_iterator
48 std::vector<HcalCastorDetId>::iterator
82 default: exed =
false;
92 else { exed =
false; };
96 bool isPositive =
false;
97 if(zside == 1)isPositive =
true;
100 for (
int isec = isec1; isec < isec2; isec++){
101 for (
int imod = imod1; imod < imod2; imod++) {
119 std::vector<DetId> vNeighborsDetId;
123 bool isPositive =
false;
124 if(castorId.
zside()==1)isPositive =
true;
125 if(castorId.
sector()==1) {
128 vNeighborsDetId.emplace_back(castorDetId.
rawId());
129 return vNeighborsDetId;
131 if(castorId.
sector()== 16){
134 vNeighborsDetId.emplace_back(castorDetId.
rawId());
135 return vNeighborsDetId;
139 vNeighborsDetId.emplace_back(castorDetId.
rawId());
142 vNeighborsDetId.emplace_back(castorDetId.
rawId());
144 return vNeighborsDetId;
148 std::vector<DetId> vNeighborsDetId;
152 bool isPositive =
false;
153 if(castorId.
zside()==1)isPositive =
true;
156 vNeighborsDetId.emplace_back(castorDetId.
rawId());
157 return vNeighborsDetId;
161 vNeighborsDetId.emplace_back(castorDetId.
rawId());
162 return vNeighborsDetId;
165 vNeighborsDetId.emplace_back(castorDetId.
rawId());
167 vNeighborsDetId.emplace_back(castorDetId.
rawId());
170 bool isPositive =
false;
171 if(castorId.
zside()==1)isPositive =
true;
174 vNeighborsDetId.emplace_back(castorDetId.
rawId());
175 return vNeighborsDetId;
179 vNeighborsDetId.emplace_back(castorDetId.
rawId());
180 return vNeighborsDetId;
183 return vNeighborsDetId;
189 std::cout <<
"CastorTopology::east() not yet implemented" << std::endl;
190 std::vector<DetId> vNeighborsDetId;
191 return vNeighborsDetId;
196 std::cout <<
"CastorTopology::west() not yet implemented" << std::endl;
197 std::vector<DetId> vNeighborsDetId;
198 return vNeighborsDetId;
203 std::cout <<
"CastorTopology::north() not yet implemented" << std::endl;
204 std::vector<DetId> vNeighborsDetId;
205 return vNeighborsDetId;
209 std::cout <<
"CastorTopology::south() not yet implemented" << std::endl;
210 std::vector<DetId> vNeighborsDetId;
211 return vNeighborsDetId;
215 std::cout <<
"CastorTopology::up() not yet implemented" << std::endl;
216 std::vector<DetId> vNeighborsDetId;
217 return vNeighborsDetId;
221 std::cout <<
"CastorTopology::down() not yet implemented" << std::endl;
222 std::vector<DetId> vNeighborsDetId;
223 return vNeighborsDetId;
static bool validDetId(Section iSection, bool posEta, int iSector, int iMod)
int sector() const
get the sector (1-16)
virtual std::vector< DetId > incModule(const DetId &id) const
std::vector< DetId > north(const DetId &id) const override
static const int MODULE_EM_MAX
constexpr uint32_t rawId() const
get the raw id
int module() const
get the module (1-2 for EM, 1-12 for HAD)
virtual bool validRaw(const HcalCastorDetId &id) const
Section section() const
get the section
std::vector< DetId > up(const DetId &id) const override
std::vector< DetId > south(const DetId &id) const override
static const int MODULE_HAD_MAX
std::vector< DetId > west(const DetId &id) const override
virtual unsigned int ncells() const
return a count of valid cells (for dense indexing use)
int zside() const
get the z-side of the cell (1/-1)
virtual bool valid(const HcalCastorDetId &id) const
virtual std::vector< DetId > incSector(const DetId &id) const
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 lastCell(HcalCastorDetId::Section section) const
void exclude(const HcalCastorDetId &id)
std::vector< HcalCastorDetId > exclusionList_