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

Definition at line 15 of file TrackingRecHitPipe.h.

16  {
17  }

Member Function Documentation

void TrackingRecHitPipe::addAlgorithm ( TrackingRecHitAlgorithm algorithm)
inline

Definition at line 33 of file TrackingRecHitPipe.h.

Referenced by TrackingRecHitProducer::setupDetIdPipes().

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

Definition at line 19 of file TrackingRecHitPipe.h.

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), HTMLExport.HTMLExportStatic::export(), and TrackingRecHitProducer::produce().

20  {
21  for (unsigned int ialgo = 0; product && (ialgo < _algorithms.size()); ++ialgo)
22  {
23  product = _algorithms[ialgo]->process(product);
24  }
25  return product;
26  }
std::vector< TrackingRecHitAlgorithm * > _algorithms
unsigned int TrackingRecHitPipe::size ( void  ) const
inline

Definition at line 28 of file TrackingRecHitPipe.h.

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

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

Member Data Documentation

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

Definition at line 12 of file TrackingRecHitPipe.h.