18 for (
unsigned int icry = 0; icry < 25; icry++) {
19 unsigned int row = icry / 5;
20 unsigned int column = icry % 5;
23 int curr_eta = maxHitId.
ieta() + column - (5 / 2);
24 int curr_phi = maxHitId.
iphi() + row - (5 / 2);
26 if (curr_eta * maxHitId.
ieta() <= 0) {
27 if (maxHitId.
ieta() > 0)
41 std::cout <<
"Cannot construct 5x5 matrix around EBDetId " << maxHitId << std::endl;
53 for (
unsigned int icry = 0; icry < 9; icry++) {
54 unsigned int row = icry / 3;
55 unsigned int column = icry % 3;
60 std::cout <<
"Cannot construct 3x3 matrix around EBDetId " << maxHitId << std::endl;
73 int reducedSize = rowSize * columnSize;
75 for (
int icry = 0; icry < reducedSize; icry++) {
76 unsigned int eta =
minEta + icry / columnSize;
77 unsigned int phi =
minPhi + icry % columnSize;
82 std::cout <<
"Cannot construct full matrix !!! " << std::endl;
93 std::vector<EBDetId>& XstalsNxN,
94 float& outBoundEnergy,
97 std::vector<EBDetId>::iterator it;
101 energyVector.resize(ReducedMap.size(), 0.);
105 for (it = XstalsNxN.begin(); it != XstalsNxN.end(); ++it) {
106 if (ReducedMap.find(*it) != ReducedMap.end()) {
107 CalibMap::iterator it2 = ReducedMap.find(*it);
109 int icry = it2->second;
111 energyVector[icry] = (
hits->find(*it))->
energy();
115 outBoundEnergy += (
hits->find(*it))->
energy();
CalibMap::value_type pippo
int iphi() const
get the crystal iphi
CalibMap getMap(int, int, int, int)
std::map< EBDetId, unsigned int > CalibMap
int ieta() const
get the crystal ieta
std::vector< float > getEnergyVector(const EBRecHitCollection *, CalibMap &, std::vector< EBDetId > &, float &, int &)
static const int ETAPHIMODE
std::vector< EBDetId > get3x3Id(EBDetId const &)
std::vector< EBDetId > get5x5Id(EBDetId const &)