#include <TauRegionalPixelSeedGenerator.h>
Definition at line 36 of file TauRegionalPixelSeedGenerator.h.
References edm::ParameterSet::exists(), edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), 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.
38 edm::LogInfo (
"TauRegionalPixelSeedGenerator") <<
"Enter the TauRegionalPixelSeedGenerator";
49 if (regionPSet.exists(
"searchOpt")){
50 m_searchOpt = regionPSet.getParameter<
bool>(
"searchOpt");
59 if(regionPSet.existsAs<
edm::InputTag>(
"measurementTrackerName")) {
60 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
virtual TauRegionalPixelSeedGenerator::~TauRegionalPixelSeedGenerator |
( |
| ) |
|
|
inlinevirtual |
Definition at line 72 of file TauRegionalPixelSeedGenerator.h.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addNode(), and AlCaHLTBitMon_QueryRunRegistry::string.
75 desc.
add<
double>(
"ptMin", 5.0);
76 desc.add<
double>(
"originHalfLength", 0.2);
77 desc.add<
double>(
"originRadius", 0.2);
78 desc.add<
double>(
"deltaEtaRegion", 0.1);
79 desc.add<
double>(
"deltaPhiRegion", 0.1);
82 desc.add<
bool>(
"searchOpt",
false);
84 desc.add<
std::string>(
"howToUseMeasurementTracker",
"ForSiStrips");
94 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 98 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, MeasurementTrackerEventProducer_cfi::measurementTracker, edm::Handle< T >::product(), mps_fire::result, token_jet, token_measurementTracker, token_vertex, and ecalDrivenElectronSeedsParameters_cff::vertices.
99 std::vector<std::unique_ptr<TrackingRegion> >
result;
102 double deltaZVertex, deltaRho;
108 if (not vertices.empty()) {
110 GlobalPoint myTmp(vertices.at(0).position().x(),vertices.at(0).position().y(), vertices.at(0).position().z());
130 measurementTracker = hmte.
product();
135 GlobalVector jetVector(myJet.momentum().x(),myJet.momentum().y(),myJet.momentum().z());
137 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 |