9 HcalDetId getHotCell(std::vector<HBHERecHitCollection::const_iterator>&
hit,
bool includeHO,
bool useRaw,
bool) {
11 std::vector<HcalDetId> dets;
12 std::vector<double> energies;
13 for (
unsigned int ihit=0; ihit<hit.size(); ihit++) {
16 if ((id0.subdet() !=
HcalOuter) || includeHO) {
17 HcalDetId id1(id0.subdet(),id0.ieta(),id0.iphi(),1);
19 for (
unsigned int idet=0; idet<dets.size(); ++idet) {
20 if (id1 == dets[idet]) {
28 energies.push_back(energy);
32 double energyMax(-99.);
34 for (
unsigned int ihit=0; ihit<dets.size(); ihit++) {
35 if (energies[ihit] > energyMax) {
36 energyMax = energies[ihit];
45 std::vector<HcalDetId> dets;
46 std::vector<double> energies;
47 for (
unsigned int ihit=0; ihit<
hit.size(); ihit++) {
53 for (
unsigned int idet=0; idet<dets.size(); ++idet) {
54 if (id1 == dets[idet]) {
62 energies.push_back(energy);
66 double energyMax(-99.);
68 for (
unsigned int ihit=0; ihit<dets.size(); ihit++) {
69 if (energies[ihit] > energyMax) {
70 energyMax = energies[ihit];
HcalSubdetector subdet() const
get the subdetector
double getRawEnergy(HBHERecHitCollection::const_iterator hit, bool useRaw=false)
int ieta() const
get the cell ieta
int iphi() const
get the cell iphi
HcalDetId getHotCell(std::vector< HBHERecHitCollection::const_iterator > &hit, bool includeHO, bool useRaw=false, bool debug=false)