21 for (
auto& hcalHit : hcalHits) {
26 double energy = (hcalHit.energy());
27 if (neutralDensity_) {
29 hcalHit.setEnergy(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);
94 edm::LogVerbatim(
"HcalSim") <<
"EnergyWT::det: " << det <<
" z: " << z <<
":" << zside <<
" depth: " << depth
95 <<
" ieta: " << eta <<
" iphi: " << phi <<
" layer: " << layer <<
" wt " << wt;
Log< level::Info, true > LogVerbatim
constexpr uint32_t rawId() const
get the raw id
void setGeometry(const HcalDDDRecConstants *&)
constexpr std::array< uint8_t, layerIndexSize > layer
HcalID getHCID(int subdet, int ieta, int iphi, int lay, int idepth) const
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
double getLayer0Wt(const int &det, const int &phi, const int &zside) const
void process(std::vector< PCaloHit > &hcalHits)
HcalHitRelabeller(bool nd=false)
const HcalDDDRecConstants * theRecNumber
DetId relabel(const uint32_t testId) const
Log< level::Warning, false > LogWarning
double energyWt(const uint32_t testId) const