66 descriptions.
add(
"hcalTestNumberingTest", desc);
78 for (
int zs = 0; zs < 2; ++zs) {
79 int zside = 2 * zs - 1;
81 for (
int eta = etas.first;
eta <= etas.second; ++
eta) {
82 std::vector<std::pair<int, double> > phis = hcr->
getPhis(sub,
eta);
83 for (
unsigned int k = 0;
k < phis.size(); ++
k) {
84 int phi = phis[
k].first;
85 int lmin = (
type == 1 &&
eta == 16) ? 8 : 1;
86 int lmax = (
type == 1) ? 19 : ((
eta == 16) ? 7 : 17);
87 for (
int lay = lmin; lay <= lmax; ++lay) {
88 std::pair<int, int> etd = hcs->
getEtaDepth(sub,
eta, phi, zside, 0, lay);
94 edm::LogVerbatim(
"HcalSim") <<
"I/P " << sub <<
":" << zside *
eta <<
":" << phi <<
":" << lay <<
" Normal "
const edm::ESGetToken< HcalDDDSimConstants, HcalSimNumberingRecord > tokSim_
Log< level::Info, true > LogVerbatim
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tokReco_
#define DEFINE_FWK_MODULE(type)
virtual uint32_t getUnitID(const HcalNumberingFromDDD::HcalID &id)
constexpr uint32_t rawId() const
get the raw id
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
bool getData(T &iHolder) const
std::vector< std::pair< int, double > > getPhis(const int &subdet, const int &ieta) const
~HcalTestNumberingTester() override=default
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HcalTestNumberingTester(const edm::ParameterSet &)
std::pair< int, int > getEtaDepth(const int &det, int etaR, const int &phi, const int &zside, int depth, const int &lay) const
DetId relabel(const uint32_t testId) const
std::pair< int, int > getEtaRange(const int &i) const