11 neutralDensity_(nd) { }
16 for (
auto & hcalHit : hcalHits) {
19 std::cout <<
"Hit[" <<
ii <<
"] " << std::hex << hcalHits[
ii].id()
22 double energy = (hcalHit.energy());
23 if (neutralDensity_) {
25 hcalHit.setEnergy(energy);
29 std::cout <<
"Hit " <<
ii <<
" out of " << hcalHits.size() <<
" " 33 hcalHit.setID(newid.
rawId());
39 edm::LogWarning(
"HcalSim") <<
"HcalHitRelabeller: no valid HcalDDDRecConstants";
55 std::cout <<
"Enter HcalHitRelabeller::relabel " << std::endl;
63 <<
"depth: " << depth <<
" " 64 <<
"ieta: " << eta <<
" " 65 <<
"iphi: " << phi <<
" " 66 <<
"layer: " << layer << std::endl;
81 std::cout <<
" new HcalDetId -> hex.RawID = " 84 std::cout <<
" det, z, depth, eta, phi = " << det <<
" " 85 << z <<
" "<<
id.depth <<
" " <<
id.eta <<
" " 86 <<
id.phi <<
" ---> " << hid << std::endl;
96 int zside = (z==0) ? (-1) : (1);
97 double wt = (((det==1) || (det==2)) && (depth == 1)) ?
100 std::cout <<
"EnergyWT::det: " << det <<
" z: " << z <<
":" << zside
101 <<
" depth: " << depth <<
" ieta: " << eta <<
" iphi: " << phi
102 <<
" layer: " << layer <<
" wt " << wt << std::endl;
void setGeometry(const HcalDDDRecConstants *&)
uint32_t rawId() const
get the raw id
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