CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
edm::RunHelperBase Class Reference

#include <RunHelper.h>

Inheritance diagram for edm::RunHelperBase:
edm::DefaultRunHelper edm::SetRunForEachLumiHelper edm::SetRunHelper

Public Member Functions

virtual void checkForNewRun (RunNumber_t run)
 
virtual void checkLumiConsistency (LuminosityBlockNumber_t lumi, LuminosityBlockNumber_t origninalLumi) const
 
virtual void checkRunConsistency (RunNumber_t run, RunNumber_t origninalRun) const
 
virtual bool fakeNewRun () const
 
virtual InputSource::ItemType nextItemType (InputSource::ItemType const &previousItemType, InputSource::ItemType const &newItemType)
 
virtual void overrideRunNumber (EventID &event, bool isRealData)
 
virtual void overrideRunNumber (RunID &run)
 
virtual void overrideRunNumber (LuminosityBlockID &lumi)
 
 RunHelperBase ()=default
 
virtual RunNumber_t runNumberToUseForThisLumi () const
 
virtual void setForcedRunOffset (RunNumber_t firstRun)
 
virtual ~RunHelperBase ()
 

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)
 

Detailed Description

Definition at line 15 of file RunHelper.h.

Constructor & Destructor Documentation

edm::RunHelperBase::RunHelperBase ( )
explicitdefault
edm::RunHelperBase::~RunHelperBase ( )
virtual

Definition at line 28 of file RunHelper.cc.

28 {}

Member Function Documentation

virtual void edm::RunHelperBase::checkForNewRun ( RunNumber_t  run)
inlinevirtual
void edm::RunHelperBase::checkLumiConsistency ( LuminosityBlockNumber_t  lumi,
LuminosityBlockNumber_t  origninalLumi 
) const
virtual

Definition at line 30 of file RunHelper.cc.

Referenced by checkForNewRun().

30  {
31  assert(lumi == originalLumi);
32  }
void edm::RunHelperBase::checkRunConsistency ( RunNumber_t  run,
RunNumber_t  origninalRun 
) const
virtual

Reimplemented in edm::SetRunForEachLumiHelper, and edm::SetRunHelper.

Definition at line 34 of file RunHelper.cc.

Referenced by checkForNewRun(), and edm::SetRunForEachLumiHelper::fakeNewRun().

34  {
35  assert(run == originalRun);
36  }
virtual bool edm::RunHelperBase::fakeNewRun ( ) const
inlinevirtual

Reimplemented in edm::SetRunForEachLumiHelper.

Definition at line 25 of file RunHelper.h.

25 { return false; }
void edm::RunHelperBase::fillDescription ( ParameterSetDescription desc)
static

Definition at line 158 of file RunHelper.cc.

References edm::ParameterSetDescription::addOptionalNode(), edm::ParameterDescriptionNode::setComment(), and mitigatedMETSequence_cff::U.

Referenced by edm::PoolSource::fillDescriptions(), and overrideRunNumber().

158  {
159  desc.addOptionalNode(ParameterDescription<unsigned int>("setRunNumber", 0U, false) xor
160  ParameterDescription<std::vector<unsigned int> >(
161  "setRunNumberForEachLumi", std::vector<unsigned int>(), false),
162  true)
163  ->setComment(
164  "If 'setRun' is non-zero, change number of first run to this number. Apply same offset to all runs."
165  "If 'setRunNumberForEachLumi' is non-empty, use these as run numbers for each lumi respectively."
166  "''setRun' and 'setRunNumberForEachLumi' are mutually exclusive and allowed only for simulation.");
167  }
virtual InputSource::ItemType edm::RunHelperBase::nextItemType ( InputSource::ItemType const &  previousItemType,
InputSource::ItemType const &  newItemType 
)
inlinevirtual

Reimplemented in edm::SetRunForEachLumiHelper.

Definition at line 20 of file RunHelper.h.

21  {
22  return newItemType;
23  }
virtual void edm::RunHelperBase::overrideRunNumber ( EventID event,
bool  isRealData 
)
inlinevirtual

Reimplemented in edm::SetRunForEachLumiHelper, and edm::SetRunHelper.

Definition at line 31 of file RunHelper.h.

Referenced by edm::SetRunForEachLumiHelper::fakeNewRun().

31 {}
virtual void edm::RunHelperBase::overrideRunNumber ( RunID run)
inlinevirtual

Reimplemented in edm::SetRunForEachLumiHelper, and edm::SetRunHelper.

Definition at line 32 of file RunHelper.h.

32 {}
virtual void edm::RunHelperBase::overrideRunNumber ( LuminosityBlockID lumi)
inlinevirtual

Reimplemented in edm::SetRunForEachLumiHelper, and edm::SetRunHelper.

Definition at line 33 of file RunHelper.h.

References fillDescription().

33 {}
virtual RunNumber_t edm::RunHelperBase::runNumberToUseForThisLumi ( ) const
inlinevirtual

Reimplemented in edm::SetRunForEachLumiHelper.

Definition at line 24 of file RunHelper.h.

24 { return 0; }
virtual void edm::RunHelperBase::setForcedRunOffset ( RunNumber_t  firstRun)
inlinevirtual

Reimplemented in edm::SetRunHelper.

Definition at line 26 of file RunHelper.h.

26 {}