18 template <
typename TILES>
23 template <
typename TILES>
26 std::vector<Trackster> &
result,
27 std::unordered_map<
int, std::vector<int>> &seedToTracksterAssociation) {
31 rhtools_.setGeometry(
geom);
32 const auto z_limit_em = rhtools_.getPositionLayer(rhtools_.lastLayerEE(
false),
false).z();
37 for (
size_t i = 0;
i <
input.layerClusters.size(); ++
i) {
38 if (
input.mask[
i] == 0.f) {
46 const auto &lc =
input.layerClusters[
i];
50 float invcosh = 1.f / std::cosh(lc.position().eta());
51 trackster.
setRawPt(lc.energy() * invcosh);
53 if (
std::abs(lc.z()) <= z_limit_em) {
59 result.push_back(trackster);
68 template <
typename TILES>
70 const std::vector<Trackster> &inTracksters,
72 std::unordered_map<
int, std::vector<int>> &seedToTracksterAssociation) {
76 template <
typename TILES>
78 iDesc.
add<
int>(
"algo_verbosity", 0);
Log< level::Info, true > LogVerbatim
void setRawPt(float value)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void filter(std::vector< Trackster > &output, const std::vector< Trackster > &inTracksters, const typename PatternRecognitionAlgoBaseT< TILES >::Inputs &input, std::unordered_map< int, std::vector< int >> &seedToTracksterAssociation) override
void setRawEnergy(float value)
static std::string const input
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
Abs< T >::type abs(const T &t)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< unsigned int > & vertices()
void setRawEmPt(float value)
std::vector< float > & vertex_multiplicity()
void setRawEmEnergy(float value)
PatternRecognitionbyRecovery(const edm::ParameterSet &conf, edm::ConsumesCollector)
void setTimeAndError(float t, float tError)
void makeTracksters(const typename PatternRecognitionAlgoBaseT< TILES >::Inputs &input, std::vector< Trackster > &result, std::unordered_map< int, std::vector< int >> &seedToTracksterAssociation) override
void setBarycenter(Vector value)