CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
ticl::PatternRecognitionbyPassthrough< TILES > Class Template Referencefinal

#include <PatternRecognitionbyPassthrough.h>

Inheritance diagram for ticl::PatternRecognitionbyPassthrough< TILES >:
ticl::PatternRecognitionAlgoBaseT< TILES >

Public Member Functions

void makeTracksters (const typename PatternRecognitionAlgoBaseT< TILES >::Inputs &input, std::vector< Trackster > &result, std::unordered_map< int, std::vector< int >> &seedToTracksterAssociation) override
 
 PatternRecognitionbyPassthrough (const edm::ParameterSet &conf, edm::ConsumesCollector)
 
 ~PatternRecognitionbyPassthrough () override=default
 
- Public Member Functions inherited from ticl::PatternRecognitionAlgoBaseT< TILES >
virtual void makeTracksters (const Inputs &input, std::vector< Trackster > &result, std::unordered_map< int, std::vector< int >> &seedToTracksterAssociation)=0
 
 PatternRecognitionAlgoBaseT (const edm::ParameterSet &conf, edm::ConsumesCollector)
 
virtual ~PatternRecognitionAlgoBaseT ()
 

Static Public Member Functions

static void fillPSetDescription (edm::ParameterSetDescription &iDesc)
 

Private Attributes

edm::ESGetToken< CaloGeometry, CaloGeometryRecordcaloGeomToken_
 
hgcal::RecHitTools rhtools_
 

Additional Inherited Members

- Protected Attributes inherited from ticl::PatternRecognitionAlgoBaseT< TILES >
int algo_verbosity_
 

Detailed Description

template<typename TILES>
class ticl::PatternRecognitionbyPassthrough< TILES >

Definition at line 12 of file PatternRecognitionbyPassthrough.h.

Constructor & Destructor Documentation

◆ PatternRecognitionbyPassthrough()

template<typename TILES >
PatternRecognitionbyPassthrough::PatternRecognitionbyPassthrough ( const edm::ParameterSet conf,
edm::ConsumesCollector  iC 
)

◆ ~PatternRecognitionbyPassthrough()

template<typename TILES >
ticl::PatternRecognitionbyPassthrough< TILES >::~PatternRecognitionbyPassthrough ( )
overridedefault

Member Function Documentation

◆ fillPSetDescription()

template<typename TILES >
void PatternRecognitionbyPassthrough::fillPSetDescription ( edm::ParameterSetDescription iDesc)
static

Definition at line 66 of file PatternRecognitionbyPassthrough.cc.

References edm::ParameterSetDescription::add().

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

◆ makeTracksters()

template<typename TILES >
void PatternRecognitionbyPassthrough::makeTracksters ( const typename PatternRecognitionAlgoBaseT< TILES >::Inputs input,
std::vector< Trackster > &  result,
std::unordered_map< int, std::vector< int >> &  seedToTracksterAssociation 
)
override

Definition at line 24 of file PatternRecognitionbyPassthrough.cc.

References ticl::Advanced, ticl::assignPCAtoTracksters(), relativeConstraints::geom, edm::EventSetup::getData(), mps_fire::i, input, mps_fire::result, ticl::Trackster::vertex_multiplicity(), and ticl::Trackster::vertices().

27  {
28  // Get the geometry setup
29  edm::EventSetup const &es = input.es;
32 
33  // Clear the result vector
34  result.clear();
35 
36  // Iterate over all layer clusters
37  for (size_t i = 0; i < input.layerClusters.size(); ++i) {
38  if (input.mask[i] == 0.) {
39  continue; // Skip masked clusters
40  }
41 
42  // Create a new trackster for each layer cluster
43  Trackster trackster;
44  trackster.vertices().push_back(i);
45  trackster.vertex_multiplicity().push_back(1);
46 
47  // Add the trackster to the result vector
48  result.push_back(trackster);
49  }
50 
51  // Assign PCA to tracksters
53  input.layerClusters,
54  input.layerClustersTime,
56  rhtools_,
57  false);
58 
59  // Log the number of tracksters created
61  edm::LogVerbatim("PatternRecognitionbyPassthrough") << "Created " << result.size() << " tracksters";
62  }
63 }
Log< level::Info, true > LogVerbatim
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
void assignPCAtoTracksters(std::vector< Trackster > &tracksters, const std::vector< reco::CaloCluster > &layerClusters, const edm::ValueMap< std::pair< float, float >> &layerClustersTime, double z_limit_em, hgcal::RecHitTools const &rhTools, bool computeLocalTime=false, bool energyWeight=true, bool clean=false, int minLayer=10, int maxLayer=10)
static std::string const input
Definition: EdmProvDump.cc:50
std::vector< unsigned int > & vertices()
Definition: Trackster.h:57
std::vector< float > & vertex_multiplicity()
Definition: Trackster.h:58
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
GlobalPoint getPositionLayer(int layer, bool nose=false) const
Definition: RecHitTools.cc:152
void setGeometry(CaloGeometry const &)
Definition: RecHitTools.cc:79
unsigned int lastLayerEE(bool nose=false) const
Definition: RecHitTools.h:76

Member Data Documentation

◆ caloGeomToken_

template<typename TILES >
edm::ESGetToken<CaloGeometry, CaloGeometryRecord> ticl::PatternRecognitionbyPassthrough< TILES >::caloGeomToken_
private

Definition at line 24 of file PatternRecognitionbyPassthrough.h.

◆ rhtools_

template<typename TILES >
hgcal::RecHitTools ticl::PatternRecognitionbyPassthrough< TILES >::rhtools_
private

Definition at line 25 of file PatternRecognitionbyPassthrough.h.