#include <RecoLocalTracker/SiStripClusterizer/interface/SiStripClusterizer.h>
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_ |
Definition at line 40 of file SiStripClusterizer.h.
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 }
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 }
Definition at line 51 of file SiStripClusterizer.h.
Definition at line 54 of file SiStripClusterizer.h.
Definition at line 52 of file SiStripClusterizer.h.