ATLAS Offline Software
Loading...
Searching...
No Matches
EnergySumRoI_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: EnergySumRoI_v2.h 631149 2014-11-26 12:26:18Z krasznaa $
8#ifndef XAODTRIGGER_VERSIONS_ENERGYSUMROI_V2_H
9#define XAODTRIGGER_VERSIONS_ENERGYSUMROI_V2_H
10
11// System include(s):
12extern "C" {
13# include <stdint.h>
14}
15#include <vector>
16#include <string>
17
18// xAOD include(s):
20
21namespace xAOD {
22
36
37 public:
40
42 void initialize( uint32_t roiword0, uint32_t roiword1, uint32_t roiword2,
43 float energyX, float energyY, float energyT );
44
47
49 void setRoIWord( uint32_t value );
50
54 void setRoIWord0( uint32_t value );
55
59 void setRoIWord1( uint32_t value );
60
64 void setRoIWord2( uint32_t value );
65
69 void setRoIWord3( uint32_t value );
70
74 void setRoIWord4( uint32_t value );
75
79 void setRoIWord5( uint32_t value );
80
82
85
87 uint32_t thrPatSumET( bool restricted = false ) const;
89 uint32_t thrPatMET( bool restricted = false ) const;
92 uint32_t thrPatMETSig() const;
93
95
98
100 bool overflowX(bool restricted = false) const;
102 bool overflowY(bool restricted = false) const;
104 bool overflowT(bool restricted = false) const;
105
107
110
112 void addThreshold( const std::string& name );
114 void clearThresholds();
115
117 const std::vector< std::string >& thrNames() const;
118
120
123
125 float energyX() const;
126 float energyXRestricted() const;
128 void setEnergyX(float value);
129 void setEnergyXRestricted(float value);
131 float exMiss() const { return -energyX(); }
132 float exMissRestricted() const { return -energyXRestricted(); }
133
135 float energyY() const;
136 float energyYRestricted() const;
138 void setEnergyY(float value);
139 void setEnergyYRestricted(float value);
141 float eyMiss() const { return -energyY(); }
142 float eyMissRestricted() const { return -energyYRestricted(); }
143
145 float energyT() const;
146 float energyTRestricted() const;
148 void setEnergyT(float value);
149 void setEnergyTRestricted(float value);
150
152
154 private:
155
156 static const unsigned int s_Run2TruncRoIBit = 0x4000000;
157 static const unsigned int s_RoIType = 0xf0000000;
158 static const unsigned int s_Word0 = 0x40000000;
159 static const unsigned int s_Word1 = 0x60000000;
160 static const unsigned int s_Word2 = 0x50000000;
161
162 }; // class EnergySumRoI_v2
163
164} // namespace xAOD
165
166// Declare the inheritace of the class:
167#include "xAODCore/BaseInfo.h"
169
170#endif // XAODTRIGGER_VERSIONS_EnergySumRoI_v2_H
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class describing a LVL1 energy-sum "RoI".
uint32_t roiWord5() const
The sixth RoI word produced by the L1Calo hardware.
uint32_t roiWord3() const
The fourth RoI word produced by the L1Calo hardware.
static const unsigned int s_Word2
static const unsigned int s_Run2TruncRoIBit
The basic setters and getters for the xAOD class.
uint32_t thrPatSumET(bool restricted=false) const
The bit-pattern describing the passed sum-ET thresholds.
void setRoIWord3(uint32_t value)
Set the first "raw" RoI word describing the energy-sum RoI.
void setEnergyTRestricted(float value)
bool overflowX(bool restricted=false) const
The overflow flag for the EX calculation.
float energyT() const
The deposited total transverse energy.
float energyYRestricted() const
uint32_t roiWord1() const
The second RoI word produced by the L1Calo hardware.
static const unsigned int s_Word1
bool overflowT(bool restricted=false) const
The overflow flag for the ET calculation.
const std::vector< std::string > & thrNames() const
The names of the thresholds passed.
float eyMiss() const
The missing energy in the Y direction.
void setEnergyT(float value)
Set the deposited total transverse energy.
void setRoIWord5(uint32_t value)
Set the third "raw" RoI word describing the energy-sum RoI.
float energyX() const
The total energy deposited in the X direction.
void setRoIWord0(uint32_t value)
Set the first "raw" RoI word describing the energy-sum RoI.
float energyXRestricted() const
void setEnergyXRestricted(float value)
void setEnergyYRestricted(float value)
uint32_t thrPatMETSig() const
The bit-pattern describing the passed missing-ET significance thresholds.
float energyTRestricted() const
float exMiss() const
The missing energy in the X direction.
uint32_t roiWord4() const
The fifth RoI word produced by the L1Calo hardware.
void setEnergyY(float value)
Set the total energy deposited in the Y direction.
void setRoIWord4(uint32_t value)
Set the second "raw" RoI word describing the energy-sum RoI.
void addThreshold(const std::string &name)
Add a new threshold that was passed.
float eyMissRestricted() const
float energyY() const
The total energy deposited in the Y direction.
void setRoIWord2(uint32_t value)
Set the third "raw" RoI word describing the energy-sum RoI.
void clearThresholds()
Remove all the passed thresholds.
uint32_t thrPatMET(bool restricted=false) const
The bit-pattern describing the passed missing-ET thresholds.
void setRoIWord1(uint32_t value)
Set the second "raw" RoI word describing the energy-sum RoI.
void setEnergyX(float value)
Set the total energy deposited in the X direction.
static const unsigned int s_RoIType
uint32_t roiWord0() const
The first RoI word produced by the L1Calo hardware.
uint32_t roiWord2() const
The third RoI word produced by the L1Calo hardware.
bool overflowY(bool restricted=false) const
The overflow flag for the EY calculation.
void setRoIWord(uint32_t value)
Generic RoI word adding: the function will identify which word it is.
EnergySumRoI_v2()
Default constructor.
static const unsigned int s_Word0
float exMissRestricted() const
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t
void initialize()