Go to the documentation of this file.
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;
void setGeometry(const HcalDDDRecConstants *&)
double getLayer0Wt(const int &det, const int &phi, const int &zside) const
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
constexpr uint32_t rawId() const
get the raw id
const HcalDDDRecConstants * theRecNumber
void process(std::vector< PCaloHit > &hcalHits)
double energyWt(const uint32_t testId) const
HcalHitRelabeller(bool nd=false)
HcalID getHCID(int subdet, int ieta, int iphi, int lay, int idepth) const