CMS 3D CMS Logo

Public Types | Public Member Functions

ClusterShapeHitFilterESProducer Class Reference

#include <ClusterShapeHitFilterESProducer.h>

Inheritance diagram for ClusterShapeHitFilterESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef std::auto_ptr
< ClusterShapeHitFilter
ReturnType

Public Member Functions

 ClusterShapeHitFilterESProducer (const edm::ParameterSet &)
ReturnType produce (const ClusterShapeHitFilter::Record &)
 ~ClusterShapeHitFilterESProducer ()

Detailed Description

TrackingTools/ClusterShapeHitFilterESProducer/src/ClusterShapeHitFilterESProducer.cc

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 42 of file ClusterShapeHitFilterESProducer.h.


Member Typedef Documentation

Definition at line 48 of file ClusterShapeHitFilterESProducer.h.


Constructor & Destructor Documentation

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.

{
}

Member Function Documentation

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;
}