CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
TrackingRecHitPipe Class Reference

#include <TrackingRecHitPipe.h>

Public Member Functions

void addAlgorithm (TrackingRecHitAlgorithm *algorithm)
 
TrackingRecHitProductPtr produce (TrackingRecHitProductPtr product) const
 
unsigned int size () const
 
 TrackingRecHitPipe ()
 

Protected Attributes

std::vector< TrackingRecHitAlgorithm * > _algorithms
 

Detailed Description

Definition at line 9 of file TrackingRecHitPipe.h.

Constructor & Destructor Documentation

◆ TrackingRecHitPipe()

TrackingRecHitPipe::TrackingRecHitPipe ( )
inline

Definition at line 14 of file TrackingRecHitPipe.h.

14 {}

Member Function Documentation

◆ addAlgorithm()

void TrackingRecHitPipe::addAlgorithm ( TrackingRecHitAlgorithm algorithm)
inline

Definition at line 25 of file TrackingRecHitPipe.h.

References _algorithms, and qcdUeDQM_cfi::algorithm.

25 { _algorithms.push_back(algorithm); }
std::vector< TrackingRecHitAlgorithm * > _algorithms

◆ produce()

TrackingRecHitProductPtr TrackingRecHitPipe::produce ( TrackingRecHitProductPtr  product) const
inline

Definition at line 16 of file TrackingRecHitPipe.h.

References _algorithms.

16  {
17  for (unsigned int ialgo = 0; product && (ialgo < _algorithms.size()); ++ialgo) {
18  product = _algorithms[ialgo]->process(product);
19  }
20  return product;
21  }
std::vector< TrackingRecHitAlgorithm * > _algorithms

◆ size()

unsigned int TrackingRecHitPipe::size ( void  ) const
inline

Definition at line 23 of file TrackingRecHitPipe.h.

References _algorithms.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

23 { return _algorithms.size(); }
std::vector< TrackingRecHitAlgorithm * > _algorithms

Member Data Documentation

◆ _algorithms

std::vector<TrackingRecHitAlgorithm*> TrackingRecHitPipe::_algorithms
protected

Definition at line 11 of file TrackingRecHitPipe.h.

Referenced by addAlgorithm(), produce(), and size().