15 for (
int iSample = 0; iSample <
SAMPLES; iSample++) {
22 for (
int jCrate = 0; jCrate <
NUM_CRATES; jCrate++) {
88 int fiber_channel = (
m_chan - 1) % 3;
89 int fiber = (
m_chan - fiber_channel - 1) / 3 + 1;
90 int dcc_num = dcc[
m_crate] - 700;
109 int side = hdid.
zside();
111 int subdet = hdid.
subdet();
114 if (pattern_number == 1) {
129 if (pattern_number == 2) {
132 if (subdet == 4 && etaabs < 30)
135 if ((etaabs + 2) % 4 != 0)
137 int i = (etaabs + 2) / 4;
141 if ((phi + 3) % 4 != 0)
143 int j = (phi + 3) / 4;
154 if (pattern_number == 3) {
155 if (depth > 1 || etaabs != 18 || side != 1 || phi != 32)
241 for (
int i = 0;
i < 24;
i++)
242 m_patterns[
i].
setLoc(crate, slot, tb,
i + 1);
253 for (
int tb = 0; tb < 2; tb++) {
254 if (slotsActive[slot])
255 m_slotsDoubled[slot][tb] =
new HalfHtrData(crate, slot, tb);
257 m_slotsDoubled[slot][tb] =
nullptr;
264 for (
int tb = 0; tb < 2; tb++) {
265 if (m_slotsDoubled[slot][tb])
266 delete m_slotsDoubled[slot][tb];
273 return m_slotsDoubled[slot][tb];
281 if (cratesActive[crate])
282 m_crates[crate] =
new CrateData(crate, slotsActive);
284 m_crates[crate] =
nullptr;
291 delete m_crates[crate];
297 return m_crates[crate];
constexpr void setHTR(int crate, int slot, int tb)
void Fill_by_hand(const HcalElectronicsMap *, int)
HcalSubdetector subdet() const
get the subdetector
int zside() const
get the z-side of the cell (1/-1)
std::vector< T >::const_iterator const_iterator
static const int NUM_CRATES
int depth() const
get the tower depth
void Fill(HtrXmlPatternToolParameters *params, HBHEDigiCollection::const_iterator data)
double fCQuantized[SAMPLES]
CrateData(int crate, int slotsActive[ChannelPattern::NUM_SLOTS])
static const int NUM_SLOTS
int ietaAbs() const
get the absolute value of the cell ieta
int iphi() const
get the cell iphi
void setLoc(int crate, int slot, int tb, int chan)
HalfHtrData(int crate, int slot, int tb)
HalfHtrData * getHalfHtrData(int slot, int one_two_tb)
CrateData * getCrate(int crate)
HtrXmlPatternSet(int cratesActive[ChannelPattern::NUM_CRATES], int slotsActive[ChannelPattern::NUM_SLOTS])
char data[epos_bytes_allocation]
Readout chain identification for Hcal.
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id