41 static std::unique_ptr<TrackstersCache> initializeGlobalCache(
const edm::ParameterSet&);
47 std::unique_ptr<PatternRecognitionAlgoBaseT<TICLLayerTiles>>
myAlgo_;
48 std::unique_ptr<PatternRecognitionAlgoBaseT<TICLLayerTilesHFNose>>
myAlgoHFNose_;
64 std::unique_ptr<TrackstersCache>
cache = std::make_unique<TrackstersCache>(
params);
68 if (!graphPath.empty()) {
77 delete cache->eidGraphDef;
78 cache->eidGraphDef =
nullptr;
82 : detector_(ps.getParameter<
std::
string>(
"detector")),
83 doNose_(detector_ ==
"HFNose"),
89 seeding_regions_token_(
91 itername_(ps.getParameter<
std::
string>(
"itername")) {
116 produces<std::vector<Trackster>>();
117 produces<std::vector<float>>();
132 desc.add<
std::string>(
"eid_graph_path",
"RecoHGCal/TICL/data/tf_models/energy_id_v0.pb");
145 descriptions.
add(
"trackstersProducer",
desc);
149 auto result = std::make_unique<std::vector<Trackster>>();
150 auto output_mask = std::make_unique<std::vector<float>>();
158 std::unordered_map<int, std::vector<int>> seedToTrackstersAssociation;
162 for (
unsigned int i = 0;
i < numberOfSeedingRegions; ++
i) {
182 output_mask->reserve(original_layerclusters_mask.size());
185 std::begin(original_layerclusters_mask),
std::end(original_layerclusters_mask), std::back_inserter(*output_mask));
187 for (
auto& trackster : *
result) {
190 for (
auto const v : trackster.vertices()) {
193 (*output_mask)[
v] = 0.;