ATLAS Offline Software
Loading...
Searching...
No Matches
JetET_ROI.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: JetET_ROI.h,v 1.4 2008-05-08 15:00:11 krasznaa Exp $
8#ifndef ANALYSISTRIGGEREVENT_JETET_ROI_H
9#define ANALYSISTRIGGEREVENT_JETET_ROI_H
10
11// STL/System include(s):
12#include <string>
13#include <vector>
14#include <inttypes.h>
15
25class JetET_ROI {
26
27public:
29 JetET_ROI( uint32_t roiWord, uint32_t thrPattern )
30 : m_roiWord( roiWord ), m_thrPattern( thrPattern ), m_thresholds( 0 ) {}
31
33 : m_roiWord( 0 ), m_thrPattern( 0 ), m_thresholds( 0 ) {}
34
35 virtual ~JetET_ROI() {}
36
38 typedef std::vector< std::string > thresholds_type;
39
41 uint32_t getROIWord() const { return m_roiWord; }
43 uint32_t getThrPattern() const { return m_thrPattern; }
44
46 const thresholds_type& getThresholds() const { return m_thresholds; }
47
49 void addThreshold( thresholds_type::value_type thr ) { m_thresholds.push_back( thr ); }
50
51private:
52 uint32_t m_roiWord;
53 uint32_t m_thrPattern;
55
56}; // class JetET_ROI
57
58#endif // ANALYSISTRIGGEREVENT_JETET_ROI_H
JetET_ROI(uint32_t roiWord, uint32_t thrPattern)
Constructor used when creating the object from RoIBResult data.
Definition JetET_ROI.h:29
virtual ~JetET_ROI()
Destructor.
Definition JetET_ROI.h:35
JetET_ROI()
Default constructor (for persistency purposes)
Definition JetET_ROI.h:32
const thresholds_type & getThresholds() const
Return the names of the passed threshodlds.
Definition JetET_ROI.h:46
std::vector< std::string > thresholds_type
Type storing the names of the passed thresholds.
Definition JetET_ROI.h:38
thresholds_type m_thresholds
Names of the passed thresholds.
Definition JetET_ROI.h:54
uint32_t m_roiWord
32bit encoded ROI word
Definition JetET_ROI.h:52
uint32_t getThrPattern() const
Return the bit-pattern describing the passed thresholds.
Definition JetET_ROI.h:43
void addThreshold(thresholds_type::value_type thr)
Add the name of a threshold that this RoI passed.
Definition JetET_ROI.h:49
uint32_t getROIWord() const
Return the RoI word produced by the L1Calo hardware.
Definition JetET_ROI.h:41
uint32_t m_thrPattern
threshold bit pattern
Definition JetET_ROI.h:53