7 std::map<int,int> xtalReg,
10 std::map<int,int> IndexReg,
14 VFillMap (WindowX,WindowY,xtalReg,minE,
30 std::map<int, double> & xtlMap,
35 fillEBMap (EBMax, barrelHitsCollection, xtlMap,
40 fillEEMap (EEMax, endcapHitsCollection, xtlMap,
50 std::map<int, double> & EBRegionMap,
51 int EBNumberOfRegion,
double & pSubtract)
59 curr_eta=EBmax.
ieta() + ii - (m_recoWindowSidex/2);
60 curr_phi=EBmax.
iphi() + ij - (m_recoWindowSidey/2);
62 if (
abs(curr_eta)>85)
continue;
64 if (curr_eta * EBmax.
ieta() <= 0) {
65 if (EBmax.
ieta() > 0) curr_eta--;
69 if (curr_phi < 1) curr_phi += 360;
70 if (curr_phi >= 360) curr_phi -= 360;
79 dummy = curr_recHit->energy () ;
87 dummy *= (*m_barrelMap)[det];
92 else pSubtract +=dummy;
99 std::map<int,double> & EExtlMap,
100 int EENumberOfRegion,
double & pSubtract )
108 curr_x = EEmax.
ix() - m_recoWindowSidex/2 +ii;
109 curr_y = EEmax.
iy() - m_recoWindowSidey /2 +ij;
115 double dummy = curr_recHit->energy () ;
124 dummy *= (*m_endcapMap)[det];
127 else pSubtract +=dummy;
void fillMap(const std::vector< std::pair< DetId, float > > &, const DetId, const EcalRecHitCollection *, const EcalRecHitCollection *, std::map< int, double > &xtlMap, double &)
The Map filler.
static bool validDetId(int i, int j)
check if a valid index combination
double m_maxEnergyPerCrystal
std::vector< T >::const_iterator const_iterator
MatrixFillMap(int, int, std::map< int, int >, double, double, std::map< int, int >, EcalIntercalibConstantMap *, EcalIntercalibConstantMap *)
ctor
void fillEBMap(EBDetId, const EcalRecHitCollection *, std::map< int, double > &, int, double &)
takes care of the Barrel
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
std::map< int, int > m_IndexInRegion
int iphi() const
get the crystal iphi
uint32_t rawId() const
get the raw id
double m_minEnergyPerCrystal
void fillEEMap(EEDetId, const EcalRecHitCollection *, std::map< int, double > &, int, double &)
takes care of the Endcap
int ieta() const
get the crystal ieta
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static const int ETAPHIMODE
std::map< int, int > m_xtalRegionId
iterator find(key_type k)