ATLAS Offline Software
EmTauRoI_v2.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: EmTauRoI_v2.h 631149 2014-11-26 12:26:18Z krasznaa $
8 #ifndef XAODTRIGGER_VERSIONS_EMTAUROI_V2_H
9 #define XAODTRIGGER_VERSIONS_EMTAUROI_V2_H
10 
11 // System include(s):
12 extern "C" {
13 # include <stdint.h>
14 }
15 #include <vector>
16 #include <string>
17 
18 // xAOD include(s):
20 
21 namespace xAOD {
22 
35  class EmTauRoI_v2 : public SG::AuxElement {
36 
37  public:
39  EmTauRoI_v2();
40 
42  void initialize( uint32_t roiword, float eta, float phi );
43 
45  enum RoIType {
46  CPRoIWord = 0,
47  EMRoIWord = 1,
48  TauRoIWord = 2
49  };
50 
52  RoIType roiType() const;
53 
55  float eta() const;
57  void setEta( float v );
58 
60  float phi() const;
62  void setPhi( float v );
63 
65  uint32_t roiWord() const;
68 
70  float etScale() const;
72  void setEtScale( float v );
73 
75  float eT() const;
77  uint8_t isol() const;
78 
83 
86 
88  float core() const;
90  void setCore( float value );
91 
93  float emClus() const;
95  void setEmClus( float value );
96 
98  float tauClus() const;
100  void setTauClus( float value );
101 
103  float emIsol() const;
105  void setEmIsol( float value );
106 
108  float hadIsol() const;
110  void setHadIsol( float value );
111 
114  float hadCore() const;
116  void setHadCore( float value );
117 
119 
122 
124  void addThreshold( const std::string& name, float value );
126  void clearThresholds();
127 
129  const std::vector< std::string >& thrNames() const;
131  const std::vector< float >& thrValues() const;
132 
134 
135  }; // class EmTauRoI_v2
136 
137 } // namespace xAOD
138 
139 // Declare the inheritance of the type:
140 #include "xAODCore/BaseInfo.h"
142 
143 #endif // XAODTRIGGER_VERSIONS_EMTAUROI_V2_H
xAOD::EmTauRoI_v2::thrNames
const std::vector< std::string > & thrNames() const
The names of the thresholds passed by jet candidate.
xAOD::EmTauRoI_v2::setEta
void setEta(float v)
Set the pseudorapidity of the em/tau candidate.
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
xAOD::EmTauRoI_v2::phi
float phi() const
The azimuthal angle ( ) of the em/tau candidate.
xAOD::EmTauRoI_v2::RoIType
RoIType
RoI word types.
Definition: EmTauRoI_v2.h:45
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
SG_BASE
SG_BASE(xAOD::EmTauRoI_v2, SG::AuxElement)
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::EmTauRoI_v2::thrPattern
uint32_t thrPattern() const
The pattern describing which thresholds were passed by the jet.
xAOD::EmTauRoI_v2::clearThresholds
void clearThresholds()
Remove all the passed thresholds from the RoI.
Definition: EmTauRoI_v2.cxx:110
BaseInfo.h
athena.value
value
Definition: athena.py:124
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::EmTauRoI_v2::initialize
void initialize(uint32_t roiword, float eta, float phi)
Initialise the object with its most important properties.
Definition: EmTauRoI_v2.cxx:22
xAOD::EmTauRoI_v2::addThreshold
void addThreshold(const std::string &name, float value)
Add a new threshold that was passed by the RoI.
Definition: EmTauRoI_v2.cxx:99
xAOD::EmTauRoI_v2::setRoIWord
void setRoIWord(uint32_t value)
Set the "raw" RoI word, describing the em/tau candidate.
xAOD::EmTauRoI_v2::thrValues
const std::vector< float > & thrValues() const
The values of the thresholds (in MeV) passed by the jet candidate.
xAOD::EmTauRoI_v2::emClus
float emClus() const
The deposited ET from the "EM cluster".
xAOD::EmTauRoI_v2::setEmIsol
void setEmIsol(float value)
Set the EM calorimeter isolation (outer ring of EM towers)
xAOD::EmTauRoI_v2::setEmClus
void setEmClus(float value)
Set the deposited ET from the "EM cluster".
xAOD::EmTauRoI_v2
Class describing a LVL1 em/tau region of interest.
Definition: EmTauRoI_v2.h:35
xAOD::EmTauRoI_v2::emIsol
float emIsol() const
The EM calorimeter isolation (outer ring of EM towers)
xAOD::EmTauRoI_v2::etScale
float etScale() const
The ET scale of the RoI bits.
xAOD::EmTauRoI_v2::hadCore
float hadCore() const
The ET deposited in the inner hadronic isolation region (2x2 core)
xAOD::EmTauRoI_v2::setHadIsol
void setHadIsol(float value)
Set the hadron calorimeter isolation (outer ring of had towers)
xAOD::EmTauRoI_v2::core
float core() const
The ET of the RoI Core cluster (2x2 towers, EM+Had)
xAOD::EmTauRoI_v2::setTauClus
void setTauClus(float value)
Set the deposited ET from the "tau cluster".
xAOD::EmTauRoI_v2::setHadCore
void setHadCore(float value)
Set the ET deposited in the inner hadronic isolation region.
xAOD::EmTauRoI_v2::setThrPattern
void setThrPattern(uint32_t value)
Set the threshold pattern.
xAOD::EmTauRoI_v2::TauRoIWord
@ TauRoIWord
This is a Run 2 Tau RoI word.
Definition: EmTauRoI_v2.h:48
xAOD::EmTauRoI_v2::hadIsol
float hadIsol() const
The hadron calorimeter isolation (outer ring of had towers)
xAOD::EmTauRoI_v2::EmTauRoI_v2
EmTauRoI_v2()
Default constructor.
Definition: EmTauRoI_v2.cxx:17
xAOD::EmTauRoI_v2::isol
uint8_t isol() const
The isolation result mask (from RoI word)
xAOD::EmTauRoI_v2::CPRoIWord
@ CPRoIWord
This is a Run 1 EM/Tau RoI word.
Definition: EmTauRoI_v2.h:46
python.PyAthena.v
v
Definition: PyAthena.py:154
xAOD::EmTauRoI_v2::eta
float eta() const
The pseudorapidity ( ) of the em/tau candidate.
xAOD::EmTauRoI_v2::setEtScale
void setEtScale(float v)
Set the ET scale.
xAOD::EmTauRoI_v2::EMRoIWord
@ EMRoIWord
This is a Run 2 EM RoI word.
Definition: EmTauRoI_v2.h:47
xAOD::EmTauRoI_v2::eT
float eT() const
The ET of the cluster (from RoI word)
xAOD::EmTauRoI_v2::setPhi
void setPhi(float v)
Set the azimuthal angle of the em/tau candidate.
xAOD::EmTauRoI_v2::setCore
void setCore(float value)
Set the ET of the RoI Core cluster (2x2 towers, EM+Had)
xAOD::EmTauRoI_v2::roiWord
uint32_t roiWord() const
The "raw" RoI word describing the em/tau candidate.
xAOD::EmTauRoI_v2::roiType
RoIType roiType() const
Get the type of the RoI word.
Definition: EmTauRoI_v2.cxx:37
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::EmTauRoI_v2::tauClus
float tauClus() const
The deposited ET from the "tau cluster".