![]() |
![]() |
#include <ClusterShapeHitFilterESProducer.h>
Public Types | |
typedef std::auto_ptr < ClusterShapeHitFilter > | ReturnType |
Public Member Functions | |
ClusterShapeHitFilterESProducer (const edm::ParameterSet &) | |
ReturnType | produce (const ClusterShapeHitFilter::Record &) |
~ClusterShapeHitFilterESProducer () |
TrackingTools/ClusterShapeHitFilterESProducer/src/ClusterShapeHitFilterESProducer.cc
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 42 of file ClusterShapeHitFilterESProducer.h.
typedef std::auto_ptr<ClusterShapeHitFilter> ClusterShapeHitFilterESProducer::ReturnType |
Definition at line 48 of file ClusterShapeHitFilterESProducer.h.
ClusterShapeHitFilterESProducer::ClusterShapeHitFilterESProducer | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 14 of file ClusterShapeHitFilterESProducer.cc.
References edm::ParameterSet::getParameter().
{ std::string componentName = iConfig.getParameter<std::string>("ComponentName"); edm::LogInfo("ClusterShapeHitFilterESProducer") << " with name: " << componentName; setWhatProduced(this, componentName); }
ClusterShapeHitFilterESProducer::~ClusterShapeHitFilterESProducer | ( | ) |
Definition at line 28 of file ClusterShapeHitFilterESProducer.cc.
{ }
ClusterShapeHitFilterESProducer::ReturnType ClusterShapeHitFilterESProducer::produce | ( | const ClusterShapeHitFilter::Record & | iRecord | ) |
Definition at line 35 of file ClusterShapeHitFilterESProducer.cc.
References edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and strip().
{ using namespace edm::es; // Retrieve magnetic field edm::ESHandle<MagneticField> field; iRecord.getRecord<TrackingComponentsRecord>().getRecord<IdealMagneticFieldRecord>().get(field); // iRecord.getRecord<IdealMagneticFieldRecord>().get(field); //iRecord.get(field); // Retrieve geometry edm::ESHandle<GlobalTrackingGeometry> geo; iRecord.getRecord<TrackingComponentsRecord>().getRecord<GlobalTrackingGeometryRecord>().get(geo); //iRecord.getRecord<GlobalTrackingGeometryRecord>().get(geo); // Retrieve pixel Lorentz edm::ESHandle<SiPixelLorentzAngle> pixel; iRecord.getRecord<TkPixelCPERecord>().getRecord<SiPixelLorentzAngleRcd>().get(pixel); //iRecord.getRecord<SiPixelLorentzAngleRcd>().get(pixel); // Retrieve strip Lorentz edm::ESHandle<SiStripLorentzAngle> strip; iRecord.getRecord<TkStripCPERecord>().getRecord<SiStripLorentzAngleRcd>().get(strip); //iRecord.getRecord<SiStripLorentzAngleRcd>().get(strip); // Produce the filter using the plugin factory ClusterShapeHitFilterESProducer::ReturnType aFilter(new ClusterShapeHitFilter( geo.product(), field.product(), pixel.product(), strip.product())); return aFilter; }