24 for (
auto & hcalHit : hcalHits) {
30 double energy = (hcalHit.energy());
31 if (neutralDensity_) {
33 hcalHit.setEnergy(energy);
38 << hcalHits.size() <<
" " << std::hex
42 hcalHit.setID(newid.
rawId());
50 edm::LogWarning(
"HcalSim") <<
"HcalHitRelabeller: no valid HcalDDDRecConstants";
74 <<
"depth: " << depth <<
" " 75 <<
"ieta: " << eta <<
" " 76 <<
"iphi: " << phi <<
" " 77 <<
"layer: " << layer;
94 <<
" det, z, depth, eta, phi = " << det <<
" " 95 << z <<
" "<<
id.depth <<
" " <<
id.eta <<
" " 96 <<
id.phi <<
" ---> " << hid;
105 int zside = (z==0) ? (-1) : (1);
106 double wt = (((det==1) || (det==2)) && (depth == 1)) ?
110 <<
":" << zside <<
" depth: " << depth
111 <<
" ieta: " << eta <<
" iphi: " << phi
112 <<
" layer: " << layer <<
" wt " << wt;
constexpr uint32_t rawId() const
get the raw id
void setGeometry(const HcalDDDRecConstants *&)
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
double energyWt(const uint32_t testId) const