36 switch (
id.section()) {
40 default: exed =
false;
45 std::vector<HcalZDCDetId>::const_iterator
53 std::vector<HcalZDCDetId>::iterator
87 default: exed =
false;
95 default: exed =
false;
99 bool isPositive =
false;
100 if(zside == 1)isPositive =
true;
103 for (
int ich = ich1; ich < ich2; ich++){
114 if(
id.channel() <= 0)
return false;
128 std::vector<DetId> vNeighborsDetId;
132 bool isPositive =
false;
133 if(zdcId.
zside()==1)isPositive =
true;
136 vNeighborsDetId.push_back(zdcDetId.
rawId());
137 return vNeighborsDetId;
141 vNeighborsDetId.push_back(zdcDetId.
rawId());
142 return vNeighborsDetId;
145 vNeighborsDetId.push_back(zdcDetId.
rawId());
147 vNeighborsDetId.push_back(zdcDetId.
rawId());
149 return vNeighborsDetId;
153 std::vector<DetId> vNeighborsDetId;
157 bool isPositive =
false;
158 if(zdcId.
zside()==1)isPositive =
true;
161 vNeighborsDetId.push_back(zdcDetId.
rawId());
162 return vNeighborsDetId;
166 vNeighborsDetId.push_back(zdcDetId.
rawId());
167 return vNeighborsDetId;
170 vNeighborsDetId.push_back(zdcDetId.
rawId());
172 vNeighborsDetId.push_back(zdcDetId.
rawId());
175 bool isPositive =
false;
176 if(zdcId.
zside()==1)isPositive =
true;
179 vNeighborsDetId.push_back(zdcDetId.
rawId());
180 return vNeighborsDetId;
184 vNeighborsDetId.push_back(zdcDetId.
rawId());
185 return vNeighborsDetId;
188 return vNeighborsDetId;
193 std::cout <<
"ZdcTopology::east() not yet implemented" << std::endl;
194 std::vector<DetId> vNeighborsDetId;
195 return vNeighborsDetId;
200 std::cout <<
"ZdcTopology::west() not yet implemented" << std::endl;
201 std::vector<DetId> vNeighborsDetId;
202 return vNeighborsDetId;
207 std::cout <<
"ZdcTopology::north() not yet implemented" << std::endl;
208 std::vector<DetId> vNeighborsDetId;
209 return vNeighborsDetId;
213 std::cout <<
"ZdcTopology::south() not yet implemented" << std::endl;
214 std::vector<DetId> vNeighborsDetId;
215 return vNeighborsDetId;
219 std::cout <<
"ZdcTopology::up() not yet implemented" << std::endl;
220 std::vector<DetId> vNeighborsDetId;
221 return vNeighborsDetId;
225 std::cout <<
"ZdcTopology::down() not yet implemented" << std::endl;
226 std::vector<DetId> vNeighborsDetId;
227 return vNeighborsDetId;
static const int ICH_LUM_MAX
static const int ICH_EM_MAX
void exclude(const HcalZDCDetId &id)
virtual std::vector< DetId > transverse(const DetId &id) const
int zside() const
get the z-side of the cell (1/-1)
virtual std::vector< DetId > down(const DetId &id) const
bool validRaw(const HcalZDCDetId &id) const
virtual std::vector< DetId > up(const DetId &id) const
uint32_t rawId() const
get the raw id
virtual std::vector< DetId > south(const DetId &id) const
virtual std::vector< DetId > west(const DetId &id) const
virtual bool valid(const HcalZDCDetId &id) const
int lastCell(HcalZDCDetId::Section section) const
virtual std::vector< DetId > north(const DetId &id) const
virtual unsigned int ncells() const
return a count of valid cells (for dense indexing use)
Abs< T >::type abs(const T &t)
std::vector< HcalZDCDetId > exclusionList_
Section section() const
get the section
int channel() const
get the channel
bool isExcluded(const HcalZDCDetId &id) const
int firstCell(HcalZDCDetId::Section section) const
virtual std::vector< DetId > east(const DetId &id) const
volatile std::atomic< bool > shutdown_flag false
static const int ICH_HAD_MAX
virtual std::vector< DetId > longitudinal(const DetId &id) const