CMS 3D CMS Logo

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

#include <TracksterLinkingPassthrough.h>

Inheritance diagram for ticl::TracksterLinkingPassthrough:
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
 
 TracksterLinkingPassthrough (const edm::ParameterSet &conf, edm::ConsumesCollector iC, cms::Ort::ONNXRuntime const *onnxRuntime=nullptr)
 
 ~TracksterLinkingPassthrough () 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 TracksterLinkingPassthrough.h.

Constructor & Destructor Documentation

◆ TracksterLinkingPassthrough()

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

Definition at line 14 of file TracksterLinkingPassthrough.h.

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

◆ ~TracksterLinkingPassthrough()

ticl::TracksterLinkingPassthrough::~TracksterLinkingPassthrough ( )
inlineoverride

Definition at line 19 of file TracksterLinkingPassthrough.h.

19 {}

Member Function Documentation

◆ fillPSetDescription()

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

Definition at line 30 of file TracksterLinkingPassthrough.h.

References edm::ParameterSetDescription::add().

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

◆ initialize()

void ticl::TracksterLinkingPassthrough::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 TracksterLinkingPassthrough.h.

28  {};

◆ linkTracksters()

void TracksterLinkingPassthrough::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 TracksterLinkingPassthrough.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