12 theGeometry(0), theRecNumber(0),
13 neutralDensity_(ps.getParameter<bool>(
"doNeutralDensityFilter")) { }
18 for (
unsigned int ii=0;
ii<hcalHits.size(); ++
ii) {
23 double energy = (hcalHits[
ii].energy());
26 hcalHits[
ii].setEnergy(energy);
30 std::cout <<
"Hit " <<
ii <<
" out of " << hcalHits.size() <<
" "
34 hcalHits[
ii].setID(newid.
rawId());
36 std::cout <<
"Modified Hit " << hcalHits[
ii] << std::endl;
40 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 == 0)) ?
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 CaloGeometry *&, const HcalDDDRecConstants *&)
const CaloGeometry * theGeometry
HcalHitRelabeller(const edm::ParameterSet &ps)
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)
void process(std::vector< PCaloHit > &hcalHits)
const HcalDDDRecConstants * theRecNumber
DetId relabel(const uint32_t testId) const
double getLayer0Wt(int det, int phi, int zside) const
double energyWt(const uint32_t testId) const