8 : debug_(iConfig.getUntrackedParameter<
int>(
"debug", 0)),
9 etaCharged_(iConfig.getParameter<double>(
"etaCharged")),
10 vtxRes_(iConfig.getParameter<double>(
"vtxRes")),
11 vtxAdaptiveCut_(iConfig.getParameter<
bool>(
"vtxAdaptiveCut")) {}
16 int16_t iZ0 = round(
z0 * InputTrack::Z0_SCALE);
17 int16_t iDZ = round(1.5 *
vtxRes_ * InputTrack::Z0_SCALE);
21 if (
r.relativeCoordinates)
23 (
std::abs(
r.globalAbsEta(
p.track.floatVtxEta())) < 1.3);
24 p.chargedPV = (
p.hwId <= 1 &&
std::abs(
p.track.hwZ0 - iZ0) < (
barrel ? iDZ : iDZ2));
32 std::unique_ptr<TH1F> h_dz(
new TH1F(
"h_dz",
"h_dz", lNBins, -20, 20));
37 if (!
r.fiducialLocal(
p.floatVtxEta(),
p.floatVtxPhi()))
40 h_dz->Fill(
p.floatDZ(),
std::min(
p.floatPt(), 50.f));
48 int imaxbin = h_dz->GetMaximumBin();
49 pvdz = h_dz->GetXaxis()->GetBinCenter(imaxbin);
54 for (
int b = 1;
b <= lNBins; ++
b) {
55 float sum3 = h_dz->GetBinContent(
b) + h_dz->GetBinContent(
b + 1) + h_dz->GetBinContent(
b - 1);
61 pvdz = h_dz->GetXaxis()->GetBinCenter(
bmax);
64 int16_t iZ0 = round(pvdz * InputTrack::Z0_SCALE);
65 int16_t iDZ = round(1.5 *
vtxRes_ * InputTrack::Z0_SCALE);
70 if (
r.relativeCoordinates)
72 (
std::abs(
r.globalAbsEta(
p.floatVtxEta())) < 1.3);
79 static const std::vector<std::string> empty_;
virtual void runChargedPV(Region &r, float z0) const
PUAlgoBase(const edm::ParameterSet &)
Abs< T >::type abs(const T &t)
virtual void doVertexing(std::vector< Region > &rs, VertexAlgo algo, float &vz) const
VertexAlgo
global operations
virtual const std::vector< std::string > & puGlobalNames() const