CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
ticl::TracksterLinkingRecovery Class Reference

#include <TracksterLinkingRecovery.h>

Inheritance diagram for ticl::TracksterLinkingRecovery:
ticl::TracksterLinkingAlgoBase

Public Member Functions

void initialize (const HGCalDDDConstants *hgcons, const hgcal::RecHitTools rhtools, const edm::ESHandle< MagneticField > bfieldH, const edm::ESHandle< Propagator > propH) override
 
void linkTracksters (const Inputs &input, std::vector< Trackster > &resultTracksters, std::vector< std::vector< unsigned int >> &linkedResultTracksters, std::vector< std::vector< unsigned int >> &linkedTracksterIdToInputTracksterId) override
 
 TracksterLinkingRecovery (const edm::ParameterSet &conf, edm::ConsumesCollector iC, cms::Ort::ONNXRuntime const *onnxRuntime=nullptr)
 
 ~TracksterLinkingRecovery () override
 
- Public Member Functions inherited from ticl::TracksterLinkingAlgoBase
virtual void setEvent (edm::Event &iEvent, edm::EventSetup const &iEventSetup)
 
 TracksterLinkingAlgoBase (const edm::ParameterSet &conf, edm::ConsumesCollector, cms::Ort::ONNXRuntime const *onnxRuntime=nullptr)
 
virtual ~TracksterLinkingAlgoBase ()
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &iDesc)
 
- Static Public Member Functions inherited from ticl::TracksterLinkingAlgoBase
static void fillPSetDescription (edm::ParameterSetDescription &desc)
 

Additional Inherited Members

- Protected Attributes inherited from ticl::TracksterLinkingAlgoBase
int algo_verbosity_
 
cms::Ort::ONNXRuntime const * onnxRuntime_
 

Detailed Description

Definition at line 12 of file TracksterLinkingRecovery.h.

Constructor & Destructor Documentation

◆ TracksterLinkingRecovery()

ticl::TracksterLinkingRecovery::TracksterLinkingRecovery ( const edm::ParameterSet conf,
edm::ConsumesCollector  iC,
cms::Ort::ONNXRuntime const *  onnxRuntime = nullptr 
)
inline

Definition at line 14 of file TracksterLinkingRecovery.h.

17  : TracksterLinkingAlgoBase(conf, iC, onnxRuntime) {}
TracksterLinkingAlgoBase(const edm::ParameterSet &conf, edm::ConsumesCollector, cms::Ort::ONNXRuntime const *onnxRuntime=nullptr)

◆ ~TracksterLinkingRecovery()

ticl::TracksterLinkingRecovery::~TracksterLinkingRecovery ( )
inlineoverride

Definition at line 19 of file TracksterLinkingRecovery.h.

19 {}

Member Function Documentation

◆ fillPSetDescription()

static void ticl::TracksterLinkingRecovery::fillPSetDescription ( edm::ParameterSetDescription iDesc)
inlinestatic

Definition at line 30 of file TracksterLinkingRecovery.h.

References edm::ParameterSetDescription::add().

30 { iDesc.add<int>("algo_verbosity", 0); }
ParameterDescriptionBase * add(U const &iLabel, T const &value)

◆ initialize()

void ticl::TracksterLinkingRecovery::initialize ( const HGCalDDDConstants hgcons,
const hgcal::RecHitTools  rhtools,
const edm::ESHandle< MagneticField bfieldH,
const edm::ESHandle< Propagator propH 
)
inlineoverridevirtual

Implements ticl::TracksterLinkingAlgoBase.

Definition at line 25 of file TracksterLinkingRecovery.h.

28  {};

◆ linkTracksters()

void TracksterLinkingRecovery::linkTracksters ( const Inputs input,
std::vector< Trackster > &  resultTracksters,
std::vector< std::vector< unsigned int >> &  linkedResultTracksters,
std::vector< std::vector< unsigned int >> &  linkedTracksterIdToInputTracksterId 
)
overridevirtual

Implements ticl::TracksterLinkingAlgoBase.

Definition at line 6 of file TracksterLinkingRecovery.cc.

References mps_fire::i, and input.

10  {
11  resultTracksters.reserve(input.tracksters.size());
12  linkedResultTracksters.resize(input.tracksters.size());
13  linkedTracksterIdToInputTracksterId.resize(input.tracksters.size());
14  // Merge all trackster collections into a single collection
15  for (size_t i = 0; i < input.tracksters.size(); ++i) {
16  resultTracksters.push_back(input.tracksters[i]);
17  linkedResultTracksters[i].push_back(resultTracksters.size() - 1);
18  linkedTracksterIdToInputTracksterId[i].push_back(resultTracksters.size() - 1);
19  }
20 }
static std::string const input
Definition: EdmProvDump.cc:50