CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RingMakerESProducer.cc
Go to the documentation of this file.
1 //
2 // Package: RecoTracker/RingMakerESProducer
3 // Class: RingMakerESProducer
4 //
5 // Description: Uses the RingMaker object to construct
6 // and provide a Rings object.
7 //
8 // Original Author: Oliver Gutsche, gutsche@fnal.gov
9 // Created: Tue Oct 3 23:51:34 UTC 2006
10 //
11 // $Author: gutsche $
12 // $Date: 2007/03/30 02:49:36 $
13 // $Revision: 1.4 $
14 //
15 
17 
19 
21 
23 
25 {
26  std::string componentName = iConfig.getParameter<std::string>("ComponentName");
27  setWhatProduced(this, componentName);
28 
29  writeOut_ = iConfig.getUntrackedParameter<bool>("WriteOutRingsToAsciiFile",false);
30  fileName_ = iConfig.getUntrackedParameter<std::string>("RingAsciiFileName","");
31  dumpDetIds_ = iConfig.getUntrackedParameter<bool>("DumpDetIds",false);
32  detIdsDumpFileName_ = iConfig.getUntrackedParameter<std::string>("DetIdsDumpFileName","");
33  configuration_ = iConfig.getUntrackedParameter<std::string>("Configuration","FULL");
34 
35  rings_ = 0;
36 
37 }
38 
39 
41 {
42 // if ( rings_ != 0) {
43 // delete rings_;
44 // }
45 
46 }
47 
48 
51 {
52 
53  // get geometry
54  edm::ESHandle<TrackerGeometry> trackingGeometryHandle;
55  iRecord.getRecord<TrackerDigiGeometryRecord>().get(trackingGeometryHandle);
56  const TrackerGeometry *tracker = trackingGeometryHandle.product();
57 
59 
60  if ( dumpDetIds_ ) {
62  }
63 
64  rings_ = maker.getRings();
65 
66  ReturnType pRings(rings_) ;
67 
68  if ( writeOut_ ) {
70  }
71 
72  return pRings ;
73 }
74 
75 //define this as a plug-in
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void dump(std::string ascii_filename="rings.dat") const
Definition: Rings.cc:105
RingMakerESProducer(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< Rings > ReturnType
Rings * getRings()
Definition: RingMaker.h:121
edm::serviceregistry::AllArgsMaker< DTDataMonitorInterface, DTDataIntegrityTask > maker
Definition: plugins.cc:60
bool dumpDetIdsIntoFile(std::string fileName)
Definition: RingMaker.cc:1043
T const * product() const
Definition: ESHandle.h:62
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:48
ReturnType produce(const RingRecord &)
std::string detIdsDumpFileName_