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)
180 for (
int samples = 0; samples < data->size(); samples++) {
204 for (
int samples = 0; samples < data->size(); samples++) {
228 for (
int samples = 0; samples < data->size(); samples++) {
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)
constexpr int ietaAbs() const
get the absolute value of the cell ieta
HalfHtrData * m_slotsDoubled[ChannelPattern::NUM_SLOTS][2]
constexpr int zside() const
get the z-side of the cell (1/-1)
std::vector< T >::const_iterator const_iterator
static const int NUM_CRATES
constexpr HcalSubdetector subdet() const
get the subdetector
void Fill(HtrXmlPatternToolParameters *params, HBHEDigiCollection::const_iterator data)
double fCQuantized[SAMPLES]
constexpr int iphi() const
get the cell iphi
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]
constexpr int depth() const
get the tower depth
Readout chain identification for Hcal.
CrateData * m_crates[ChannelPattern::NUM_CRATES]
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id