8 const std::map<int,int>& xtalReg,
11 const std::map<int,int>& IndexReg,
15 VFillMap (WindowX,WindowY,xtalReg,minE,
31 std::map<int, double> & xtlMap,
36 fillEBMap (EBMax, barrelHitsCollection, xtlMap,
41 fillEEMap (EEMax, endcapHitsCollection, xtlMap,
51 std::map<int, double> & EBRegionMap,
52 int EBNumberOfRegion,
double & pSubtract)
60 curr_eta=EBmax.
ieta() +
ii - (m_recoWindowSidex/2);
61 curr_phi=EBmax.
iphi() + ij - (m_recoWindowSidey/2);
63 if (
abs(curr_eta)>85)
continue;
65 if (curr_eta * EBmax.
ieta() <= 0) {
66 if (EBmax.
ieta() > 0) curr_eta--;
70 if (curr_phi < 1) curr_phi += 360;
71 if (curr_phi >= 360) curr_phi -= 360;
80 dummy = curr_recHit->energy () ;
88 dummy *= (*m_barrelMap)[det];
93 else pSubtract +=dummy;
100 std::map<int,double> & EExtlMap,
101 int EENumberOfRegion,
double & pSubtract )
109 curr_x = EEmax.
ix() - m_recoWindowSidex/2 +
ii;
110 curr_y = EEmax.
iy() - m_recoWindowSidey /2 +ij;
116 double dummy = curr_recHit->energy () ;
125 dummy *= (*m_endcapMap)[det];
128 else pSubtract +=dummy;
double m_maxEnergyPerCrystal
constexpr uint32_t rawId() const
get the raw id
std::vector< EcalRecHit >::const_iterator const_iterator
void fillEBMap(EBDetId, const EcalRecHitCollection *, std::map< int, double > &, int, double &)
takes care of the Barrel
std::map< int, int > m_IndexInRegion
static bool validDetId(int i, int j)
check if a valid index combination
int iphi() const
get the crystal iphi
double m_minEnergyPerCrystal
void fillEEMap(EEDetId, const EcalRecHitCollection *, std::map< int, double > &, int, double &)
takes care of the Endcap
MatrixFillMap(int, int, const std::map< int, int > &, double, double, const std::map< int, int > &, EcalIntercalibConstantMap *, EcalIntercalibConstantMap *)
ctor
void fillMap(const std::vector< std::pair< DetId, float > > &, const DetId, const EcalRecHitCollection *, const EcalRecHitCollection *, std::map< int, double > &xtlMap, double &) override
The Map filler.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Abs< T >::type abs(const T &t)
int ieta() const
get the crystal ieta
static const int ETAPHIMODE
std::map< int, int > m_xtalRegionId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
iterator find(key_type k)
~MatrixFillMap() override
dtor