ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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. More...
 
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. More...
 
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 184 of file jFEXDBCondData.cxx.

184  {
185 
186  int global_eta = (onlineID >> 8) - 0x80;
187  int global_phi = onlineID & 0xff;
188  return {global_eta, global_phi};
189 }

◆ get_doPileUpJet()

bool LVL1::jFEXDBCondData::get_doPileUpJet ( ) const

Definition at line 23 of file jFEXDBCondData.cxx.

23  {
24  return m_PileUpCorrectionJet;
25 }

◆ get_doPileUpMet()

bool LVL1::jFEXDBCondData::get_doPileUpMet ( ) const

Definition at line 27 of file jFEXDBCondData.cxx.

27  {
28  return m_PileUpCorrectionMET;
29 }

◆ get_jJCalibParam()

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

Getters.

Definition at line 15 of file jFEXDBCondData.cxx.

15  {
16  return m_jJCalibParams[module][range];
17 }

◆ 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 
73  if(m_sendDefaults){
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  return m_NoiseCuts.find(0x00f0)->second;
80  }
81  else if (gEta < 32){ // This is LATOME EMB/EMEC and HEC towers (1.5 < |eta| < 3.1)
82  return m_NoiseCuts.find(0x0f00)->second;
83  }
84  else{ // This is FCAL towers (|eta| > 3.1)
85  return m_NoiseCuts.find(0xf000)->second;
86  }
87  }
88  else{
89  auto itr = m_NoiseCuts.find(onlineID);
90  if(itr == m_NoiseCuts.end()) {
91  return m_NoiseCuts_default;
92  }
93 
94  return itr->second;
95  }
96 }

◆ get_PileUpValues()

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

Definition at line 98 of file jFEXDBCondData.cxx.

98  {
99 
100  if(m_sendDefaults){
101  return m_PileUpWeight.find(0x0000)->second;
102  }
103  else{
104  auto itr = m_PileUpWeight.find(onlineID);
105 
106  if(itr == m_PileUpWeight.end()) {
107  return m_PileUpWeight_default;
108  }
109 
110  return itr->second;
111  }
112 }

◆ 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.

51  {
53 }

◆ 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.

47  {
49 }

◆ 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 118 of file jFEXDBCondData.cxx.

118  {
119  m_PileUpCorrectionJet = PileUpCorrectionJet;
120 }

◆ set_doPileUpMet()

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

Definition at line 122 of file jFEXDBCondData.cxx.

122  {
123  m_PileUpCorrectionMET = PileUpCorrectionMET;
124 }

◆ set_jJCalibParam()

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

Setters.

Definition at line 114 of file jFEXDBCondData.cxx.

114  {
116 }

◆ set_NoiseCuts()

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

Definition at line 166 of file jFEXDBCondData.cxx.

166  {
167 
168  for(auto const& [key, array] : NoiseCuts){
170  }
171 }

◆ set_PileUpValues()

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

Definition at line 172 of file jFEXDBCondData.cxx.

172  {
173 
174  for(auto const& [key, array] : PileUpWeight){
176  }
177 }

◆ set_PUThrHighEm()

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

Definition at line 130 of file jFEXDBCondData.cxx.

130  {
131  m_PileUpThresholdHighEm = PileUpThresholdHighEm;
132 }

◆ set_PUThrHighFcal()

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

Definition at line 162 of file jFEXDBCondData.cxx.

162  {
163  m_PileUpThresholdHighFcal = PileUpThresholdHighFcal;
164 }

◆ set_PUThrHighHadHecOverlap()

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

Definition at line 146 of file jFEXDBCondData.cxx.

146  {
147  m_PileUpThresholdHighHadHecOverlap = PileUpThresholdHighHadHecOverlap;
148 }

◆ set_PUThrHighHadLar()

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

Definition at line 138 of file jFEXDBCondData.cxx.

138  {
139  m_PileUpThresholdHighHadLar = PileUpThresholdHighHadLar;
140 }

◆ set_PUThrHighHadTrex()

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

Definition at line 154 of file jFEXDBCondData.cxx.

154  {
155  m_PileUpThresholdHighHadTrex = PileUpThresholdHighHadTrex;
156 }

◆ set_PUThrLowEm()

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

Definition at line 126 of file jFEXDBCondData.cxx.

126  {
127  m_PileUpThresholdLowEm = PileUpThresholdLowEm;
128 }

◆ set_PUThrLowFcal()

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

Definition at line 158 of file jFEXDBCondData.cxx.

158  {
159  m_PileUpThresholdLowFcal = PileUpThresholdLowFcal;
160 }

◆ set_PUThrLowHadHecOverlap()

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

Definition at line 142 of file jFEXDBCondData.cxx.

142  {
143  m_PileUpThresholdLowHadHecOverlap = PileUpThresholdLowHadHecOverlap;
144 }

◆ set_PUThrLowHadLar()

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

Definition at line 134 of file jFEXDBCondData.cxx.

134  {
135  m_PileUpThresholdLowHadLar = PileUpThresholdLowHadLar;
136 }

◆ set_PUThrLowHadTrex()

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

Definition at line 150 of file jFEXDBCondData.cxx.

150  {
151  m_PileUpThresholdLowHadTrex = PileUpThresholdLowHadTrex;
152 }

◆ set_sendDefaults()

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

Definition at line 179 of file jFEXDBCondData.cxx.

179  {
180  m_sendDefaults = sendDefaults;
181 }

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.

◆ 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.

◆ 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.

◆ 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:
LVL1::jFEXDBCondData::m_NoiseCuts_default
std::array< uint16_t, 4 > m_NoiseCuts_default
Definition: jFEXDBCondData.h:101
LVL1::jFEXDBCondData::m_PileUpThresholdLowHadTrex
int m_PileUpThresholdLowHadTrex
Definition: jFEXDBCondData.h:93
LVL1::jFEXDBCondData::m_PileUpCorrectionMET
bool m_PileUpCorrectionMET
Definition: jFEXDBCondData.h:84
LVL1::jFEXDBCondData::m_PileUpThresholdHighEm
int m_PileUpThresholdHighEm
Definition: jFEXDBCondData.h:88
LVL1::jFEXDBCondData::m_PileUpWeight
std::unordered_map< uint16_t, std::array< uint16_t, 4 > > m_PileUpWeight
Definition: jFEXDBCondData.h:105
LVL1::jFEXDBCondData::m_PileUpThresholdLowEm
int m_PileUpThresholdLowEm
Definition: jFEXDBCondData.h:87
LVL1::jFEXDBCondData::m_PileUpThresholdLowHadLar
int m_PileUpThresholdLowHadLar
Definition: jFEXDBCondData.h:89
LVL1::jFEXDBCondData::m_PileUpWeight_default
std::array< uint16_t, 4 > m_PileUpWeight_default
Definition: jFEXDBCondData.h:106
LVL1::jFEXDBCondData::m_PileUpCorrectionJet
bool m_PileUpCorrectionJet
Definition: jFEXDBCondData.h:83
LVL1::jFEXDBCondData::DecodeOnlineID
std::array< int, 2 > DecodeOnlineID(uint16_t onlineID) const
Definition: jFEXDBCondData.cxx:184
LVL1::jFEXDBCondData::m_PileUpThresholdHighHadLar
int m_PileUpThresholdHighHadLar
Definition: jFEXDBCondData.h:90
LVL1::jFEXDBCondData::m_PileUpThresholdLowFcal
int m_PileUpThresholdLowFcal
Definition: jFEXDBCondData.h:95
LVL1::jFEXDBCondData::m_PileUpThresholdHighHadTrex
int m_PileUpThresholdHighHadTrex
Definition: jFEXDBCondData.h:94
python.PyAthena.module
module
Definition: PyAthena.py:131
LVL1::jFEXDBCondData::m_jJCalibParams
std::vector< std::vector< int > > m_jJCalibParams
Definition: jFEXDBCondData.h:71
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
LVL1::jFEXDBCondData::m_NoiseCuts
std::unordered_map< uint16_t, std::array< uint16_t, 4 > > m_NoiseCuts
Definition: jFEXDBCondData.h:100
lumiFormat.array
array
Definition: lumiFormat.py:91
LVL1::jFEXDBCondData::m_PileUpThresholdHighFcal
int m_PileUpThresholdHighFcal
Definition: jFEXDBCondData.h:96
LVL1::jFEXDBCondData::m_PileUpThresholdHighHadHecOverlap
int m_PileUpThresholdHighHadHecOverlap
Definition: jFEXDBCondData.h:92
LVL1::jFEXDBCondData::m_sendDefaults
bool m_sendDefaults
Definition: jFEXDBCondData.h:68
PowhegControl_ttFCNC_NLO.params
params
Definition: PowhegControl_ttFCNC_NLO.py:226
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
LVL1::jFEXDBCondData::m_PileUpThresholdLowHadHecOverlap
int m_PileUpThresholdLowHadHecOverlap
Definition: jFEXDBCondData.h:91