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 | 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 ( )
inline

Definition at line 14 of file TrackingRecHitPipe.h.

14 {}

Member Function Documentation

void TrackingRecHitPipe::addAlgorithm ( TrackingRecHitAlgorithm algorithm)
inline

Definition at line 25 of file TrackingRecHitPipe.h.

References _algorithms.

Referenced by TrackingRecHitProducer::setupDetIdPipes().

25 { _algorithms.push_back(algorithm); }
std::vector< TrackingRecHitAlgorithm * > _algorithms
TrackingRecHitProductPtr TrackingRecHitPipe::produce ( TrackingRecHitProductPtr  product) const
inline

Definition at line 16 of file TrackingRecHitPipe.h.

References _algorithms.

Referenced by TrackingRecHitProducer::produce().

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
unsigned int TrackingRecHitPipe::size ( void  ) const
inline

Definition at line 23 of file TrackingRecHitPipe.h.

References _algorithms.

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

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

Member Data Documentation

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

Definition at line 11 of file TrackingRecHitPipe.h.

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