CMS 3D CMS Logo

cms::SiStripClusterizer Class Reference

#include <RecoLocalTracker/SiStripClusterizer/interface/SiStripClusterizer.h>

Inheritance diagram for cms::SiStripClusterizer:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

virtual void produce (edm::Event &e, const edm::EventSetup &c)
 SiStripClusterizer (const edm::ParameterSet &conf)
virtual ~SiStripClusterizer ()

Private Attributes

edm::ParameterSet conf_
SiStripQuality emptyQuality
SiStripClusterizerAlgorithm SiStripClusterizerAlgorithm_


Detailed Description

Definition at line 40 of file SiStripClusterizer.h.


Constructor & Destructor Documentation

SiStripClusterizer::SiStripClusterizer ( const edm::ParameterSet conf  )  [explicit]

Definition at line 12 of file SiStripClusterizer.cc.

00012                                                                     : 
00013     conf_(conf),
00014     SiStripClusterizerAlgorithm_(conf) {
00015 
00016     edm::LogInfo("SiStripClusterizer") << "[SiStripClusterizer::SiStripClusterizer] Constructing object...";
00017     
00018     produces< edmNew::DetSetVector<SiStripCluster> > ();
00019   }

SiStripClusterizer::~SiStripClusterizer (  )  [virtual]

Definition at line 22 of file SiStripClusterizer.cc.

00022                                           { 
00023     edm::LogInfo("SiStripClusterizer") << "[SiStripClusterizer::~SiStripClusterizer] Destructing object...";
00024   }  


Member Function Documentation

void SiStripClusterizer::produce ( edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDProducer.

Definition at line 27 of file SiStripClusterizer.cc.

References reco_application_tbsim_simpleTBanalysis_cfg::digiProducer, python::SiStripOnlineP5_cfg::DigiProducersList, edm::Event::getByLabel(), iggi_31X_cfg::input, output(), and edm::Event::put().

00028   {
00029 
00030     // Step B: Get Inputs 
00031     edm::Handle< edm::DetSetVector<SiStripDigi> >  input;
00032 
00033     // Step C: produce output product
00034     std::auto_ptr< edmNew::DetSetVector<SiStripCluster> > output(new edmNew::DetSetVector<SiStripCluster>());
00035     output->reserve(10000,4*10000); //FIXME
00036 
00037     typedef std::vector<edm::ParameterSet> Parameters;
00038     Parameters DigiProducersList = conf_.getParameter<Parameters>("DigiProducersList");
00039     Parameters::iterator itDigiProducersList = DigiProducersList.begin();
00040     for(; itDigiProducersList != DigiProducersList.end(); ++itDigiProducersList ) {
00041       std::string digiProducer = itDigiProducersList->getParameter<std::string>("DigiProducer");
00042       std::string digiLabel = itDigiProducersList->getParameter<std::string>("DigiLabel");
00043       e.getByLabel(digiProducer,digiLabel,input);  //FIXME: fix this label      
00044       if (input->size())
00045         SiStripClusterizerAlgorithm_.run(*input,*output, es);
00046     }
00047     
00048     // Step D: write output to file
00049     e.put(output);
00050   }


Member Data Documentation

edm::ParameterSet cms::SiStripClusterizer::conf_ [private]

Definition at line 51 of file SiStripClusterizer.h.

SiStripQuality cms::SiStripClusterizer::emptyQuality [private]

Definition at line 54 of file SiStripClusterizer.h.

SiStripClusterizerAlgorithm cms::SiStripClusterizer::SiStripClusterizerAlgorithm_ [private]

Definition at line 52 of file SiStripClusterizer.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:36:38 2009 for CMSSW by  doxygen 1.5.4