20 std::vector<l1t::CaloRegion> *subRegions,
30 for(std::vector<CaloRegion>::const_iterator region = regions.begin();
31 region != regions.end(); region++){
32 puLevelHI[region->hwEta()] += region->hwPt();
38 puLevelHI[
i] = (puLevelHI[
i] + 9) * 455 / (1 << 13);
41 for(std::vector<CaloRegion>::const_iterator region = regions.begin(); region!= regions.end(); region++){
42 int subPt =
std::max(0, region->hwPt() - puLevelHI[region->hwEta()]);
43 int subEta = region->hwEta();
44 int subPhi = region->hwPhi();
47 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
49 CaloRegion newSubRegion(*&ldummy, 0, 0, subPt, subEta, subPhi, region->hwQual(), region->hwEtEm(), region->hwEtHad());
50 subRegions->push_back(newSubRegion);
55 std::vector<l1t::CaloRegion> *subRegions)
57 for(std::vector<CaloRegion>::const_iterator region = regions.begin();
58 region != regions.end(); region++){
59 int subEta = region->hwEta();
60 int subPhi = region->hwPhi();
61 int subPt = region->hwPt();
63 if(subPt != (2<<10)-1)
64 subPt = subPt - (10+subEta);
67 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
69 CaloRegion newSubRegion(*&ldummy, 0, 0, subPt, subEta, subPhi, region->hwQual(), region->hwEtEm(), region->hwEtHad());
70 subRegions->push_back(newSubRegion);
78 std::vector<l1t::CaloRegion> *subRegions,
84 if(regionPUSType ==
"None") {
85 for(std::vector<CaloRegion>::const_iterator notCorrectedRegion = regions.begin();
86 notCorrectedRegion != regions.end(); notCorrectedRegion++){
88 subRegions->push_back(newSubRegion);
92 if (regionPUSType ==
"HICaloRingSub") {
96 if (regionPUSType ==
"PUM0") {
100 for(std::vector<CaloRegion>::const_iterator notCorrectedRegion = regions.begin();
101 notCorrectedRegion != regions.end(); notCorrectedRegion++){
102 int regionET = notCorrectedRegion->hwPt();
103 if (regionET > 0) {puMult++;}
105 int pumbin = (
int) puMult/22;
106 if(pumbin == 18) pumbin = 17;
108 for(std::vector<CaloRegion>::const_iterator notCorrectedRegion = regions.begin();
109 notCorrectedRegion != regions.end(); notCorrectedRegion++){
111 int regionET = notCorrectedRegion->hwPt();
112 int regionEta = notCorrectedRegion->hwEta();
113 int regionPhi = notCorrectedRegion->hwPhi();
122 int regionEtCorr =
std::max(0, regionET - puSub);
125 if((regionET==255) && (regionEta < 4 || regionEta > 17))
128 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > lorentz(0,0,0,0);
129 CaloRegion newSubRegion(*&lorentz, 0, 0, regionEtCorr, regionEta, regionPhi, notCorrectedRegion->hwQual(), notCorrectedRegion->hwEtEm(), notCorrectedRegion->hwEtHad());
130 subRegions->push_back(newSubRegion);
void RegionCorrection(const std::vector< l1t::CaloRegion > ®ions, std::vector< l1t::CaloRegion > *subRegions, CaloParamsHelper *params)
------— New region correction (PUsub, no response correction at the moment) --------— ...
static const unsigned N_ETA
std::string regionPUSType() const
void simpleHWSubtraction(const std::vector< l1t::CaloRegion > ®ions, std::vector< l1t::CaloRegion > *subRegions)
int regionPUSValue(int PUM0, int eta)
void HICaloRingSubtraction(const std::vector< l1t::CaloRegion > ®ions, std::vector< l1t::CaloRegion > *subRegions, CaloParamsHelper *params)
------------— For heavy ion ----------------------------------—