CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RingESSource.cc
Go to the documentation of this file.
1 //
2 // Package: RecoTracker/RingESSource
3 // Class: RingESSource
4 //
5 // Description: Reads in ASCII dump of Rings
6 // and provides it to the event.
7 //
8 // Original Author: Oliver Gutsche, gutsche@fnal.gov
9 // Created: Thu Oct 5 01:35:14 UTC 2006
10 //
11 // $Author: gutsche $
12 // $Date: 2007/03/30 02:49:35 $
13 // $Revision: 1.4 $
14 //
15 
18 
19 RingESSource::RingESSource(const edm::ParameterSet& iConfig) : fileName_((iConfig.getParameter<edm::FileInPath>("InputFileName")).fullPath()) {
20 
21  std::string componentName = iConfig.getParameter<std::string>("ComponentName");
22  setWhatProduced(this, componentName);
23 
24  findingRecord<RingRecord>();
25 
26  rings_ = 0;
27 }
28 
29 
31 {
32 
33 }
34 
37 {
38  using namespace edm::es;
39 
40  rings_ = new Rings(fileName_);
41 
42  std::auto_ptr<Rings> rings(rings_);
43 
44  return rings ;
45 }
46 
49 }
50 
51 
52 //define this as a plug-in
54 
T getParameter(std::string const &) const
std::auto_ptr< Rings > ReturnType
Definition: RingESSource.h:44
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
ReturnType produce(const RingRecord &)
Definition: RingESSource.cc:36
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
RingESSource(const edm::ParameterSet &)
Definition: RingESSource.cc:19
static const IOVSyncValue & beginOfTime()
Rings * rings_
Definition: RingESSource.h:56
Definition: Rings.h:27
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
Definition: SourceFactory.h:82
std::string fileName_
Definition: RingESSource.h:55
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
Definition: RingESSource.cc:47