/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/L1Trigger/interface/L1TriggerError.h
49 строк
1 KB
Matti Kortelainen
Move stored types in io_v1 namespace, reset class versions to 3
22 май 2026, 18:18
22 май 2026, 18:18
909f324
Код
Авторство
О чём код?
#ifndef L1TriggerError_h #define L1TriggerError_h // -*- C++ -*- // // Package: DataFormatsL1Trigger // Class : L1TriggerError // /**\class L1TriggerError \file L1TriggerError.h DataFormats/L1Trigger/interface/L1TriggerError.h \author Jim Brooke Description: Class for communicating errors between modules. Intended to be transient *only* */ // // Original Author: Jim Brooke // Created: // namespace io_v1 { class L1TriggerError { public: /// construct from an error code explicit L1TriggerError(unsigned short prodID = 0, unsigned short code = 0); /// dtor ~L1TriggerError(); /// set error void setCode(int code) { code_ = code; } /// get error unsigned code() { return code_; } /// producer ID unsigned prodID(); /// producer error unsigned prodErr(); private: unsigned code_; }; } // namespace io_v1 using L1TriggerError = io_v1::L1TriggerError; #include <vector> typedef std::vector<L1TriggerError> L1TriggerErrorCollection; #endif