19 std::vector<l1t::CaloRegion> *subRegions)
31 for(std::vector<CaloRegion>::const_iterator
region = regions.begin();
34 etaCount[
region->hwEta()]++;
39 puLevelHI[
i] = floor(r_puLevelHI[
i]/etaCount[
i] + 0.5);
42 for(std::vector<CaloRegion>::const_iterator
region = regions.begin();
region!= regions.end();
region++){
44 int subEta =
region->hwEta();
45 int subPhi =
region->hwPhi();
47 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
50 subRegions->push_back(newSubRegion);
55 std::vector<l1t::CaloRegion> *subRegions)
57 for(std::vector<CaloRegion>::const_iterator
region = regions.begin();
59 int subEta =
region->hwEta();
60 int subPhi =
region->hwPhi();
61 int subPt =
region->hwPt();
64 if(subPt != (2<<10)-1)
65 subPt = subPt - (10+subEta);
69 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
72 subRegions->push_back(newSubRegion);
80 std::vector<l1t::CaloRegion> *subRegions,
81 std::vector<double> regionPUSParams,
85 if(regionPUSType ==
"None") {
86 for(std::vector<CaloRegion>::const_iterator notCorrectedRegion = regions.begin();
87 notCorrectedRegion != regions.end(); notCorrectedRegion++){
89 subRegions->push_back(newSubRegion);
93 if (regionPUSType ==
"HICaloRingSub") {
97 if (regionPUSType ==
"PUM0") {
101 for(std::vector<CaloRegion>::const_iterator notCorrectedRegion = regions.begin();
102 notCorrectedRegion != regions.end(); notCorrectedRegion++){
103 int regionET = notCorrectedRegion->hwPt();
105 if (regionET > 0) {puMult++;}
107 int pumbin = (int) puMult/22;
108 if(pumbin == 18) pumbin = 17;
110 for(std::vector<CaloRegion>::const_iterator notCorrectedRegion = regions.begin();
111 notCorrectedRegion != regions.end(); notCorrectedRegion++){
113 int regionET = notCorrectedRegion->hwPt();
114 int regionEta = notCorrectedRegion->hwEta();
115 int regionPhi = notCorrectedRegion->hwPhi();
117 int puSub = ceil(regionPUSParams[18*regionEta+pumbin]*2);
126 int regionEtCorr =
std::max(0, regionET - puSub);
130 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > lorentz(0,0,0,0);
131 CaloRegion newSubRegion(*&lorentz, 0, 0, regionEtCorr, regionEta, regionPhi, notCorrectedRegion->hwQual(), notCorrectedRegion->hwEtEm(), notCorrectedRegion->hwEtHad());
132 subRegions->push_back(newSubRegion);
void RegionCorrection(const std::vector< l1t::CaloRegion > ®ions, std::vector< l1t::CaloRegion > *subRegions, std::vector< double > regionPUSparams, std::string regionPUSType)
------— New region correction (PUsub, no response correction at the moment) --------— ...
static const unsigned N_ETA
void HICaloRingSubtraction(const std::vector< l1t::CaloRegion > ®ions, std::vector< l1t::CaloRegion > *subRegions)
------------— For heavy ion ----------------------------------—
void simpleHWSubtraction(const std::vector< l1t::CaloRegion > ®ions, std::vector< l1t::CaloRegion > *subRegions)