22 algoVerbosity_(conf.getParameter<
int>(
"algo_verbosity")),
23 minPt_(conf.getParameter<double>(
"minPt")),
24 minAbsEta_(conf.getParameter<double>(
"minAbsEta")),
25 maxAbsEta_(conf.getParameter<double>(
"maxAbsEta")),
26 quality_(conf.getParameter<
int>(
"quality")),
27 qualityIsMask_(conf.getParameter<
bool>(
"qualityIsMask")),
28 applyQuality_(conf.getParameter<
bool>(
"applyQuality")) {}
32 std::vector<TICLSeedingRegion> &
result) {
33 auto l1GTCands =
ev.getHandle(l1GTCandsToken_);
36 for (
size_t indx = 0; indx < (*l1GTCands).size(); indx++) {
37 const auto &l1GTCand = (*l1GTCands)[indx];
38 double offlinePt = l1GTCand.pt();
39 bool passQuality(
false);
43 passQuality = (l1GTCand.hwQual() & quality_);
45 passQuality = (l1GTCand.hwQual() == quality_);
51 if ((offlinePt < minPt_) || (
std::abs(l1GTCand.eta()) < minAbsEta_) || (
std::abs(l1GTCand.eta()) > maxAbsEta_) ||
56 int iSide =
int(l1GTCand.eta() > 0);
57 result.emplace_back(
GlobalPoint(l1GTCand.p4().X(), l1GTCand.p4().Y(), l1GTCand.p4().Z()),
58 GlobalVector(l1GTCand.px(), l1GTCand.py(), l1GTCand.pz()),
65 return a.directionAtOrigin.perp2() >
b.directionAtOrigin.perp2();
71 desc.add<
double>(
"minPt", 10);
72 desc.add<
double>(
"minAbsEta", 1.479);
73 desc.add<
double>(
"maxAbsEta", 4.0);
74 desc.add<
int>(
"quality", 5);
75 desc.add<
bool>(
"qualityIsMask",
false);
76 desc.add<
bool>(
"applyQuality",
false);
std::vector< P2GTCandidate > P2GTCandidateCollection
Global3DPoint GlobalPoint
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Abs< T >::type abs(const T &t)
SeedingRegionByL1(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
void makeRegions(const edm::Event &ev, const edm::EventSetup &es, std::vector< TICLSeedingRegion > &result) override
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Global3DVector GlobalVector