39 default: exed =
false;
43 switch (
id.section()) {
47 default: exed =
false;
52 std::vector<HcalZDCDetId>::const_iterator
60 std::vector<HcalZDCDetId>::iterator
94 default: exed =
false;
102 default: exed =
false;
106 bool isPositive =
false;
107 if(zside == 1)isPositive =
true;
110 for (
int ich = ich1; ich < ich2; ich++){
120 if(
abs(
id.zside())!=1)
return false;
121 if(
id.channel() <= 0)
return false;
135 std::vector<DetId> vNeighborsDetId;
139 bool isPositive =
false;
140 if(zdcId.
zside()==1)isPositive =
true;
143 vNeighborsDetId.push_back(zdcDetId.
rawId());
144 return vNeighborsDetId;
148 vNeighborsDetId.push_back(zdcDetId.
rawId());
149 return vNeighborsDetId;
152 vNeighborsDetId.push_back(zdcDetId.
rawId());
154 vNeighborsDetId.push_back(zdcDetId.
rawId());
156 return vNeighborsDetId;
160 std::vector<DetId> vNeighborsDetId;
164 bool isPositive =
false;
165 if(zdcId.
zside()==1)isPositive =
true;
168 vNeighborsDetId.push_back(zdcDetId.
rawId());
169 return vNeighborsDetId;
173 vNeighborsDetId.push_back(zdcDetId.
rawId());
174 return vNeighborsDetId;
177 vNeighborsDetId.push_back(zdcDetId.
rawId());
179 vNeighborsDetId.push_back(zdcDetId.
rawId());
182 bool isPositive =
false;
183 if(zdcId.
zside()==1)isPositive =
true;
186 vNeighborsDetId.push_back(zdcDetId.
rawId());
187 return vNeighborsDetId;
191 vNeighborsDetId.push_back(zdcDetId.
rawId());
192 return vNeighborsDetId;
195 return vNeighborsDetId;
200 std::cout <<
"ZdcTopology::east() not yet implemented" << std::endl;
201 std::vector<DetId> vNeighborsDetId;
202 return vNeighborsDetId;
207 std::cout <<
"ZdcTopology::west() not yet implemented" << std::endl;
208 std::vector<DetId> vNeighborsDetId;
209 return vNeighborsDetId;
214 std::cout <<
"ZdcTopology::north() not yet implemented" << std::endl;
215 std::vector<DetId> vNeighborsDetId;
216 return vNeighborsDetId;
220 std::cout <<
"ZdcTopology::south() not yet implemented" << std::endl;
221 std::vector<DetId> vNeighborsDetId;
222 return vNeighborsDetId;
226 std::cout <<
"ZdcTopology::up() not yet implemented" << std::endl;
227 std::vector<DetId> vNeighborsDetId;
228 return vNeighborsDetId;
232 std::cout <<
"ZdcTopology::down() not yet implemented" << std::endl;
233 std::vector<DetId> vNeighborsDetId;
234 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