14 for (
int i=0;
i<29;
i++) {
16 snprintf(name,10,
"Eta%d",
i+1);
24 for (
int i=0;
i<29;
i++) {
36 for (
unsigned int ii=0;
ii<hcalHits.size(); ++
ii) {
49 std::cout <<
"PCaloHit " << newcell <<
" position: " << globalposition << std::endl;
52 hcalHits[
ii].setID(newid.
rawId());
54 std::cout <<
"Modified Hit " << hcalHits[
ii] << std::endl;
69 std::cout <<
"Enter HcalHitRelabeller::relabel " << std::endl;
81 <<
"depth: " << depth <<
" "
82 <<
"ieta: " << eta <<
" "
83 <<
"iphi: " << phi <<
" "
84 <<
"layer: " << layer <<
" ";
90 if (eta >= 40) phi_skip = (phi-1)*4 - 1;
91 else if (eta > 20) phi_skip = (phi-1)*2 + 1;
92 if (phi_skip < 0) phi_skip += 72;
97 if(eta==16 && newDepth > 2) newDepth=2;
102 if (eta==16 && newDepth<3) newDepth=3;
114 std::cout <<
" new HcalDetId -> hex.RawID = "
117 std::cout <<
" det, z, depth, eta, phi = "
122 << phi <<
" " << phi_skip <<
" "
123 <<
" ---> " << hid << std::endl;
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
T getUntrackedParameter(std::string const &, T const &) const
const CaloGeometry * theGeometry
Global3DPoint GlobalPoint
void setGeometry(const CaloGeometry *&theGeometry)
virtual const CaloCellGeometry * getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
HcalHitRelabeller(const edm::ParameterSet &ps)
uint32_t rawId() const
get the raw id
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)
std::vector< std::vector< int > > m_segmentation
DetId relabel(const uint32_t testId) const
const GlobalPoint & getPosition() const
Returns the position of reference for this cell.