ATLAS Offline Software
EmTauRoI_v1.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_v1.h 631149 2014-11-26 12:26:18Z krasznaa $
8 #ifndef XAODTRIGGER_VERSIONS_EMTAUROI_V1_H
9 #define XAODTRIGGER_VERSIONS_EMTAUROI_V1_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_v1 : public SG::AuxElement {
36 
37  public:
39  EmTauRoI_v1();
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  };
51  RoIType roiType() const;
52 
54  float eta() const;
56  void setEta( float v );
57 
59  float phi() const;
61  void setPhi( float v );
62 
64  uint32_t roiWord() const;
67 
70 
73 
75  float core() const;
77  void setCore( float value );
78 
80  float emClus() const;
82  void setEmClus( float value );
83 
85  float tauClus() const;
87  void setTauClus( float value );
88 
90  float emIsol() const;
92  void setEmIsol( float value );
93 
95  float hadIsol() const;
97  void setHadIsol( float value );
98 
101  float hadCore() const;
103  void setHadCore( float value );
104 
106 
109 
111  void addThreshold( const std::string& name, float value );
113  void clearThresholds();
114 
116  const std::vector< std::string >& thrNames() const;
118  const std::vector< float >& thrValues() const;
119 
121 
122  }; // class EmTauRoI_v1
123 
124 } // namespace xAOD
125 
126 // Declare the inheritance of the type:
127 #include "xAODCore/BaseInfo.h"
129 
130 #endif // XAODTRIGGER_VERSIONS_EMTAUROI_V1_H
xAOD::EmTauRoI_v1::CPRoIWord
@ CPRoIWord
This is a Run 1 EM/Tau RoI word.
Definition: EmTauRoI_v1.h:46
xAOD::EmTauRoI_v1::EMRoIWord
@ EMRoIWord
This is a Run 2 EM RoI word.
Definition: EmTauRoI_v1.h:47
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
xAOD::EmTauRoI_v1::eta
float eta() const
The pseudorapidity ( ) of the em/tau candidate.
xAOD::EmTauRoI_v1::setRoIWord
void setRoIWord(uint32_t value)
Set the "raw" RoI word, describing the em/tau candidate.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::EmTauRoI_v1::hadCore
float hadCore() const
The ET deposited in the inner hadronic isolation region (2x2 core)
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::EmTauRoI_v1::setCore
void setCore(float value)
Set the ET of the RoI Core cluster (2x2 towers, EM+Had)
xAOD::EmTauRoI_v1::core
float core() const
The ET of the RoI Core cluster (2x2 towers, EM+Had)
xAOD::EmTauRoI_v1::setPhi
void setPhi(float v)
Set the azimuthal angle of the em/tau candidate.
BaseInfo.h
xAOD::EmTauRoI_v1::hadIsol
float hadIsol() const
The hadron calorimeter isolation (outer ring of had towers)
xAOD::EmTauRoI_v1::tauClus
float tauClus() const
The deposited ET from the "tau cluster".
athena.value
value
Definition: athena.py:124
xAOD::EmTauRoI_v1::phi
float phi() const
The azimuthal angle ( ) of the em/tau candidate.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::EmTauRoI_v1::addThreshold
void addThreshold(const std::string &name, float value)
Add a new threshold that was passed by the RoI.
Definition: EmTauRoI_v1.cxx:86
xAOD::EmTauRoI_v1::setEmIsol
void setEmIsol(float value)
Set the EM calorimeter isolation (outer ring of EM towers)
xAOD::EmTauRoI_v1::initialize
void initialize(uint32_t roiword, float eta, float phi)
Initialise the object with its most important properties.
Definition: EmTauRoI_v1.cxx:22
xAOD::EmTauRoI_v1::clearThresholds
void clearThresholds()
Remove all the passed thresholds from the RoI.
Definition: EmTauRoI_v1.cxx:97
xAOD::EmTauRoI_v1::setEmClus
void setEmClus(float value)
Set the deposited ET from the "EM cluster".
xAOD::EmTauRoI_v1::setHadIsol
void setHadIsol(float value)
Set the hadron calorimeter isolation (outer ring of had towers)
xAOD::EmTauRoI_v1::roiWord
uint32_t roiWord() const
The "raw" RoI word describing the em/tau candidate.
xAOD::EmTauRoI_v1::thrNames
const std::vector< std::string > & thrNames() const
The names of the thresholds passed by jet candidate.
xAOD::EmTauRoI_v1::setEta
void setEta(float v)
Set the pseudorapidity of the em/tau candidate.
xAOD::EmTauRoI_v1::setHadCore
void setHadCore(float value)
Set the ET deposited in the inner hadronic isolation region.
xAOD::EmTauRoI_v1::thrValues
const std::vector< float > & thrValues() const
The values of the thresholds (in MeV) passed by the jet candidate.
xAOD::EmTauRoI_v1::TauRoIWord
@ TauRoIWord
This is a Run 2 Tau RoI word.
Definition: EmTauRoI_v1.h:48
xAOD::EmTauRoI_v1::emIsol
float emIsol() const
The EM calorimeter isolation (outer ring of EM towers)
xAOD::EmTauRoI_v1::RoIType
RoIType
RoI word types.
Definition: EmTauRoI_v1.h:45
SG_BASE
SG_BASE(xAOD::EmTauRoI_v1, SG::AuxElement)
xAOD::EmTauRoI_v1
Class describing a LVL1 em/tau region of interest.
Definition: EmTauRoI_v1.h:35
xAOD::EmTauRoI_v1::EmTauRoI_v1
EmTauRoI_v1()
Default constructor.
Definition: EmTauRoI_v1.cxx:17
xAOD::EmTauRoI_v1::setTauClus
void setTauClus(float value)
Set the deposited ET from the "tau cluster".
python.PyAthena.v
v
Definition: PyAthena.py:154
xAOD::EmTauRoI_v1::thrPattern
uint32_t thrPattern() const
The pattern describing which thresholds were passed by the jet.
xAOD::EmTauRoI_v1::roiType
RoIType roiType() const
Get the type of the RoI word.
Definition: EmTauRoI_v1.cxx:37
xAOD::EmTauRoI_v1::emClus
float emClus() const
The deposited ET from the "EM cluster".
AuxElement.h
Base class for elements of a container that can have aux data.