ATLAS Offline Software
EnergySumRoI_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: EnergySumRoI_v1.h 631149 2014-11-26 12:26:18Z krasznaa $
8 #ifndef XAODTRIGGER_VERSIONS_ENERGYSUMROI_V1_H
9 #define XAODTRIGGER_VERSIONS_ENERGYSUMROI_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 
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  uint32_t roiWord0() const;
52 
54  uint32_t roiWord1() const;
57 
59  uint32_t roiWord2() const;
62 
64 
67 
75 
77 
80 
82  bool overflowX() const;
84  bool overflowY() const;
86  bool overflowT() const;
87 
89 
92 
94  void addThreshold( const std::string& name );
96  void clearThresholds();
97 
99  const std::vector< std::string >& thrNames() const;
100 
102 
105 
107  float energyX() const;
109  void setEnergyX( float value );
111  float exMiss() const { return -energyX(); }
112 
114  float energyY() const;
116  void setEnergyY( float value );
118  float eyMiss() const { return -energyY(); }
119 
121  float energyT() const;
123  void setEnergyT( float value );
124 
126 
127  }; // class EnergySumRoI_v1
128 
129 } // namespace xAOD
130 
131 // Declare the inheritace of the class:
132 #include "xAODCore/BaseInfo.h"
134 
135 #endif // XAODTRIGGER_VERSIONS_ENERGYSUMROI_V1_H
xAOD::EnergySumRoI_v1::thrPatSumET
uint32_t thrPatSumET() const
The bit-pattern describing the passed sum-ET thresholds.
xAOD::name
name
Definition: TriggerMenuJson_v1.cxx:29
xAOD::EnergySumRoI_v1::setEnergyT
void setEnergyT(float value)
Set the deposited total transverse energy.
xAOD::EnergySumRoI_v1::overflowY
bool overflowY() const
The overflow flag for the EY calculation.
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:446
xAOD::EnergySumRoI_v1
Class describing a LVL1 energy-sum "RoI".
Definition: EnergySumRoI_v1.h:35
BaseInfo.h
athena.value
value
Definition: athena.py:122
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::EnergySumRoI_v1::thrNames
const std::vector< std::string > & thrNames() const
The names of the thresholds passed.
Definition: EnergySumRoI_v1.cxx:124
xAOD::EnergySumRoI_v1::energyX
float energyX() const
The total energy deposited in the X direction.
xAOD::EnergySumRoI_v1::exMiss
float exMiss() const
The missing energy in the X direction.
Definition: EnergySumRoI_v1.h:111
xAOD::EnergySumRoI_v1::initialize
void initialize(uint32_t roiword0, uint32_t roiword1, uint32_t roiword2, float energyX, float energyY, float energyT)
Initialise the object with its most important properties.
Definition: EnergySumRoI_v1.cxx:26
xAOD::EnergySumRoI_v1::EnergySumRoI_v1
EnergySumRoI_v1()
Default constructor.
Definition: EnergySumRoI_v1.cxx:14
xAOD::EnergySumRoI_v1::setRoIWord2
void setRoIWord2(uint32_t value)
Set the third "raw" RoI word describing the energy-sum RoI.
xAOD::EnergySumRoI_v1::energyY
float energyY() const
The total energy deposited in the Y direction.
xAOD::EnergySumRoI_v1::overflowX
bool overflowX() const
The overflow flag for the EX calculation.
xAOD::EnergySumRoI_v1::clearThresholds
void clearThresholds()
Remove all the passed thresholds.
Definition: EnergySumRoI_v1.cxx:118
xAOD::EnergySumRoI_v1::roiWord1
uint32_t roiWord1() const
The second RoI word produced by the L1Calo hardware.
xAOD::EnergySumRoI_v1::thrPatMETSig
uint32_t thrPatMETSig() const
The bit-pattern describing the passed missing-ET significance thresholds.
xAOD::EnergySumRoI_v1::addThreshold
void addThreshold(const std::string &name)
Add a new threshold that was passed.
xAOD::EnergySumRoI_v1::eyMiss
float eyMiss() const
The missing energy in the Y direction.
Definition: EnergySumRoI_v1.h:118
xAOD::EnergySumRoI_v1::overflowT
bool overflowT() const
The overflow flag for the ET calculation.
xAOD::EnergySumRoI_v1::roiWord0
uint32_t roiWord0() const
The first RoI word produced by the L1Calo hardware.
xAOD::EnergySumRoI_v1::energyT
float energyT() const
The deposited total transverse energy.
xAOD::EnergySumRoI_v1::setRoIWord0
void setRoIWord0(uint32_t value)
Set the first "raw" RoI word describing the energy-sum RoI.
SG_BASE
SG_BASE(xAOD::EnergySumRoI_v1, SG::AuxElement)
xAOD::EnergySumRoI_v1::setEnergyY
void setEnergyY(float value)
Set the total energy deposited in the Y direction.
xAOD::EnergySumRoI_v1::setEnergyX
void setEnergyX(float value)
Set the total energy deposited in the X direction.
xAOD::EnergySumRoI_v1::setRoIWord1
void setRoIWord1(uint32_t value)
Set the second "raw" RoI word describing the energy-sum RoI.
xAOD::EnergySumRoI_v1::roiWord2
uint32_t roiWord2() const
The third RoI word produced by the L1Calo hardware.
xAOD::EnergySumRoI_v1::thrPatMET
uint32_t thrPatMET() const
The bit-pattern describing the passed missing-ET thresholds.
AuxElement.h
Base class for elements of a container that can have aux data.