1 #ifndef TauRegionalPixelSeedGenerator_h 2 #define TauRegionalPixelSeedGenerator_h 24 #include "Math/GenVector/VectorUtil.h" 25 #include "Math/GenVector/PxPyPzE4D.h" 38 edm::LogInfo (
"TauRegionalPixelSeedGenerator") <<
"Enter the TauRegionalPixelSeedGenerator";
49 if (regionPSet.
exists(
"searchOpt")){
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);
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,
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