CMS 3D CMS Logo

List of all members | Public Member Functions
ticl::AbstractSuperclusteringDNNInput Class Referenceabstract

#include <SuperclusteringDNNInputs.h>

Inheritance diagram for ticl::AbstractSuperclusteringDNNInput:
ticl::SuperclusteringDNNInputV1 ticl::SuperclusteringDNNInputV2

Public Member Functions

virtual std::vector< float > computeVector (ticl::Trackster const &ts_base, ticl::Trackster const &ts_toCluster)=0
 
virtual unsigned int featureCount () const
 
virtual std::vector< std::string > featureNames () const
 
virtual ~AbstractSuperclusteringDNNInput ()=default
 

Detailed Description

Definition at line 16 of file SuperclusteringDNNInputs.h.

Constructor & Destructor Documentation

◆ ~AbstractSuperclusteringDNNInput()

virtual ticl::AbstractSuperclusteringDNNInput::~AbstractSuperclusteringDNNInput ( )
virtualdefault

Member Function Documentation

◆ computeVector()

virtual std::vector<float> ticl::AbstractSuperclusteringDNNInput::computeVector ( ticl::Trackster const &  ts_base,
ticl::Trackster const &  ts_toCluster 
)
pure virtual

Compute feature for seed and candidate pair

Implemented in ticl::SuperclusteringDNNInputV2, and ticl::SuperclusteringDNNInputV1.

◆ featureCount()

virtual unsigned int ticl::AbstractSuperclusteringDNNInput::featureCount ( ) const
inlinevirtual

Reimplemented in ticl::SuperclusteringDNNInputV2, and ticl::SuperclusteringDNNInputV1.

Definition at line 20 of file SuperclusteringDNNInputs.h.

References featureNames().

Referenced by featureNames().

20 { return featureNames().size(); };
virtual std::vector< std::string > featureNames() const

◆ featureNames()

virtual std::vector<std::string> ticl::AbstractSuperclusteringDNNInput::featureNames ( ) const
inlinevirtual

Get name of features. Used for SuperclusteringSampleDumper branch names (inference does not use the names, only the indices) The default implementation is meant to be overriden by inheriting classes

Reimplemented in ticl::SuperclusteringDNNInputV2, and ticl::SuperclusteringDNNInputV1.

Definition at line 25 of file SuperclusteringDNNInputs.h.

References featureCount(), mps_fire::i, AlCaHLTBitMon_QueryRunRegistry::string, and to_string().

Referenced by featureCount().

25  {
26  std::vector<std::string> defaultNames;
27  defaultNames.reserve(featureCount());
28  for (unsigned int i = 1; i <= featureCount(); i++) {
29  defaultNames.push_back(std::string("nb_") + std::to_string(i));
30  }
31  return defaultNames;
32  }
static std::string to_string(const XMLCh *ch)