35 default: exed =
false;
39 switch (
id.section()) {
42 default: exed =
false;
47 std::vector<HcalCastorDetId>::const_iterator
55 std::vector<HcalCastorDetId>::iterator
89 default: exed =
false;
99 else { exed =
false; };
103 bool isPositive =
false;
104 if(zside == 1)isPositive =
true;
107 for (
int isec = isec1; isec < isec2; isec++){
108 for (
int imod = imod1; imod < imod2; imod++) {
126 std::vector<DetId> vNeighborsDetId;
130 bool isPositive =
false;
131 if(castorId.
zside()==1)isPositive =
true;
132 if(castorId.
sector()==1) {
135 vNeighborsDetId.push_back(castorDetId.
rawId());
136 return vNeighborsDetId;
138 if(castorId.
sector()== 16){
141 vNeighborsDetId.push_back(castorDetId.
rawId());
142 return vNeighborsDetId;
146 vNeighborsDetId.push_back(castorDetId.
rawId());
149 vNeighborsDetId.push_back(castorDetId.
rawId());
151 return vNeighborsDetId;
155 std::vector<DetId> vNeighborsDetId;
159 bool isPositive =
false;
160 if(castorId.
zside()==1)isPositive =
true;
163 vNeighborsDetId.push_back(castorDetId.
rawId());
164 return vNeighborsDetId;
168 vNeighborsDetId.push_back(castorDetId.
rawId());
169 return vNeighborsDetId;
172 vNeighborsDetId.push_back(castorDetId.
rawId());
174 vNeighborsDetId.push_back(castorDetId.
rawId());
177 bool isPositive =
false;
178 if(castorId.
zside()==1)isPositive =
true;
181 vNeighborsDetId.push_back(castorDetId.
rawId());
182 return vNeighborsDetId;
186 vNeighborsDetId.push_back(castorDetId.
rawId());
187 return vNeighborsDetId;
190 return vNeighborsDetId;
196 std::cout <<
"CastorTopology::east() not yet implemented" << std::endl;
197 std::vector<DetId> vNeighborsDetId;
198 return vNeighborsDetId;
203 std::cout <<
"CastorTopology::west() not yet implemented" << std::endl;
204 std::vector<DetId> vNeighborsDetId;
205 return vNeighborsDetId;
210 std::cout <<
"CastorTopology::north() not yet implemented" << std::endl;
211 std::vector<DetId> vNeighborsDetId;
212 return vNeighborsDetId;
216 std::cout <<
"CastorTopology::south() not yet implemented" << std::endl;
217 std::vector<DetId> vNeighborsDetId;
218 return vNeighborsDetId;
222 std::cout <<
"CastorTopology::up() not yet implemented" << std::endl;
223 std::vector<DetId> vNeighborsDetId;
224 return vNeighborsDetId;
228 std::cout <<
"CastorTopology::down() not yet implemented" << std::endl;
229 std::vector<DetId> vNeighborsDetId;
230 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
virtual std::vector< DetId > up(const DetId &id) const
static const int MODULE_EM_MAX
int module() const
get the module (1-2 for EM, 1-12 for HAD)
virtual std::vector< DetId > west(const DetId &id) const
virtual bool validRaw(const HcalCastorDetId &id) const
Section section() const
get the section
virtual std::vector< DetId > south(const DetId &id) const
uint32_t rawId() const
get the raw id
static const int MODULE_HAD_MAX
virtual std::vector< DetId > north(const DetId &id) const
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 std::vector< DetId > down(const DetId &id) const
virtual bool valid(const HcalCastorDetId &id) const
virtual std::vector< DetId > incSector(const DetId &id) const
virtual std::vector< DetId > east(const DetId &id) const
int firstCell(HcalCastorDetId::Section section) const
bool isExcluded(const HcalCastorDetId &id) const
int lastCell(HcalCastorDetId::Section section) const
volatile std::atomic< bool > shutdown_flag false
void exclude(const HcalCastorDetId &id)
std::vector< HcalCastorDetId > exclusionList_