1 #ifndef TauRegionalPixelSeedGenerator_h 2 #define TauRegionalPixelSeedGenerator_h 26 #include "Math/GenVector/VectorUtil.h" 27 #include "Math/GenVector/PxPyPzE4D.h" 40 edm::LogInfo (
"TauRegionalPixelSeedGenerator") <<
"Enter the TauRegionalPixelSeedGenerator";
51 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");
96 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();
137 GlobalVector jetVector(myJet.momentum().x(),myJet.momentum().y(),myJet.momentum().z());
139 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>( jetVector,
T getParameter(std::string const &) const
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
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
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &e, const edm::EventSetup &es) const override
TauRegionalPixelSeedGenerator(const edm::ParameterSet &conf_, edm::ConsumesCollector &&iC)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< reco::VertexCollection > token_vertex
T const * product() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_howToUseMeasurementTracker
bool isUninitialized() const
~TauRegionalPixelSeedGenerator() override
edm::EDGetTokenT< reco::CandidateView > token_jet