21 for (
auto& hcalHit : hcalHits) {
26 double energy = (hcalHit.energy());
33 edm::LogVerbatim(
"HcalSim") <<
"Hit " <<
ii <<
" out of " << hcalHits.size() <<
" " << std::hex << newid.
rawId()
36 hcalHit.setID(newid.
rawId());
43 edm::LogWarning(
"HcalSim") <<
"HcalHitRelabeller: no valid HcalDDDRecConstants";
63 <<
"depth: " <<
depth <<
" " 64 <<
"ieta: " <<
eta <<
" " 65 <<
"iphi: " <<
phi <<
" " 66 <<
"layer: " <<
layer;
68 sign = (
z == 0) ? (-1) : (1);
82 <<
" det, z, depth, eta, phi = " << det <<
" " <<
z <<
" " <<
id.depth <<
" " <<
id.eta
83 <<
" " <<
id.phi <<
" ---> " << hid;
91 int zside = (
z == 0) ? (-1) : (1);
95 <<
" ieta: " <<
eta <<
" iphi: " <<
phi <<
" layer: " <<
layer <<
" wt " << wt;
Log< level::Info, true > LogVerbatim
HcalID getHCID(int subdet, int ieta, int iphi, int lay, int idepth) const
void setGeometry(const HcalDDDRecConstants *&)
constexpr std::array< uint8_t, layerIndexSize > layer
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
DetId relabel(const uint32_t testId) const
void process(std::vector< PCaloHit > &hcalHits)
constexpr uint32_t rawId() const
get the raw id
double energyWt(const uint32_t testId) const
double getLayer0Wt(const int &det, const int &phi, const int &zside) const
HcalHitRelabeller(bool nd=false)
const HcalDDDRecConstants * theRecNumber
Log< level::Warning, false > LogWarning