/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Utilities/interface/LuminosityBlockIndex.h
64 строки
2 KB
Christopher Jones
Fix `scram b code-checks` warnings associated with FWCore
08 сен 2020, 22:04
08 сен 2020, 22:04
24df5ff
Код
Авторство
О чём код?
#ifndef FWCore_Utilities_LuminosityBlockIndex_h #define FWCore_Utilities_LuminosityBlockIndex_h // -*- C++ -*- // // Package: FWCore/Utilities // Class : edm::LuminosityBlockIndex // /**\class edm::LuminosityBlockIndex LuminosityBlockIndex.h "FWCore/Utilities/interface/LuminosityBlockIndex.h" Description: Identifies a 'slot' being used to hold an active LuminosityBlock Usage: Various APIs used this to access per LuminosityBlock information. It is important to realize that the same LuminosityBockIndex may be used to refer to different LuminosityBlocks over the lifetime of a job. A LuminosityBlockIndex will only get a new LuminosityBlock after the previous LuminosityBlock using that index has finished being used. */ // // Original Author: Chris Jones // Created: Fri, 26 Apr 2013 19:39:10 GMT // // system include files // user include files // forward declarations namespace edm { class LuminosityBlockPrincipal; class LuminosityBlockIndex { public: LuminosityBlockIndex(const LuminosityBlockIndex&) = default; LuminosityBlockIndex() = delete; LuminosityBlockIndex& operator=(const LuminosityBlockIndex&) = default; ~LuminosityBlockIndex() = default; // ---------- const member functions --------------------- operator unsigned int() const { return value_; } bool operator==(LuminosityBlockIndex const& iRHS) const { return value() == iRHS.value(); } /** \return value ranging from 0 to one less than max number of simultaneous luminosityblocks. */ unsigned int value() const { return value_; } static LuminosityBlockIndex invalidLuminosityBlockIndex(); private: ///Only the LuminosityBlockPrincipal is allowed to make one of these friend class LuminosityBlockPrincipal; explicit LuminosityBlockIndex(unsigned int iValue) : value_{iValue} {} // ---------- member data -------------------------------- unsigned int value_; static const unsigned int invalidValue_; }; } // namespace edm #endif