CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
TotemRPRecHitProducerAlgorithm Class Reference

#include <TotemRPRecHitProducerAlgorithm.h>

Public Member Functions

void buildRecoHits (const edm::DetSet< TotemRPCluster > &input, edm::DetSet< TotemRPRecHit > &output)
 
 TotemRPRecHitProducerAlgorithm (const edm::ParameterSet &conf)
 

Private Attributes

RPTopology rp_topology_
 

Detailed Description

Definition at line 21 of file TotemRPRecHitProducerAlgorithm.h.

Constructor & Destructor Documentation

TotemRPRecHitProducerAlgorithm::TotemRPRecHitProducerAlgorithm ( const edm::ParameterSet conf)
inline

Definition at line 23 of file TotemRPRecHitProducerAlgorithm.h.

23 {}

Member Function Documentation

void TotemRPRecHitProducerAlgorithm::buildRecoHits ( const edm::DetSet< TotemRPCluster > &  input,
edm::DetSet< TotemRPRecHit > &  output 
)

Definition at line 14 of file TotemRPRecHitProducerAlgorithm.cc.

References edm::DetSet< T >::emplace_back(), RPTopology::GetHitPositionInReadoutDirection(), and rp_topology_.

Referenced by TotemRPRecHitProducer::produce().

15  {
16  for (const auto& clus : input) {
17  constexpr double nominal_sigma = 0.0191;
18  output.emplace_back(rp_topology_.GetHitPositionInReadoutDirection(clus.centerStripPosition()), nominal_sigma);
19  }
20 }
decltype(auto) emplace_back(Args &&...args)
Definition: DetSet.h:68
double GetHitPositionInReadoutDirection(double strip_no) const
Definition: RPTopology.h:31

Member Data Documentation

RPTopology TotemRPRecHitProducerAlgorithm::rp_topology_
private

Definition at line 28 of file TotemRPRecHitProducerAlgorithm.h.

Referenced by buildRecoHits().