ATLAS Offline Software
Loading...
Searching...
No Matches
EnergySum_ROI.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: EnergySum_ROI.h,v 1.5 2008-05-08 15:00:11 krasznaa Exp $
8#ifndef ANALYSISTRIGGEREVENT_ENERGYSUM_ROI_H
9#define ANALYSISTRIGGEREVENT_ENERGYSUM_ROI_H
10
11// STL/System include(s):
12#include <string>
13#include <vector>
14#include <inttypes.h>
15
26
27public:
29 EnergySum_ROI( uint32_t roiWord0, uint32_t roiWord1, uint32_t roiWord2,
30 float energyX, float energyY, float energyT,
31 uint32_t thrPatSummET, uint32_t thrPatMissET, uint32_t thrPatMETSig, unsigned int overflows )
32 : m_roiWord0( roiWord0 ), m_roiWord1( roiWord1 ), m_roiWord2( roiWord2 ),
33 m_thrPatSummET( thrPatSummET ), m_thrPatMissET( thrPatMissET ), m_thrPatMETSig( thrPatMETSig ), m_thresholds( 0 ),
34 m_energyX( energyX ), m_energyY( energyY ), m_energyT( energyT ),
35 m_overflows( overflows ) {}
36
39 m_thresholds( 0 ), m_energyX( 0. ), m_energyY( 0. ), m_energyT( 0. ), m_overflows( 0 ) {}
40
41 virtual ~EnergySum_ROI () {}
42
44 typedef std::vector< std::string > thresholds_type;
45
47 uint32_t getROIWord0() const { return m_roiWord0; }
49 uint32_t getROIWord1() const { return m_roiWord1; }
51 uint32_t getROIWord2() const { return m_roiWord2; }
52
54 float getEnergyX() const { return m_energyX; }
56 float getEnergyY() const { return m_energyY; }
58 float getEnergyT() const { return m_energyT; }
60 float getExMiss() const { return -m_energyX; }
62 float getEyMiss() const { return -m_energyY; }
64 bool getOverflowX() const { return ( m_overflows & 0x1 ); }
66 bool getOverflowY() const { return ( ( m_overflows >> 1 ) & 0x1 ); }
68 bool getOverflowT() const { return ( ( m_overflows >> 2 ) & 0x1 ); }
70 unsigned int getOverflows() const { return m_overflows; }
71
73 uint32_t getThrPatSummET() const { return m_thrPatSummET; }
75 uint32_t getThrPatMissET() const { return m_thrPatMissET; }
77 uint32_t getThrPatMETSig() const { return m_thrPatMETSig; }
78
80 const thresholds_type& getThresholds() const { return m_thresholds; }
81
83 void addThreshold( thresholds_type::value_type thr ) { m_thresholds.push_back( thr ); }
84
85private:
86 uint32_t m_roiWord0;
87 uint32_t m_roiWord1;
88 uint32_t m_roiWord2;
89
90 uint32_t m_thrPatSummET;
91 uint32_t m_thrPatMissET;
92 uint32_t m_thrPatMETSig;
93
95
96 float m_energyX;
97 float m_energyY;
98 float m_energyT;
99
100 unsigned int m_overflows;
101
102}; // class EnergySum_ROI
103
104#endif // ANALYSISTRIGGEREVENT_ENERGYSUM_ROI_H
std::vector< std::string > thresholds_type
Type storing the names of the passed thresholds.
virtual ~EnergySum_ROI()
Destructor.
void addThreshold(thresholds_type::value_type thr)
Add the name of a threshold that this RoI passed.
unsigned int getOverflows() const
Return the overflow bit-pattern.
float m_energyT
Total deposited transverse energy.
EnergySum_ROI()
Default constructor (for persistency purposes)
uint32_t m_roiWord2
Third 32bit encoded ROI word.
float getEyMiss() const
Return the missing energy in the Y direction.
float m_energyY
Total energy deposited in the Y direction.
bool getOverflowY() const
Return the overflow flag for the EY calculation.
const thresholds_type & getThresholds() const
Return the names of the passed threshodlds.
uint32_t getThrPatMETSig() const
Return the bit-pattern describing the passed missing-ET significance thresholds.
float getEnergyY() const
Return the total energy deposited in the Y direction.
uint32_t m_thrPatSummET
threshold bit pattern for Summed ET
uint32_t m_thrPatMETSig
threshold bit pattern for Missing ET Significance
uint32_t m_roiWord1
Second 32bit encoded ROI word.
uint32_t getThrPatSummET() const
Return the bit-pattern describing the passed sum-ET thresholds.
uint32_t getROIWord1() const
Return the second RoI word produced by the L1Calo hardware.
uint32_t getThrPatMissET() const
Return the bit-pattern describing the passed missing-ET thresholds.
float getExMiss() const
Return the missing energy in the X direction.
float getEnergyT() const
Return the deposited total transverse energy.
uint32_t getROIWord0() const
Return the first RoI word produced by the L1Calo hardware.
unsigned int m_overflows
Overflow flags: bit 0 = Ex, bit 1 = Ey, bit 2 = ETsum.
thresholds_type m_thresholds
Names of the passed thresholds.
bool getOverflowT() const
Return the overflow flag for the ET calculation.
uint32_t m_thrPatMissET
threshold bit pattern for Missing ET
uint32_t m_roiWord0
First 32bit encoded ROI word.
uint32_t getROIWord2() const
Return the third RoI word produced by the L1Calo hardware.
bool getOverflowX() const
Return the overflow flag for the EX calculation.
EnergySum_ROI(uint32_t roiWord0, uint32_t roiWord1, uint32_t roiWord2, float energyX, float energyY, float energyT, uint32_t thrPatSummET, uint32_t thrPatMissET, uint32_t thrPatMETSig, unsigned int overflows)
Constructor used when creating the object from RoIBResult data.
float m_energyX
Total energy deposited in the X direction.
float getEnergyX() const
Return the total energy deposited in the X direction.