/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/RunInfo/src/RunSummary.cc
58 строк
2 KB
Cms Build
Clang-Format
20 май 2019, 13:01
20 май 2019, 13:01
a27185a
Код
Авторство
О чём код?
#include "CondFormats/RunInfo/interface/RunSummary.h" RunSummary::RunSummary() {} RunSummary* RunSummary::Fake_RunSummary() { RunSummary* sum = new RunSummary(); sum->m_run = -1; sum->m_hltkey = "null"; sum->m_start_time_str = "null"; sum->m_stop_time_str = "null"; sum->m_name = "null"; return sum; } void RunSummary::printAllValues() const { std::cout << "run number: " << m_run << std::endl; std::cout << "run name: " << m_name << std::endl; std::cout << "run start time as timestamp: " << m_start_time_ll << std::endl; std::cout << "run start time as date: " << m_start_time_str << std::endl; std::cout << "run stop time as timestamp: " << m_stop_time_ll << std::endl; std::cout << "run stop time as date: " << m_stop_time_str << std::endl; std::cout << "lumisection in the run: " << m_lumisections << std::endl; std::cout << "run hltkey: " << m_hltkey << std::endl; std::cout << "run number of events according hlt: " << m_nevents << std::endl; std::cout << "hlt rate: " << m_rate << std::endl; std::cout << "ids of subdetectors in run: " << std::endl; for (size_t i = 0; i < m_subdt_in.size(); i++) { std::cout << "---> " << m_subdt_in[i] << std::endl; } } std::vector<std::string> RunSummary::getSubdtIn() const { std::vector<std::string> v; for (size_t i = 0; i < m_subdt_in.size(); i++) { if (m_subdt_in[i] == 0) { v.push_back("PIXEL"); } if (m_subdt_in[i] == 1) { v.push_back("TRACKER"); } if (m_subdt_in[i] == 2) { v.push_back("ECAL"); } if (m_subdt_in[i] == 3) { v.push_back("HCAL"); } if (m_subdt_in[i] == 4) { v.push_back("DT"); } if (m_subdt_in[i] == 5) { v.push_back("CSC"); } if (m_subdt_in[i] == 6) { v.push_back("RPC"); } } return v; }