test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 24 of file TotemRPRecHitProducerAlgorithm.h.

25  {
26  }

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 >::begin(), constexpr, edm::DetSet< T >::end(), RPTopology::GetHitPositionInReadoutDirection(), edm::DetSet< T >::push_back(), and rp_topology_.

Referenced by TotemRPRecHitProducer::produce().

16 {
17  for (edm::DetSet<TotemRPCluster>::const_iterator it = input.begin(); it!=input.end(); ++it)
18  {
19  constexpr double nominal_sigma = 0.0191;
20  output.push_back(TotemRPRecHit(rp_topology_.GetHitPositionInReadoutDirection(it->getCenterStripPosition()), nominal_sigma));
21  }
22 }
iterator end()
Definition: DetSet.h:60
void push_back(const T &t)
Definition: DetSet.h:68
#define constexpr
Reconstructed hit in TOTEM RP.
Definition: TotemRPRecHit.h:18
iterator begin()
Definition: DetSet.h:59
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
double GetHitPositionInReadoutDirection(double strip_no) const
Definition: RPTopology.h:41

Member Data Documentation

RPTopology TotemRPRecHitProducerAlgorithm::rp_topology_
private

Definition at line 31 of file TotemRPRecHitProducerAlgorithm.h.

Referenced by buildRecoHits().