Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef TRIGT1CALOMONITORING_JFEXSIMMONITORALGORITHM_H
5 #define TRIGT1CALOMONITORING_JFEXSIMMONITORALGORITHM_H
52 template <
typename T>
bool compareRoI(
const std::string&
label,
const std::string& evenType,
55 const EventContext& ctx,
bool simReadyFlag=
false,
size_t maxTobs=0)
const;
68 etas.clear();phis.clear();word0s.clear();
71 etas.reserve(tobs->size());
72 phis.reserve(tobs->size());
73 word0s.reserve(tobs->size());
74 std::vector<SortableTob> sortedTobs;
75 sortedTobs.reserve(tobs->size());
76 for(
const auto tob : *tobs) {
77 sortedTobs.emplace_back(
SortableTob{tob->tobWord(),tob->
eta(),tob->phi()});
79 std::sort(sortedTobs.begin(),sortedTobs.end(),[](
const SortableTob& lhs,
const SortableTob& rhs) { return lhs.word0<rhs.word0; });
80 for(
const auto& tob : sortedTobs) {
81 etas.push_back(tob.eta);
82 phis.push_back(tob.phi);
83 word0s.push_back(tob.word0);
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadHandleKey< xAOD::jFexLRJetRoIContainer > m_simu_key_jLJ
SG::ReadHandleKey< xAOD::jFexSumETRoIContainer > m_simu_key_jTE
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer > m_data_key_jJ
SG::ReadHandleKey< xAOD::jFexTowerContainer > m_jFexTowerKey
std::map< int, std::string > m_firstEvents ATLAS_THREAD_SAFE
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
SG::ReadHandleKey< xAOD::jFexLRJetRoIContainer > m_data_key_jLJ
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadHandleKey< xAOD::jFexMETRoIContainer > m_simu_key_jXE
SG::ReadHandleKey< xAOD::jFexFwdElRoIContainer > m_simu_key_jEM
Base class for Athena Monitoring Algorithms.
JfexSimMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer > m_simu_key_jJ
Header file to be included by clients of the Monitored infrastructure.
std::mutex m_firstEventsMutex
SortableTob(unsigned int w, float e, float p)
void fillVectors(const SG::ReadHandleKey< T > &key, const EventContext &ctx, std::vector< float > &etas, std::vector< float > &phis, std::vector< unsigned int > &word0s) const
SG::ReadHandleKey< xAOD::jFexMETRoIContainer > m_data_key_jXE
virtual StatusCode initialize() override
initialize
SG::ReadHandleKey< xAOD::jFexFwdElRoIContainer > m_data_key_jEM
SG::ReadHandleKey< xAOD::jFexTauRoIContainer > m_simu_key_jTau
SG::ReadHandleKey< xAOD::jFexSumETRoIContainer > m_data_key_jTE
SG::ReadHandleKey< xAOD::jFexTauRoIContainer > m_data_key_jTau
bool compareRoI(const std::string &label, const std::string &evenType, const SG::ReadHandleKey< T > &tobs1Key, const SG::ReadHandleKey< T > &tobs2Key, const EventContext &ctx, bool simReadyFlag=false, size_t maxTobs=0) const
virtual ~JfexSimMonitorAlgorithm()=default