#include <TauRegionalPixelSeedGenerator.h>
Definition at line 35 of file TauRegionalPixelSeedGenerator.h.
References edm::ParameterSet::exists(), edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), HLT_2018_cff::InputTag, RectangularEtaPhiTrackingRegion::kNever, m_deltaEta, m_deltaPhi, m_halfLength, m_howToUseMeasurementTracker, m_originRadius, m_ptMin, m_searchOpt, AlCaHLTBitMon_QueryRunRegistry::string, RectangularEtaPhiTrackingRegion::stringToUseMeasurementTracker(), GlobalPosition_Frontier_DevDB_cff::tag, token_jet, token_measurementTracker, and token_vertex.
36 edm::LogInfo(
"TauRegionalPixelSeedGenerator") <<
"Enter the TauRegionalPixelSeedGenerator";
47 if (regionPSet.exists(
"searchOpt")) {
48 m_searchOpt = regionPSet.getParameter<
bool>(
"searchOpt");
53 regionPSet.getParameter<
std::string>(
"howToUseMeasurementTracker"));
57 if (regionPSet.existsAs<
edm::InputTag>(
"measurementTrackerName")) {
58 tag = regionPSet.getParameter<
edm::InputTag>(
"measurementTrackerName");
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
static UseMeasurementTracker stringToUseMeasurementTracker(const std::string &name)
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
edm::EDGetTokenT< reco::VertexCollection > token_vertex
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_howToUseMeasurementTracker
edm::EDGetTokenT< reco::CandidateView > token_jet
TauRegionalPixelSeedGenerator::~TauRegionalPixelSeedGenerator |
( |
| ) |
|
|
inlineoverride |
Definition at line 69 of file TauRegionalPixelSeedGenerator.h.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addNode(), HLT_2018_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
72 desc.
add<
double>(
"ptMin", 5.0);
73 desc.add<
double>(
"originHalfLength", 0.2);
74 desc.add<
double>(
"originRadius", 0.2);
75 desc.add<
double>(
"deltaEtaRegion", 0.1);
76 desc.add<
double>(
"deltaPhiRegion", 0.1);
79 desc.add<
bool>(
"searchOpt",
false);
81 desc.add<
std::string>(
"howToUseMeasurementTracker",
"ForSiStrips");
85 "measurementTrackerName",
edm::InputTag(
"MeasurementTrackerEvent"),
true) xor
92 descriptions.
add(
"tauRegionalPixelSeedTrackingRegions", descRegion);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Implements TrackingRegionProducer.
Definition at line 95 of file TauRegionalPixelSeedGenerator.h.
References edm::Event::getByToken(), edm::EDGetTokenT< T >::isUninitialized(), m_deltaEta, m_deltaPhi, m_halfLength, m_howToUseMeasurementTracker, m_originRadius, m_ptMin, m_searchOpt, HLTSiStripMonitoring_cff::measurementTracker, edm::Handle< T >::product(), mps_fire::result, token_jet, token_measurementTracker, token_vertex, bphysicsOniaDQM_cfi::vertex, and pwdgSkimBPark_cfi::vertices.
96 std::vector<std::unique_ptr<TrackingRegion> >
result;
99 double deltaZVertex, deltaRho;
105 if (not vertices.empty()) {
107 GlobalPoint myTmp(vertices.at(0).position().x(), vertices.at(0).position().y(), vertices.at(0).position().z());
127 measurementTracker = hmte.
product();
131 GlobalVector jetVector(myJet.momentum().x(), myJet.momentum().y(), myJet.momentum().z());
133 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(jetVector,
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
edm::EDGetTokenT< reco::VertexCollection > token_vertex
T const * product() const
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_howToUseMeasurementTracker
bool isUninitialized() const
edm::EDGetTokenT< reco::CandidateView > token_jet
float TauRegionalPixelSeedGenerator::m_deltaEta |
|
private |
float TauRegionalPixelSeedGenerator::m_deltaPhi |
|
private |
float TauRegionalPixelSeedGenerator::m_halfLength |
|
private |
float TauRegionalPixelSeedGenerator::m_originRadius |
|
private |
float TauRegionalPixelSeedGenerator::m_ptMin |
|
private |
bool TauRegionalPixelSeedGenerator::m_searchOpt |
|
private |