CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESProducerLooper.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Class : ESProducerLooper
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Mon Jul 17 09:34:30 EDT 2006
11 // $Id: ESProducerLooper.cc,v 1.1 2006/07/23 01:24:34 valya Exp $
12 //
13 
14 // system include files
15 
16 // user include files
18 
19 using namespace edm;
20 using namespace edm::eventsetup;
21 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 //
30 // constructors and destructor
31 //
33 {
34 }
35 
36 // ESProducerLooper::ESProducerLooper(const ESProducerLooper& rhs)
37 // {
38 // // do actual copying here;
39 // }
40 /*
41 ESProducerLooper::~ESProducerLooper()
42 {
43 }
44 */
45 //
46 // assignment operators
47 //
48 // const ESProducerLooper& ESProducerLooper::operator=(const ESProducerLooper& rhs)
49 // {
50 // //An exception safe implementation is
51 // ESProducerLooper temp(rhs);
52 // swap(rhs);
53 //
54 // return *this;
55 // }
56 
57 //
58 // member functions
59 //
60 void
62  const IOVSyncValue&,
63  ValidityInterval& oInterval)
64 {
65  //since non of the dependent records are valid, I will create one that is valid
66  // at the beginning of time BUT must also be checked every request
67  //oInterval = ValidityInterval(IOVSyncValue::beginOfTime(),
68  // IOVSyncValue::invalidIOVSyncValue());
69  // }
70  //} else {
71  //Give one valid for all time
74  //}
75 }
76 
77 //use this to 'snoop' on what records are being used by the Producer
78 void
80  std::auto_ptr<eventsetup::ProxyFactoryBase>& iFactory,
81  const std::string& iLabel )
82 {
83  findingRecordWithKey(iRecord);
84  ESProxyFactoryProducer::registerFactoryWithKey(iRecord, iFactory,iLabel);
85 }
86 
87 //
88 // const member functions
89 //
90 std::set<eventsetup::EventSetupRecordKey>
92  return findingForRecords();
93 }
94 //
95 // static member functions
96 //
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
virtual void registerFactoryWithKey(const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
static const IOVSyncValue & beginOfTime()
virtual std::set< eventsetup::EventSetupRecordKey > modifyingRecords() const
virtual void registerFactoryWithKey(const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
void setIntervalFor(const eventsetup::EventSetupRecordKey &iKey, const IOVSyncValue &iTime, ValidityInterval &oInterval)