ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::jFEXDBCondData Class Reference

#include <jFEXDBCondData.h>

Collaboration diagram for LVL1::jFEXDBCondData:

Public Member Functions

 jFEXDBCondData ()
 ~jFEXDBCondData ()
int get_jJCalibParam (int module, int range) const
 Getters.
const std::vector< int > & get_jJCalibParams (int module) const
bool get_doPileUpJet () const
bool get_doPileUpMet () const
int get_PUThrLowEm () const
int get_PUThrHighEm () const
int get_PUThrLowHadLar () const
int get_PUThrHighHadLar () const
int get_PUThrLowHadHecOverlap () const
int get_PUThrHighHadHecOverlap () const
int get_PUThrLowHadTrex () const
int get_PUThrHighHadTrex () const
int get_PUThrLowFcal () const
int get_PUThrHighFcal () const
std::array< uint16_t, 4 > get_NoiseCuts (uint16_t onlineID) const
std::array< uint16_t, 4 > get_PileUpValues (uint16_t onlineID) const
void set_jJCalibParam (const std::vector< std::vector< int > > &params)
 Setters.
void set_doPileUpJet (bool PileUpCorrectionJet)
void set_doPileUpMet (bool PileUpCorrectionMET)
void set_PUThrLowEm (int PileUpThresholdLowEm)
void set_PUThrHighEm (int PileUpThresholdHighEm)
void set_PUThrLowHadLar (int PileUpThresholdLowHadLar)
void set_PUThrHighHadLar (int PileUpThresholdHighHadLar)
void set_PUThrLowHadHecOverlap (int PileUpThresholdLowHadHecOverlap)
void set_PUThrHighHadHecOverlap (int PileUpThresholdHighHadHecOverlap)
void set_PUThrLowHadTrex (int PileUpThresholdLowHadTrex)
void set_PUThrHighHadTrex (int PileUpThresholdHighHadTrex)
void set_PUThrLowFcal (int PileUpThresholdLowFcal)
void set_PUThrHighFcal (int PileUpThresholdHighFcal)
void set_NoiseCuts (const std::unordered_map< uint16_t, std::array< uint16_t, 4 > > &NoiseCuts)
void set_PileUpValues (const std::unordered_map< uint16_t, std::array< uint16_t, 4 > > &PileUpWeight)
void set_sendDefaults (bool sendDefaults)

Private Member Functions

std::array< int, 2 > DecodeOnlineID (uint16_t onlineID) const

Private Attributes

bool m_sendDefaults = true
std::vector< std::vector< int > > m_jJCalibParams
bool m_PileUpCorrectionJet = false
bool m_PileUpCorrectionMET = false
int m_PileUpThresholdLowEm = 0
int m_PileUpThresholdHighEm = 0
int m_PileUpThresholdLowHadLar = 0
int m_PileUpThresholdHighHadLar = 0
int m_PileUpThresholdLowHadHecOverlap = 0
int m_PileUpThresholdHighHadHecOverlap = 0
int m_PileUpThresholdLowHadTrex = 0
int m_PileUpThresholdHighHadTrex = 0
int m_PileUpThresholdLowFcal = 0
int m_PileUpThresholdHighFcal = 0
std::unordered_map< uint16_t, std::array< uint16_t, 4 > > m_NoiseCuts
std::array< uint16_t, 4 > m_NoiseCuts_default = {0,0,0,0}
std::unordered_map< uint16_t, std::array< uint16_t, 4 > > m_PileUpWeight
std::array< uint16_t, 4 > m_PileUpWeight_default = {0,0,0,0}

Detailed Description

Definition at line 20 of file jFEXDBCondData.h.

Constructor & Destructor Documentation

◆ jFEXDBCondData()

LVL1::jFEXDBCondData::jFEXDBCondData ( )
inline

Definition at line 25 of file jFEXDBCondData.h.

25{};

◆ ~jFEXDBCondData()

LVL1::jFEXDBCondData::~jFEXDBCondData ( )
inline

Definition at line 27 of file jFEXDBCondData.h.

27{};

Member Function Documentation

◆ DecodeOnlineID()

std::array< int, 2 > LVL1::jFEXDBCondData::DecodeOnlineID ( uint16_t onlineID) const
private

Definition at line 191 of file jFEXDBCondData.cxx.

191 {
192
193 int global_eta = (onlineID >> 8) - 0x80;
194 int global_phi = onlineID & 0xff;
195 return {global_eta, global_phi};
196}

◆ get_doPileUpJet()

bool LVL1::jFEXDBCondData::get_doPileUpJet ( ) const

Definition at line 23 of file jFEXDBCondData.cxx.

23 {
25}

◆ get_doPileUpMet()

bool LVL1::jFEXDBCondData::get_doPileUpMet ( ) const

Definition at line 27 of file jFEXDBCondData.cxx.

27 {
29}

◆ get_jJCalibParam()

int LVL1::jFEXDBCondData::get_jJCalibParam ( int module,
int range ) const

Getters.

Definition at line 15 of file jFEXDBCondData.cxx.

15 {
17}
std::vector< std::vector< int > > m_jJCalibParams

◆ get_jJCalibParams()

const std::vector< int > & LVL1::jFEXDBCondData::get_jJCalibParams ( int module) const

Definition at line 19 of file jFEXDBCondData.cxx.

19 {
20 return m_jJCalibParams[module];
21}

◆ get_NoiseCuts()

std::array< uint16_t, 4 > LVL1::jFEXDBCondData::get_NoiseCuts ( uint16_t onlineID) const

Definition at line 71 of file jFEXDBCondData.cxx.

71 {
72
74 //Sending default values!
75 auto [gEta, gPhi] = DecodeOnlineID(onlineID);
76 gEta = gEta < 0 ? std::abs(gEta+1) : gEta;
77 if(gEta < 15){ // This is LATOME and Tile towers ( |eta| < 1.5 )
78 //{CutJetEM, CutJetHad, CutMetEM, CutMetHad}
79 auto p = m_NoiseCuts.find(0x00f0);
80 if (p != m_NoiseCuts.end()) return p->second;
82 }
83 else if (gEta < 32){ // This is LATOME EMB/EMEC and HEC towers (1.5 < |eta| < 3.1)
84 auto p = m_NoiseCuts.find(0x0f00);
85 if (p != m_NoiseCuts.end()) return p->second;
87 }
88 else{ // This is FCAL towers (|eta| > 3.1)
89 auto p = m_NoiseCuts.find(0xf000);
90 if (p != m_NoiseCuts.end()) return p->second;
92 }
93 } else {
94 auto itr = m_NoiseCuts.find(onlineID);
95 if(itr == m_NoiseCuts.end()) {
97 }
98
99 return itr->second;
100 }
101}
std::array< int, 2 > DecodeOnlineID(uint16_t onlineID) const
std::array< uint16_t, 4 > m_NoiseCuts_default
std::unordered_map< uint16_t, std::array< uint16_t, 4 > > m_NoiseCuts

◆ get_PileUpValues()

std::array< uint16_t, 4 > LVL1::jFEXDBCondData::get_PileUpValues ( uint16_t onlineID) const

Definition at line 103 of file jFEXDBCondData.cxx.

103 {
104
105 if(m_sendDefaults){
106 auto p = m_PileUpWeight.find(0x0000);
107 if (p!= m_PileUpWeight.end()) return p->second;
109 }
110 else{
111 auto itr = m_PileUpWeight.find(onlineID);
112
113 if(itr == m_PileUpWeight.end()) {
115 }
116
117 return itr->second;
118 }
119}
std::array< uint16_t, 4 > m_PileUpWeight_default
std::unordered_map< uint16_t, std::array< uint16_t, 4 > > m_PileUpWeight

◆ get_PUThrHighEm()

int LVL1::jFEXDBCondData::get_PUThrHighEm ( ) const

Definition at line 35 of file jFEXDBCondData.cxx.

35 {
37}

◆ get_PUThrHighFcal()

int LVL1::jFEXDBCondData::get_PUThrHighFcal ( ) const

Definition at line 67 of file jFEXDBCondData.cxx.

67 {
69}

◆ get_PUThrHighHadHecOverlap()

int LVL1::jFEXDBCondData::get_PUThrHighHadHecOverlap ( ) const

Definition at line 51 of file jFEXDBCondData.cxx.

◆ get_PUThrHighHadLar()

int LVL1::jFEXDBCondData::get_PUThrHighHadLar ( ) const

Definition at line 43 of file jFEXDBCondData.cxx.

43 {
45}

◆ get_PUThrHighHadTrex()

int LVL1::jFEXDBCondData::get_PUThrHighHadTrex ( ) const

Definition at line 59 of file jFEXDBCondData.cxx.

59 {
61}

◆ get_PUThrLowEm()

int LVL1::jFEXDBCondData::get_PUThrLowEm ( ) const

Definition at line 31 of file jFEXDBCondData.cxx.

31 {
33}

◆ get_PUThrLowFcal()

int LVL1::jFEXDBCondData::get_PUThrLowFcal ( ) const

Definition at line 63 of file jFEXDBCondData.cxx.

63 {
65}

◆ get_PUThrLowHadHecOverlap()

int LVL1::jFEXDBCondData::get_PUThrLowHadHecOverlap ( ) const

Definition at line 47 of file jFEXDBCondData.cxx.

◆ get_PUThrLowHadLar()

int LVL1::jFEXDBCondData::get_PUThrLowHadLar ( ) const

Definition at line 39 of file jFEXDBCondData.cxx.

39 {
41}

◆ get_PUThrLowHadTrex()

int LVL1::jFEXDBCondData::get_PUThrLowHadTrex ( ) const

Definition at line 55 of file jFEXDBCondData.cxx.

55 {
57}

◆ set_doPileUpJet()

void LVL1::jFEXDBCondData::set_doPileUpJet ( bool PileUpCorrectionJet)

Definition at line 125 of file jFEXDBCondData.cxx.

125 {
126 m_PileUpCorrectionJet = PileUpCorrectionJet;
127}

◆ set_doPileUpMet()

void LVL1::jFEXDBCondData::set_doPileUpMet ( bool PileUpCorrectionMET)

Definition at line 129 of file jFEXDBCondData.cxx.

129 {
130 m_PileUpCorrectionMET = PileUpCorrectionMET;
131}

◆ set_jJCalibParam()

void LVL1::jFEXDBCondData::set_jJCalibParam ( const std::vector< std::vector< int > > & params)

Setters.

Definition at line 121 of file jFEXDBCondData.cxx.

◆ set_NoiseCuts()

void LVL1::jFEXDBCondData::set_NoiseCuts ( const std::unordered_map< uint16_t, std::array< uint16_t, 4 > > & NoiseCuts)

Definition at line 173 of file jFEXDBCondData.cxx.

173 {
174
175 for(auto const& [key, array] : NoiseCuts){
177 }
178}

◆ set_PileUpValues()

void LVL1::jFEXDBCondData::set_PileUpValues ( const std::unordered_map< uint16_t, std::array< uint16_t, 4 > > & PileUpWeight)

Definition at line 179 of file jFEXDBCondData.cxx.

179 {
180
181 for(auto const& [key, array] : PileUpWeight){
183 }
184}

◆ set_PUThrHighEm()

void LVL1::jFEXDBCondData::set_PUThrHighEm ( int PileUpThresholdHighEm)

Definition at line 137 of file jFEXDBCondData.cxx.

137 {
138 m_PileUpThresholdHighEm = PileUpThresholdHighEm;
139}

◆ set_PUThrHighFcal()

void LVL1::jFEXDBCondData::set_PUThrHighFcal ( int PileUpThresholdHighFcal)

Definition at line 169 of file jFEXDBCondData.cxx.

169 {
170 m_PileUpThresholdHighFcal = PileUpThresholdHighFcal;
171}

◆ set_PUThrHighHadHecOverlap()

void LVL1::jFEXDBCondData::set_PUThrHighHadHecOverlap ( int PileUpThresholdHighHadHecOverlap)

Definition at line 153 of file jFEXDBCondData.cxx.

153 {
154 m_PileUpThresholdHighHadHecOverlap = PileUpThresholdHighHadHecOverlap;
155}

◆ set_PUThrHighHadLar()

void LVL1::jFEXDBCondData::set_PUThrHighHadLar ( int PileUpThresholdHighHadLar)

Definition at line 145 of file jFEXDBCondData.cxx.

145 {
146 m_PileUpThresholdHighHadLar = PileUpThresholdHighHadLar;
147}

◆ set_PUThrHighHadTrex()

void LVL1::jFEXDBCondData::set_PUThrHighHadTrex ( int PileUpThresholdHighHadTrex)

Definition at line 161 of file jFEXDBCondData.cxx.

161 {
162 m_PileUpThresholdHighHadTrex = PileUpThresholdHighHadTrex;
163}

◆ set_PUThrLowEm()

void LVL1::jFEXDBCondData::set_PUThrLowEm ( int PileUpThresholdLowEm)

Definition at line 133 of file jFEXDBCondData.cxx.

133 {
134 m_PileUpThresholdLowEm = PileUpThresholdLowEm;
135}

◆ set_PUThrLowFcal()

void LVL1::jFEXDBCondData::set_PUThrLowFcal ( int PileUpThresholdLowFcal)

Definition at line 165 of file jFEXDBCondData.cxx.

165 {
166 m_PileUpThresholdLowFcal = PileUpThresholdLowFcal;
167}

◆ set_PUThrLowHadHecOverlap()

void LVL1::jFEXDBCondData::set_PUThrLowHadHecOverlap ( int PileUpThresholdLowHadHecOverlap)

Definition at line 149 of file jFEXDBCondData.cxx.

149 {
150 m_PileUpThresholdLowHadHecOverlap = PileUpThresholdLowHadHecOverlap;
151}

◆ set_PUThrLowHadLar()

void LVL1::jFEXDBCondData::set_PUThrLowHadLar ( int PileUpThresholdLowHadLar)

Definition at line 141 of file jFEXDBCondData.cxx.

141 {
142 m_PileUpThresholdLowHadLar = PileUpThresholdLowHadLar;
143}

◆ set_PUThrLowHadTrex()

void LVL1::jFEXDBCondData::set_PUThrLowHadTrex ( int PileUpThresholdLowHadTrex)

Definition at line 157 of file jFEXDBCondData.cxx.

157 {
158 m_PileUpThresholdLowHadTrex = PileUpThresholdLowHadTrex;
159}

◆ set_sendDefaults()

void LVL1::jFEXDBCondData::set_sendDefaults ( bool sendDefaults)

Definition at line 186 of file jFEXDBCondData.cxx.

186 {
187 m_sendDefaults = sendDefaults;
188}

Member Data Documentation

◆ m_jJCalibParams

std::vector<std::vector<int> > LVL1::jFEXDBCondData::m_jJCalibParams
private
Initial value:
=
{
std::vector<int>(25,0),
std::vector<int>(25,0),
std::vector<int>(25,0),
std::vector<int>(25,0),
std::vector<int>(25,0),
std::vector<int>(25,0)
}

Definition at line 71 of file jFEXDBCondData.h.

72 { //for ET based calibration : <20 <30 <40 <50 <65 <80 <110 <150 <inf GeV (9 bins)
73 //for eta based calibration: based on per-FPGA local eta indices (up to 25 bins)
74 std::vector<int>(25,0),// jFEX 0 FCal
75 std::vector<int>(25,0),// jFEX 1 Central
76 std::vector<int>(25,0),// jFEX 2 Central
77 std::vector<int>(25,0),// jFEX 3 Central
78 std::vector<int>(25,0),// jFEX 4 Central
79 std::vector<int>(25,0) // jFEX 5 FCal
80 };

◆ m_NoiseCuts

std::unordered_map< uint16_t, std::array<uint16_t,4> > LVL1::jFEXDBCondData::m_NoiseCuts
private

Definition at line 100 of file jFEXDBCondData.h.

◆ m_NoiseCuts_default

std::array<uint16_t,4> LVL1::jFEXDBCondData::m_NoiseCuts_default = {0,0,0,0}
private

Definition at line 101 of file jFEXDBCondData.h.

101{0,0,0,0};

◆ m_PileUpCorrectionJet

bool LVL1::jFEXDBCondData::m_PileUpCorrectionJet = false
private

Definition at line 83 of file jFEXDBCondData.h.

◆ m_PileUpCorrectionMET

bool LVL1::jFEXDBCondData::m_PileUpCorrectionMET = false
private

Definition at line 84 of file jFEXDBCondData.h.

◆ m_PileUpThresholdHighEm

int LVL1::jFEXDBCondData::m_PileUpThresholdHighEm = 0
private

Definition at line 88 of file jFEXDBCondData.h.

◆ m_PileUpThresholdHighFcal

int LVL1::jFEXDBCondData::m_PileUpThresholdHighFcal = 0
private

Definition at line 96 of file jFEXDBCondData.h.

◆ m_PileUpThresholdHighHadHecOverlap

int LVL1::jFEXDBCondData::m_PileUpThresholdHighHadHecOverlap = 0
private

Definition at line 92 of file jFEXDBCondData.h.

◆ m_PileUpThresholdHighHadLar

int LVL1::jFEXDBCondData::m_PileUpThresholdHighHadLar = 0
private

Definition at line 90 of file jFEXDBCondData.h.

◆ m_PileUpThresholdHighHadTrex

int LVL1::jFEXDBCondData::m_PileUpThresholdHighHadTrex = 0
private

Definition at line 94 of file jFEXDBCondData.h.

◆ m_PileUpThresholdLowEm

int LVL1::jFEXDBCondData::m_PileUpThresholdLowEm = 0
private

Definition at line 87 of file jFEXDBCondData.h.

◆ m_PileUpThresholdLowFcal

int LVL1::jFEXDBCondData::m_PileUpThresholdLowFcal = 0
private

Definition at line 95 of file jFEXDBCondData.h.

◆ m_PileUpThresholdLowHadHecOverlap

int LVL1::jFEXDBCondData::m_PileUpThresholdLowHadHecOverlap = 0
private

Definition at line 91 of file jFEXDBCondData.h.

◆ m_PileUpThresholdLowHadLar

int LVL1::jFEXDBCondData::m_PileUpThresholdLowHadLar = 0
private

Definition at line 89 of file jFEXDBCondData.h.

◆ m_PileUpThresholdLowHadTrex

int LVL1::jFEXDBCondData::m_PileUpThresholdLowHadTrex = 0
private

Definition at line 93 of file jFEXDBCondData.h.

◆ m_PileUpWeight

std::unordered_map< uint16_t, std::array<uint16_t,4> > LVL1::jFEXDBCondData::m_PileUpWeight
private

Definition at line 105 of file jFEXDBCondData.h.

◆ m_PileUpWeight_default

std::array<uint16_t,4> LVL1::jFEXDBCondData::m_PileUpWeight_default = {0,0,0,0}
private

Definition at line 106 of file jFEXDBCondData.h.

106{0,0,0,0};

◆ m_sendDefaults

bool LVL1::jFEXDBCondData::m_sendDefaults = true
private

Definition at line 68 of file jFEXDBCondData.h.


The documentation for this class was generated from the following files: