ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_LBsOutOfRange.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef DQM_Algorithms_AFP_LBsOutOfRange_H
6#define DQM_Algorithms_AFP_LBsOutOfRange_H
7
8#include <dqm_core/Algorithm.h>
9#include <dqm_core/AlgorithmConfig.h>
10#include <dqm_core/Result.h>
11
12#include <TObject.h>
13
14#include <map>
15#include <ostream>
16#include <string>
17#include <utility>
18#include <vector>
19
21 CantReadCool,
22 dqm_core::Exception,
23 "Cannot read folder '" << folder << "' from COOL database '" << database << "'",
25 ( (std::string) database )( (std::string) folder ) );
26
27namespace dqm_algorithms {
28 class AFP_LBsOutOfRange : public dqm_core::Algorithm {
29 public:
30 using IOVSet = std::vector<std::pair<int, int>>;
31
34
35 AFP_LBsOutOfRange* clone() override;
36 dqm_core::Result* execute( const std::string& name, const TObject& object, const dqm_core::AlgorithmConfig& config ) override;
37 void printDescriptionTo( std::ostream& out ) override;
38
39 const IOVSet& fetchIOVs( uint32_t run, uint32_t channel );
40
41 private:
42 std::map<std::pair<uint32_t, uint32_t>, IOVSet> m_iov_cache;
43 };
44} // namespace dqm_algorithms
45
46#endif // DQM_Algorithms_AFP_LBsOutOfRange_H
ERS_DECLARE_ISSUE_BASE(afp, CantReadCool, dqm_core::Exception, "Cannot read folder '"<< folder<< "' from COOL database '"<< database<< "'", ERS_EMPTY,((std::string) database)((std::string) folder))
Configuration ERS_EMPTY
Definition PscIssues.h:32
AFP_LBsOutOfRange * clone() override
dqm_core::Result * execute(const std::string &name, const TObject &object, const dqm_core::AlgorithmConfig &config) override
void printDescriptionTo(std::ostream &out) override
std::vector< std::pair< int, int > > IOVSet
const IOVSet & fetchIOVs(uint32_t run, uint32_t channel)
std::map< std::pair< uint32_t, uint32_t >, IOVSet > m_iov_cache
Definition run.py:1