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 29 of file RunHelper.cc.

29 {}

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 32 of file RunHelper.cc.

Referenced by checkForNewRun().

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

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

Definition at line 37 of file RunHelper.cc.

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

37  {
38  assert(run == originalRun);
39  }
virtual bool edm::RunHelperBase::fakeNewRun ( ) const
inlinevirtual

Reimplemented in edm::SetRunForEachLumiHelper.

Definition at line 24 of file RunHelper.h.

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

Definition at line 174 of file RunHelper.cc.

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

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

174  {
175  desc.addOptionalNode(ParameterDescription<unsigned int>("setRunNumber", 0U, false) xor
176  ParameterDescription<std::vector<unsigned int> >("setRunNumberForEachLumi", std::vector<unsigned int>(), false), true)
177  ->setComment("If 'setRun' is non-zero, change number of first run to this number. Apply same offset to all runs." \
178  "If 'setRunNumberForEachLumi' is non-empty, use these as run numbers for each lumi respectively." \
179  "''setRun' and 'setRunNumberForEachLumi' are mutually exclusive and allowed only for simulation.");
180  }
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.

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

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

Definition at line 30 of file RunHelper.h.

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

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

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

Definition at line 31 of file RunHelper.h.

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

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

Definition at line 32 of file RunHelper.h.

References fillDescription().

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

Reimplemented in edm::SetRunForEachLumiHelper.

Definition at line 23 of file RunHelper.h.

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

Reimplemented in edm::SetRunHelper.

Definition at line 25 of file RunHelper.h.

25 {}