ATLAS Offline Software
Loading...
Searching...
No Matches
EMTauRoI.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5/* **********************************************************
6*
7* EMTauRoI contains to a RoI delivered by the egamma.
8* Contained in the EMTauResult class.
9* Author: Thomas Schoerner-Sadenius <thomas.schoerner@cern.ch>
10*
11********************************************************** */
12#ifndef TRIGT1RESULT_EMTAUROI_H
13#define TRIGT1RESULT_EMTAUROI_H
14
15#include <stdint.h>
16#include <vector>
17
18namespace ROIB {
19
20 class EMTauRoI {
21
22 public:
23 /* A RoI is a uint32_t */
24 EMTauRoI( uint32_t );
25 /* Init to 0 */
26 EMTauRoI();
27 ~EMTauRoI() = default;
28
29 /* Method to update the RoI word format */
30 void update();
31
32 /* Method returning the RoI */
33 uint32_t roIWord() const;
34 /* Checks the first few bits of the RoI, to see if this really is an
35 EM/tau RoI */
36 unsigned int roIType() const;
37 /* Return the bit pattern for the electronics address */
38 unsigned int electronicsID() const;
39 /* Returns a vector containing the thresholds that were passsed (Run 1 only)*/
40 std::vector<unsigned int> thresholds() const;
41 /* Returns cluster ET value (Run 2 only) */
42 unsigned int et() const;
43 /* Returns isolation results (Run 2 only) */
44 unsigned int isolation() const;
45
46 private:
47 /* The uint32_t data member of the RoI */
48 uint32_t m_roIWord;
49
50 }; // class RMTauRoI
51
52} // namespace ROIB
53
54#endif // TRIGT1RESULT_EMTAUROI_H
~EMTauRoI()=default
unsigned int et() const
Return cluster ET for Run 2 RoI.
Definition EMTauRoI.cxx:81
unsigned int electronicsID() const
Return bitmask containing coordinate information (crate, module, chip, ocation)
Definition EMTauRoI.cxx:58
unsigned int isolation() const
Return isolation flags for Run 2 RoI.
Definition EMTauRoI.cxx:90
uint32_t m_roIWord
Definition EMTauRoI.h:48
EMTauRoI(uint32_t)
Definition EMTauRoI.cxx:16
uint32_t roIWord() const
Definition EMTauRoI.cxx:32
unsigned int roIType() const
Return RoI type.
Definition EMTauRoI.cxx:38
std::vector< unsigned int > thresholds() const
Return vector of thresholds passed for Run 1 RoI.
Definition EMTauRoI.cxx:68
Namespace of the LVL1 RoIB simulation.