15 for (
int iSample = 0; iSample <
SAMPLES; iSample++) {
22 for (
int jCrate = 0; jCrate <
NUM_CRATES; jCrate++) {
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++)
253 for (
int tb = 0; tb < 2; tb++) {
254 if (slotsActive[
slot])
264 for (
int tb = 0; tb < 2; tb++) {
281 if (cratesActive[
crate])
constexpr void setHTR(int crate, int slot, int tb)
void Fill_by_hand(const HcalElectronicsMap *, int)
ALPAKA_FN_ACC int dcc(int ieta, int iphi)
HalfHtrData * m_slotsDoubled[ChannelPattern::NUM_SLOTS][2]
constexpr int zside() const
get the z-side of the cell (1/-1)
constexpr int ietaAbs() const
get the absolute value of the cell ieta
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
std::vector< T >::const_iterator const_iterator
ALPAKA_FN_ACC int side(int ieta, int iphi)
static const int NUM_CRATES
constexpr HcalSubdetector subdet() const
get the subdetector
void Fill(HtrXmlPatternToolParameters *params, HBHEDigiCollection::const_iterator data)
double fCQuantized[SAMPLES]
ChannelPattern m_patterns[24]
CrateData(int crate, int slotsActive[ChannelPattern::NUM_SLOTS])
static const int NUM_SLOTS
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.
constexpr int iphi() const
get the cell iphi
CrateData * m_crates[ChannelPattern::NUM_CRATES]
constexpr int depth() const
get the tower depth