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)
 
 ~TracksterLinkingPassthrough () override
 
- Public Member Functions inherited from ticl::TracksterLinkingAlgoBase
 TracksterLinkingAlgoBase (const edm::ParameterSet &conf, edm::ConsumesCollector)
 
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_
 

Detailed Description

Definition at line 12 of file TracksterLinkingPassthrough.h.

Constructor & Destructor Documentation

◆ TracksterLinkingPassthrough()

ticl::TracksterLinkingPassthrough::TracksterLinkingPassthrough ( const edm::ParameterSet conf,
edm::ConsumesCollector  iC 
)
inline

Definition at line 14 of file TracksterLinkingPassthrough.h.

15  : TracksterLinkingAlgoBase(conf, iC) {}
TracksterLinkingAlgoBase(const edm::ParameterSet &conf, edm::ConsumesCollector)

◆ ~TracksterLinkingPassthrough()

ticl::TracksterLinkingPassthrough::~TracksterLinkingPassthrough ( )
inlineoverride

Definition at line 17 of file TracksterLinkingPassthrough.h.

17 {}

Member Function Documentation

◆ fillPSetDescription()

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

Definition at line 29 of file TracksterLinkingPassthrough.h.

References edm::ParameterSetDescription::add().

29 { 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 24 of file TracksterLinkingPassthrough.h.

27  {};

◆ 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