CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
ConditionDBWriter< T > Class Template Referenceabstract

#include <ConditionDBWriter.h>

Inheritance diagram for ConditionDBWriter< T >:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 ConditionDBWriter (const edm::ParameterSet &iConfig)
 
 ~ConditionDBWriter () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void setDoStore (const bool doStore)
 When set to false the payload will not be written to the db. More...
 
void storeOnDbNow ()
 
cond::Time_t timeOfLastIOV ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Member Functions

virtual void algoAnalyze (const edm::Event &, const edm::EventSetup &)
 
virtual void algoBeginJob (const edm::EventSetup &)
 
virtual void algoBeginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void algoBeginRun (const edm::Run &, const edm::EventSetup &)
 
virtual void algoEndJob ()
 
virtual void algoEndLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void algoEndRun (const edm::Run &, const edm::EventSetup &)
 
void analyze (const edm::Event &event, const edm::EventSetup &iSetup) override
 
void beginJob () override
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
 
void beginRun (const edm::Run &run, const edm::EventSetup &es) override
 
void endJob () override
 
void endLuminosityBlock (const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &es) override
 
void endRun (const edm::Run &run, const edm::EventSetup &es) override
 
virtual std::unique_ptr< TgetNewObject ()=0
 
void setTime ()
 
void storeOnDb (std::unique_ptr< T > &objPointer)
 

Private Attributes

bool AlgoDrivenMode_
 
bool doStore_
 
bool firstRun_
 
bool JobMode_
 
bool LumiBlockMode_
 
unsigned int maxRunRange_
 
unsigned int minRunRange_
 
std::string Record_
 
bool RunMode_
 
bool setSinceTime_
 
bool SinceAppendMode_
 
cond::Time_t Time_
 
bool timeFromEndRun_
 
bool timeFromStartOfRunRange_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

Detailed Description

template<class T>
class ConditionDBWriter< T >

Implementation:

This class can be very useful whenever a CMSSW application needs to store data to the offline DB. Typically such applications require access to event data and/or need to be notified about the start of Run, Lumi section in order to set a correct Interval Of Validity (IOV) for the data they have to store. Therefore the FWK EDAnalyzer is an excellent candidate for the implementation of such applications; this is the reason why this class inherits from the EDAnalyzer class.

The user class should inherit from this class. The templated type must be the type of the object that has to be written on the DB (e.g. MyCalibration). Examples of use of this class can be found in package CalibTracker/SiStripChannelGain. Have a look also at the test/ directory for examples of full cfg files.

The user must implement in his derived class the abstract method below

virtual std::unique_ptr<MyCalibration> getNewObject()=0;

The user can optionally implement the following methods

//Will be called at the beginning of the job virtual void algoBeginJob(const edm::EventSetup&){}; //Will be called at the beginning of each run in the job virtual void algoBeginRun(const edm::Run &, const edm::EventSetup &){}; //Will be called at the beginning of each luminosity block in the run virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &){}; //Will be called at every event virtual void algoAnalyze(const edm::Event&, const edm::EventSetup&){}; //Will be called at the end of each run in the job virtual void algoEndRun(const edm::Run &, const edm::EventSetup &){}; //Will be called at the end of the job virtual void algoEndJob(){};

where he can access information needed to build his object. For instance, if he is computing a calibration that is computed as the mean of a certain quantity that varies from event to event, he will implement the algoAnalyze method.

The important part is the IOV setting. The advantage of using this class is that this setting is performed almost automatically: the only thing that the user has to do is to pass prescriptions about the IOV setting in the configuration of his module. A typical configuration is as follows:

   module prod =  SiStripGainRandomCalculator {

   #parameters of the derived class
    double MinPositiveGain = 0.1
    double MeanGain    = 1
    double SigmaGain   = 0
             untracked bool   printDebug = true

   #parameters of the base class
    string IOVMode       = "Run"
    bool SinceAppendMode = true
    string Record        = "SiStripApvGainRcd"

            }

Two subsets of parameters can be found. The first subset contains the specific parameters of the user class, which is called in this case SiStripGainRandomCalculator. The second subset contains the parameters of the base class. These are the following:

1) string IOVMode

4 possible values can be given: "Job", "Run", "LumiBlock" and "AlgoDriven" This card determines the length of the IOV. In other words, together with
the number of Lumysections/runs the user has decided to run his application, this card determines the number of objects that will be stored on the DB (the getNewObject method will be called as many times). For example if the user is running on the events of one Run, which has 10 luminosity sections and chooses the "LumiBlock" mode, then 10 objects with corresponding IOV will be written. If the "Job" mode is chosen, only one object will be stored irrespective of the dataset on which the user is running. The "AlgoDriven" option is special. If this choice is made, then it is up to the user to tell in the code when the getNewObject method must be called. This can be done by calling the method below void storeOnDbNow() must be invoked whenever a certain condition that justifies the start/end of an IOV is met.

2) bool SinceAppendMode

obsolete option now ONLY Since append mode is supported

 WARNING: due to the policy of the framework, objects SHALL be stored
 in IOV chronological order. If you have 10 runs, then execute your application starting from run 1 and not for example in two steps: first from Run 6 to Run 10 and then from Run 1 to Run 6.

3)string Record

this is the eventsetup record of your object.

Note that the setDoStore method changes the doStore parameter read from configuration file. This is sometimes needed e.g. to avoid filling bad payloads to the database.

Definition at line 149 of file ConditionDBWriter.h.

Constructor & Destructor Documentation

◆ ConditionDBWriter()

template<class T>
ConditionDBWriter< T >::ConditionDBWriter ( const edm::ParameterSet iConfig)
inlineexplicit

Definition at line 151 of file ConditionDBWriter.h.

152  : minRunRange_(1 << 31),
153  maxRunRange_(0),
154  LumiBlockMode_(false),
155  RunMode_(false),
156  JobMode_(false),
157  AlgoDrivenMode_(false),
158  Time_(0),
159  setSinceTime_(false),
160  firstRun_(true) {
161  edm::LogInfo("ConditionDBWriter::ConditionDBWriter()") << std::endl;
162  SinceAppendMode_ = iConfig.getParameter<bool>("SinceAppendMode");
163  std::string IOVMode = iConfig.getParameter<std::string>("IOVMode");
164  if (IOVMode == std::string("Job"))
165  JobMode_ = true;
166  else if (IOVMode == std::string("Run"))
167  RunMode_ = true;
168  else if (IOVMode == std::string("LumiBlock"))
169  LumiBlockMode_ = true;
170  else if (IOVMode == std::string("AlgoDriven"))
171  AlgoDrivenMode_ = true;
172  else
174  "ConditionDBWriter::ConditionDBWriter(): ERROR - unknown IOV interval write mode...will not store anything "
175  "on the DB")
176  << std::endl;
177  Record_ = iConfig.getParameter<std::string>("Record");
178  doStore_ = iConfig.getParameter<bool>("doStoreOnDB");
179  timeFromEndRun_ = iConfig.getUntrackedParameter<bool>("TimeFromEndRun", false);
180  timeFromStartOfRunRange_ = iConfig.getUntrackedParameter<bool>("TimeFromStartOfRunRange", false);
181 
182  if (!SinceAppendMode_)
183  edm::LogError("ConditionDBWriter::endJob(): ERROR - only SinceAppendMode support!!!!");
184  }

◆ ~ConditionDBWriter()

template<class T>
ConditionDBWriter< T >::~ConditionDBWriter ( )
inlineoverride

Definition at line 186 of file ConditionDBWriter.h.

186 { edm::LogInfo("ConditionDBWriter::~ConditionDBWriter()") << std::endl; }

Member Function Documentation

◆ algoAnalyze()

template<class T>
virtual void ConditionDBWriter< T >::algoAnalyze ( const edm::Event ,
const edm::EventSetup  
)
inlineprivatevirtual

◆ algoBeginJob()

template<class T>
virtual void ConditionDBWriter< T >::algoBeginJob ( const edm::EventSetup )
inlineprivatevirtual

◆ algoBeginLuminosityBlock()

template<class T>
virtual void ConditionDBWriter< T >::algoBeginLuminosityBlock ( const edm::LuminosityBlock ,
const edm::EventSetup  
)
inlineprivatevirtual

◆ algoBeginRun()

template<class T>
virtual void ConditionDBWriter< T >::algoBeginRun ( const edm::Run ,
const edm::EventSetup  
)
inlineprivatevirtual

◆ algoEndJob()

template<class T>
virtual void ConditionDBWriter< T >::algoEndJob ( )
inlineprivatevirtual

◆ algoEndLuminosityBlock()

template<class T>
virtual void ConditionDBWriter< T >::algoEndLuminosityBlock ( const edm::LuminosityBlock ,
const edm::EventSetup  
)
inlineprivatevirtual

Definition at line 263 of file ConditionDBWriter.h.

263 {};

Referenced by ConditionDBWriter< SiStripApvGain >::endLuminosityBlock().

◆ algoEndRun()

template<class T>
virtual void ConditionDBWriter< T >::algoEndRun ( const edm::Run ,
const edm::EventSetup  
)
inlineprivatevirtual

Reimplemented in SiStripGainFromCalibTree.

Definition at line 204 of file ConditionDBWriter.h.

204 {};

Referenced by ConditionDBWriter< SiStripApvGain >::endRun().

◆ analyze()

template<class T>
void ConditionDBWriter< T >::analyze ( const edm::Event event,
const edm::EventSetup iSetup 
)
inlineoverrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 237 of file ConditionDBWriter.h.

237  {
238  if (setSinceTime_) {
239  setTime(); //set new since time for possible next upload to DB
240  setSinceTime_ = false;
241  }
242  algoAnalyze(event, iSetup);
243  }

◆ beginJob()

template<class T>
void ConditionDBWriter< T >::beginJob ( void  )
inlineoverrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 208 of file ConditionDBWriter.h.

208 {}

◆ beginLuminosityBlock()

template<class T>
void ConditionDBWriter< T >::beginLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup iSetup 
)
inlineoverrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 230 of file ConditionDBWriter.h.

230  {
231  edm::LogInfo("ConditionDBWriter::beginLuminosityBlock") << std::endl;
233  setSinceTime_ = true;
234  algoBeginLuminosityBlock(lumiBlock, iSetup);
235  }

◆ beginRun()

template<class T>
void ConditionDBWriter< T >::beginRun ( const edm::Run run,
const edm::EventSetup es 
)
inlineoverrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 210 of file ConditionDBWriter.h.

210  {
211  if (firstRun_) {
212  edm::LogInfo("ConditionDBWriter::beginJob") << std::endl;
214  setSinceTime_ = true;
215  algoBeginJob(es);
216  firstRun_ = false;
217  }
218 
219  if (run.id().run() < minRunRange_)
220  minRunRange_ = run.id().run();
221  if (run.id().run() > maxRunRange_)
222  maxRunRange_ = run.id().run();
223 
224  edm::LogInfo("ConditionDBWriter::beginRun") << std::endl;
225  if (RunMode_ && SinceAppendMode_)
226  setSinceTime_ = true;
227  algoBeginRun(run, es);
228  }

◆ endJob()

template<class T>
void ConditionDBWriter< T >::endJob ( void  )
inlineoverrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 286 of file ConditionDBWriter.h.

286  {
287  edm::LogInfo("ConditionDBWriter::endJob") << std::endl;
288 
289  algoEndJob();
290 
291  if (JobMode_) {
292  std::unique_ptr<T> objPointer = getNewObject();
293 
294  if (objPointer) {
295  storeOnDb(objPointer);
296  }
297 
298  else {
300  "ConditionDBWriter::endJob(): ERROR - requested to store on DB on a Job based interval, but received null "
301  "pointer...will not store anything on the DB")
302  << std::endl;
303  }
304  }
305  }

Referenced by o2olib.O2ORunMgr::executeJob().

◆ endLuminosityBlock()

template<class T>
void ConditionDBWriter< T >::endLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup es 
)
inlineoverrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 245 of file ConditionDBWriter.h.

245  {
246  edm::LogInfo("ConditionDBWriter::endLuminosityBlock") << std::endl;
247  algoEndLuminosityBlock(lumiBlock, es);
248 
249  if (LumiBlockMode_) {
250  std::unique_ptr<T> objPointer = getNewObject();
251 
252  if (objPointer) {
253  storeOnDb(objPointer);
254  } else {
256  "ConditionDBWriter::endLuminosityblock(): ERROR - requested to store on DB on a Lumi Block based interval, "
257  "but received null pointer...will not store anything on the DB")
258  << std::endl;
259  }
260  }
261  }

◆ endRun()

template<class T>
void ConditionDBWriter< T >::endRun ( const edm::Run run,
const edm::EventSetup es 
)
inlineoverrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 265 of file ConditionDBWriter.h.

265  {
266  edm::LogInfo("ConditionDBWriter::endRun") << std::endl;
267 
268  algoEndRun(run, es);
269 
270  if (RunMode_) {
271  std::unique_ptr<T> objPointer = getNewObject();
272 
273  if (objPointer) {
274  if (timeFromEndRun_)
275  Time_ = run.id().run();
276  storeOnDb(objPointer);
277  } else {
279  "ConditionDBWriter::endRun(): ERROR - requested to store on DB on a Run based interval, but received null "
280  "pointer...will not store anything on the DB")
281  << std::endl;
282  }
283  }
284  }

◆ getNewObject()

template<class T>
virtual std::unique_ptr<T> ConditionDBWriter< T >::getNewObject ( )
privatepure virtual

◆ setDoStore()

template<class T>
void ConditionDBWriter< T >::setDoStore ( const bool  doStore)
inlineprotected

When set to false the payload will not be written to the db.

Definition at line 385 of file ConditionDBWriter.h.

385 { doStore_ = doStore; }

◆ setTime()

template<class T>
void ConditionDBWriter< T >::setTime ( )
inlineprivate

Definition at line 339 of file ConditionDBWriter.h.

339  {
341 
342  if (mydbservice.isAvailable()) {
343  Time_ = mydbservice->currentTime();
344  edm::LogInfo("ConditionDBWriter::setTime: time set to ") << Time_ << std::endl;
345  } else {
346  edm::LogError("ConditionDBWriter::setTime(): PoolDBOutputService is not available...cannot set current time")
347  << std::endl;
348  }
349  }

Referenced by ConditionDBWriter< SiStripApvGain >::analyze().

◆ storeOnDb()

template<class T>
void ConditionDBWriter< T >::storeOnDb ( std::unique_ptr< T > &  objPointer)
inlineprivate

Definition at line 307 of file ConditionDBWriter.h.

307  {
308  edm::LogInfo("ConditionDBWriter::storeOnDb ") << std::endl;
309 
310  setSinceTime_ = true;
311 
312  if (!objPointer) {
313  edm::LogError("ConditionDBWriter: Pointer to object has not been set...storing no data on DB");
314  return;
315  }
316 
317  //And now write data in DB
318  if (!doStore_)
319  return;
321  if (!mydbservice.isAvailable()) {
322  edm::LogError("ConditionDBWriter") << "PoolDBOutputService is unavailable" << std::endl;
323  return;
324  }
325 
327  (mydbservice->isNewTagRequest(Record_) && !timeFromEndRun_) ? mydbservice->beginOfTime() : Time_;
328 
329  //overwrite tim in the case we have the flag TimeFromStartOfRunRange set to on
332 
333  edm::LogInfo("ConditionDBWriter") << "appending a new object to tag " << Record_ << " in since mode " << std::endl;
334 
335  // The Framework will take control over the DB object now, therefore the release.
336  mydbservice->writeOne<T>(objPointer.release(), since, Record_);
337  }

Referenced by ConditionDBWriter< SiStripApvGain >::endJob(), ConditionDBWriter< SiStripApvGain >::endLuminosityBlock(), ConditionDBWriter< SiStripApvGain >::endRun(), and ConditionDBWriter< SiStripApvGain >::storeOnDbNow().

◆ storeOnDbNow()

template<class T>
void ConditionDBWriter< T >::storeOnDbNow ( )
inlineprotected

Definition at line 354 of file ConditionDBWriter.h.

354  {
355  if (AlgoDrivenMode_) {
356  setSinceTime_ = true;
357 
358  std::unique_ptr<T> objPointer = getNewObject();
359 
360  if (!objPointer) {
362  "ConditionDBWriter::storeOnDbNow: ERROR - requested to store on DB a new object (module configuration is "
363  "algo driven based IOV), but received NULL pointer...will not store anything on the DB")
364  << std::endl;
365  return;
366  } else {
367  storeOnDb(objPointer);
368  }
369 
370  } else {
372  "ConditionDBWriter::storeOnDbNow(): ERROR - received a direct request from concrete algorithm to store on DB "
373  "a new object, but module configuration is not to store on DB on an algo driven based interval...will not "
374  "store anything on the DB")
375  << std::endl;
376  return;
377  }
378  }

◆ timeOfLastIOV()

template<class T>
cond::Time_t ConditionDBWriter< T >::timeOfLastIOV ( )
inlineprotected

Definition at line 382 of file ConditionDBWriter.h.

382 { return Time_; }

Member Data Documentation

◆ AlgoDrivenMode_

template<class T>
bool ConditionDBWriter< T >::AlgoDrivenMode_
private

◆ doStore_

template<class T>
bool ConditionDBWriter< T >::doStore_
private

◆ firstRun_

template<class T>
bool ConditionDBWriter< T >::firstRun_
private

Definition at line 405 of file ConditionDBWriter.h.

Referenced by ConditionDBWriter< SiStripApvGain >::beginRun().

◆ JobMode_

template<class T>
bool ConditionDBWriter< T >::JobMode_
private

◆ LumiBlockMode_

template<class T>
bool ConditionDBWriter< T >::LumiBlockMode_
private

◆ maxRunRange_

template<class T>
unsigned int ConditionDBWriter< T >::maxRunRange_
private

Definition at line 389 of file ConditionDBWriter.h.

Referenced by ConditionDBWriter< SiStripApvGain >::beginRun().

◆ minRunRange_

template<class T>
unsigned int ConditionDBWriter< T >::minRunRange_
private

◆ Record_

template<class T>
std::string ConditionDBWriter< T >::Record_
private

◆ RunMode_

template<class T>
bool ConditionDBWriter< T >::RunMode_
private

◆ setSinceTime_

template<class T>
bool ConditionDBWriter< T >::setSinceTime_
private

◆ SinceAppendMode_

template<class T>
bool ConditionDBWriter< T >::SinceAppendMode_
private

◆ Time_

template<class T>
cond::Time_t ConditionDBWriter< T >::Time_
private

◆ timeFromEndRun_

template<class T>
bool ConditionDBWriter< T >::timeFromEndRun_
private

◆ timeFromStartOfRunRange_

template<class T>
bool ConditionDBWriter< T >::timeFromStartOfRunRange_
private
ConditionDBWriter::firstRun_
bool firstRun_
Definition: ConditionDBWriter.h:405
ConditionDBWriter::setTime
void setTime()
Definition: ConditionDBWriter.h:339
ConditionDBWriter::SinceAppendMode_
bool SinceAppendMode_
Definition: ConditionDBWriter.h:391
ConditionDBWriter::algoEndRun
virtual void algoEndRun(const edm::Run &, const edm::EventSetup &)
Definition: ConditionDBWriter.h:204
ConditionDBWriter::algoAnalyze
virtual void algoAnalyze(const edm::Event &, const edm::EventSetup &)
Definition: ConditionDBWriter.h:202
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition: PoolDBOutputService.cc:177
ConditionDBWriter::algoBeginJob
virtual void algoBeginJob(const edm::EventSetup &)
Definition: ConditionDBWriter.h:196
ConditionDBWriter::RunMode_
bool RunMode_
Definition: ConditionDBWriter.h:394
ConditionDBWriter::maxRunRange_
unsigned int maxRunRange_
Definition: ConditionDBWriter.h:389
edm::LogInfo
Definition: MessageLogger.h:254
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
ConditionDBWriter::setSinceTime_
bool setSinceTime_
Definition: ConditionDBWriter.h:403
ConditionDBWriter::Time_
cond::Time_t Time_
Definition: ConditionDBWriter.h:401
ConditionDBWriter::getNewObject
virtual std::unique_ptr< T > getNewObject()=0
writeEcalDQMStatus.since
since
Definition: writeEcalDQMStatus.py:53
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogError
Definition: MessageLogger.h:183
ConditionDBWriter::JobMode_
bool JobMode_
Definition: ConditionDBWriter.h:395
ConditionDBWriter::timeFromEndRun_
bool timeFromEndRun_
Definition: ConditionDBWriter.h:407
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
edm::Service< cond::service::PoolDBOutputService >
ConditionDBWriter::doStore_
bool doStore_
Definition: ConditionDBWriter.h:397
ConditionDBWriter::timeFromStartOfRunRange_
bool timeFromStartOfRunRange_
Definition: ConditionDBWriter.h:408
ConditionDBWriter::AlgoDrivenMode_
bool AlgoDrivenMode_
Definition: ConditionDBWriter.h:396
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
writedatasetfile.run
run
Definition: writedatasetfile.py:27
T
long double T
Definition: Basic3DVectorLD.h:48
ConditionDBWriter::LumiBlockMode_
bool LumiBlockMode_
Definition: ConditionDBWriter.h:393
ConditionDBWriter::storeOnDb
void storeOnDb(std::unique_ptr< T > &objPointer)
Definition: ConditionDBWriter.h:307
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition: PoolDBOutputService.h:56
ConditionDBWriter::Record_
std::string Record_
Definition: ConditionDBWriter.h:399
ConditionDBWriter::algoEndJob
virtual void algoEndJob()
Definition: ConditionDBWriter.h:206
cond::service::PoolDBOutputService::isNewTagRequest
bool isNewTagRequest(const std::string &recordName)
Definition: PoolDBOutputService.cc:90
ConditionDBWriter::algoEndLuminosityBlock
virtual void algoEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
Definition: ConditionDBWriter.h:263
ConditionDBWriter::minRunRange_
unsigned int minRunRange_
Definition: ConditionDBWriter.h:388
ConditionDBWriter::algoBeginRun
virtual void algoBeginRun(const edm::Run &, const edm::EventSetup &)
Definition: ConditionDBWriter.h:198
event
Definition: event.py:1
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition: PoolDBOutputService.cc:179
ConditionDBWriter::algoBeginLuminosityBlock
virtual void algoBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
Definition: ConditionDBWriter.h:200