CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ClusterShapeHitFilterESProducer.cc
Go to the documentation of this file.
2 
4 
7 
8 
10 
11 /*****************************************************************************/
13  (const edm::ParameterSet& iConfig)
14 {
15 
16  std::string componentName = iConfig.getParameter<std::string>("ComponentName");
17 
18  edm::LogInfo("ClusterShapeHitFilterESProducer")
19  << " with name: " << componentName;
20 
21  setWhatProduced(this, componentName);
22 }
23 
24 
25 /*****************************************************************************/
27  ()
28 {
29 }
30 
31 /*****************************************************************************/
35 {
36  using namespace edm::es;
37 
38  // get all from SiStripLorentzAngle (why not!)
39 
40  // Retrieve magnetic field
42  iRecord.getRecord<TkStripCPERecord>().getRecord<IdealMagneticFieldRecord>().get(field);
43 
44  // Retrieve geometry
46  iRecord.getRecord<TkStripCPERecord>().getRecord<TrackerDigiGeometryRecord>().get(geo);
47 
48  // Retrieve pixel Lorentz
50  iRecord.getRecord<TkPixelCPERecord>().getRecord<SiPixelLorentzAngleRcd>().get(pixel);
51 
52  // Retrieve strip Lorentz
54  iRecord.getRecord<TkStripCPERecord>().getRecord<SiStripLorentzAngleDepRcd>().get(strip);
55 
56 
57 
58  // Produce the filter using the plugin factory
60  aFilter(new ClusterShapeHitFilter( geo.product(),
61  field.product(),
62  pixel.product(),
63  strip.product()));
64 
65  return aFilter;
66 }
T getParameter(std::string const &) const
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
std::auto_ptr< ClusterShapeHitFilter > ReturnType
ClusterShapeHitFilterESProducer(const edm::ParameterSet &)
ReturnType produce(const ClusterShapeHitFilter::Record &)
void get(HolderT &iHolder) const