15 LOG(debug) <<
"Creating an instance of CbmSpillCheck ...";
23 LOG(debug) <<
"Creating an instance of CbmSpillCheck ...";
28 std::string h_name = Form(
"%s Digi Rate", std::string(
cbm::util::ToString(system)).c_str());
29 LOG(debug) <<
"Booking rate for : " << h_name;
30 fG1D[h_name] = std::make_unique<TGraphErrors>();
35 FairRootManager* ioman = FairRootManager::Instance();
36 if (ioman !=
nullptr) {
41 LOG(fatal) << GetName() <<
": No " <<
fRefSystem <<
" branch in input!";
55 LOG(info) <<
"Running CbmSpillCheck ...";
65 std::string h_name = Form(
"%s Digi Rate", std::string(
cbm::util::ToString(system)).c_str());
77 for (
size_t ts_idx = 0; ts_idx <
fRefRate.size(); ts_idx++) {
82 std::cout << spill_lvl_off << std::endl;
83 std::cout << spill_lvl_on << std::endl;
ECbmModuleId
Enumerator for module Identifiers.
@ kLastModule
For loops over all modules.
static CbmDigiManager * Instance()
Static instance.
std::vector< int > fRefRate
CbmSpillCheck()
Default constructor.
CbmDigiManager * fDigiManager
void BookHistograms(ECbmModuleId)
Book histograms for a specific module.
std::vector< int > fSpillStatus
std::map< std::string, std::unique_ptr< TGraphErrors > > fG1D
std::map< std::string, std::unique_ptr< TH2D > > fH2D
void SaveToFile()
It write all mapped objects to the FairRunAna sink file.
std::map< std::string, std::unique_ptr< TH1D > > fH1D
std::string_view ToString(T t)