1 #ifndef TauRegionalPixelSeedGenerator_h
2 #define TauRegionalPixelSeedGenerator_h
29 #include "Math/GenVector/VectorUtil.h"
30 #include "Math/GenVector/PxPyPzE4D.h"
41 edm::LogInfo(
"TauRegionalPixelSeedGenerator") <<
"Enter the TauRegionalPixelSeedGenerator";
52 if (regionPSet.
exists(
"searchOpt")) {
77 desc.
add<
double>(
"ptMin", 5.0);
78 desc.
add<
double>(
"originHalfLength", 0.2);
79 desc.
add<
double>(
"originRadius", 0.2);
80 desc.
add<
double>(
"deltaEtaRegion", 0.1);
81 desc.
add<
double>(
"deltaPhiRegion", 0.1);
84 desc.
add<
bool>(
"searchOpt",
false);
86 desc.
add<
std::string>(
"howToUseMeasurementTracker",
"ForSiStrips");
90 "measurementTrackerName",
edm::InputTag(
"MeasurementTrackerEvent"),
true) xor
97 descriptions.
add(
"tauRegionalPixelSeedTrackingRegions", descRegion);
101 std::vector<std::unique_ptr<TrackingRegion> >
result;
104 double deltaZVertex, deltaRho;
110 if (not vertices.empty()) {
112 GlobalPoint myTmp(vertices.at(0).position().x(), vertices.at(0).position().y(), vertices.at(0).position().z());
132 measurementTracker = hmte.
product();
139 GlobalVector jetVector(myJet.momentum().x(), myJet.momentum().y(), myJet.momentum().z());
141 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(jetVector,
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
bool getByToken(EDGetToken token, Handle< PROD > &result) const
constexpr bool isUninitialized() const noexcept
bool exists(std::string const ¶meterName) const
checks if a parameter exists
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
std::vector< Vertex > VertexCollection
collection of Vertex objects
static UseMeasurementTracker stringToUseMeasurementTracker(const std::string &name)
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
bool getData(T &iHolder) const
TauRegionalPixelSeedGenerator(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > token_bfield
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< reco::VertexCollection > token_vertex
Log< level::Info, false > LogInfo
T const * product() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_howToUseMeasurementTracker
~TauRegionalPixelSeedGenerator() override
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &e, const edm::EventSetup &es) const override
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > token_msmaker
edm::EDGetTokenT< reco::CandidateView > token_jet