|
ATLAS Offline Software
|
Go to the documentation of this file.
52 bool jJ_isInValid =
false;
53 bool jLJ_isInValid =
false;
54 bool jTau_isInValid =
false;
55 bool jEM_isInValid =
false;
56 bool jXE_isInValid =
false;
57 bool jTE_isInValid =
false;
60 if(!jFexSRJetContainer.isValid()) {
65 if(!jFexLRJetContainer.isValid()) {
70 if(!jFexTauContainer.isValid()) {
72 jTau_isInValid =
true;
75 if(!jFexEMContainer.isValid()) {
80 if(!jFexMETContainer.isValid()) {
85 if(!jFexSumETContainer.isValid()) {
151 std::scoped_lock lock(
m_mutex);
172 for (
int ieta=-23; ieta<23; ieta++){
173 jFexEMeta = 0.1 * ieta + 0.05;
174 for (
int iphi=-32; iphi<33; iphi++){
175 jFexEMphi =
M_PI/32 * iphi +
M_PI/64;
196 jFexSRJeteta, jFexSRJetphi, jFexSRJeteta_glo, jFexSRJetphi_glo);
199 jFexSRJetBinNumber, lbn,
weight));
203 if (!jTau_isInValid) {
221 if (!jEM_isInValid) {
236 jFexEMphi, jFexEMeta_glo, jFexEMphi_glo, jFexEMIso, jFexEMf1,
253 fill(
m_Grouphist,jFexLRJetModule,jFexLRJetFPGA,jFexLRJetEt,jFexLRJeteta,jFexLRJetphi,jFexLRJeteta_glo,jFexLRJetphi_glo);
270 if(jFexMETContainer->size()>0) {
285 if(jFexSumETContainer->size()>0) {
286 jFexSumEt_total = sumEt_total;
291 return StatusCode::SUCCESS;
298 if (abs(eta) > 2.5 && abs(eta) < 3.1) {
301 }
else if (abs(eta) > 3.1 && abs(eta) < 3.2) {
309 return StatusCode::SUCCESS;
316 if (abs(eta) > 2.5 && abs(eta) < 3.2) {
323 return StatusCode::SUCCESS;
326 template <
typename TOB>
335 return StatusCode::SUCCESS;
338 template <
typename TOB>
343 float originalPhi = phi;
344 phi = originalPhi -
M_PI / 64;
350 phi = originalPhi +
M_PI / 64;
357 return StatusCode::SUCCESS;
367 float originalPhi = phi;
369 bool isFCAL = localEta >= 13;
371 eta = eta > 0 ? 3.175 : -3.175;
376 eta = eta > 0 ? 3.125 : -3.125;
377 phi = originalPhi -
M_PI / 64;
381 phi = originalPhi +
M_PI / 64;
386 return StatusCode::SUCCESS;
391 return tob->
et() >= 20000;
396 return tob->
et() >= 10000;
400 return tob->
et() >= 10000;
404 float eta,
float phi,
const std::vector<float>& etaBinBorders)
const {
405 if (etaBinBorders.size() == 0) {
413 for (
size_t i = 0;
i < etaBinBorders.size() - 1; ++
i) {
414 if (etaBinBorders.at(
i) <= eta && etaBinBorders.at(
i + 1) > eta) {
421 constexpr
float phiBinWidth = 2 *
M_PI / 64;
422 for (
int i = 0;
i < 64 - 1;
i++) {
423 if (
i * phiBinWidth -
M_PI <= phi && (
i + 1) * phiBinWidth -
M_PI > phi) {
JfexMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
SG::ReadHandleKey< xAOD::jFexFwdElRoIContainer > m_jFexFwdElContainerKey
Scalar phi() const
phi method
uint8_t jFexNumber() const
jFexLRJetRoI_v1 jFexLRJetRoI
Define the latest version of the jFexLRJetRoI class
Scalar eta() const
pseudorapidity method
SG::ReadHandleKey< xAOD::jFexMETRoIContainer > m_jFexMETContainerKey
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
uint8_t jFexNumber() const
Additional info (initialization)
int globalEta() const
Calculated from Tob.
int Ex() const
Methods that require combining results or applying scales.
uint8_t jFexNumber() const
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
unsigned int et() const
Methods that require combining results or applying scales.
SG::ReadHandleKey< xAOD::jFexSumETRoIContainer > m_jFexSumEtContainerKey
SG::ReadHandleKey< xAOD::jFexLRJetRoIContainer > m_jFexLRJetContainerKey
Gaudi::Property< std::vector< float > > m_jJEtaBins
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Base class for Athena Monitoring Algorithms.
StatusCode fillMapsCentralAndFCAL(TOB tob, Monitored::Scalar< float > &eta, Monitored::Scalar< float > &phi, Monitored::Scalar< int > &binNumber, Monitored::Scalar< int > &lbn, const std::vector< float > &etaBinBorders, Monitored::Scalar< float > &weight) const
bool passesEnergyCut(const xAOD::jFexSRJetRoI *tob) const
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
StatusCode fillMapsOverlap(const xAOD::jFexSRJetRoI *tob, Monitored::Scalar< float > &eta, Monitored::Scalar< float > &phi, Monitored::Scalar< int > &binNumber, Monitored::Scalar< int > &lbn, const std::vector< float > &etaBinBorders, Monitored::Scalar< float > &weight) const
Gaudi::Property< std::vector< float > > m_jTauEtaBins
uint8_t fpgaNumber() const
::StatusCode StatusCode
StatusCode definition for legacy code.
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
StatusCode fillMapsEndcap(TOB tob, Monitored::Scalar< float > &eta, Monitored::Scalar< float > &phi, Monitored::Scalar< int > &binNumber, Monitored::Scalar< int > &lbn, const std::vector< float > &etaBinBorders, Monitored::Scalar< float > &weight) const
jFexSRJetRoI_v1 jFexSRJetRoI
Define the latest version of the jFexSRJetRoI class
StringProperty m_GroupmapsHighPt
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
virtual StatusCode initialize() override
initialize
StatusCode fillJetMaps(const xAOD::jFexSRJetRoI *tob, Monitored::Scalar< float > &eta, Monitored::Scalar< float > &phi, Monitored::Scalar< int > &binNumber, Monitored::Scalar< int > &lbn, Monitored::Scalar< float > &weight) const
StatusCode fillEMMaps(const xAOD::jFexFwdElRoI *tob, Monitored::Scalar< float > &eta, Monitored::Scalar< float > &phi, Monitored::Scalar< int > &binNumber, Monitored::Scalar< int > &lbn, Monitored::Scalar< float > &weight) const
uint16_t tobEt() const
Decoded from Tob (for convenience)
StringProperty m_Groupmaps
bool isFCAL(const xAOD::CaloCluster *cluster)
return true if the cluster (or the majority of its energy) is in the FCAL0
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
jFexFwdElRoI_v1 jFexFwdElRoI
Define the latest version of the jFexFwdElJetRoI class
ATLAS_NO_CHECK_FILE_THREAD_SAFETY
unsigned int et() const
Methods that require combining results or applying scales.
int Ey() const
Met Ey in 1 MeV scale (all signs considered)
uint16_t tobEt_upper() const
virtual StatusCode initialize() override
initialize
int binNumberFromCoordinates(float eta, float phi, const std::vector< float > &etaBinBorders) const
#define ATH_MSG_WARNING(x)
uint8_t tobLocalEta() const
StringProperty m_Grouphist
jFexMETRoI_v1 jFexMETRoI
Define the latest version of the jFexMETRoI class
uint8_t fpgaNumber() const
constexpr std::array< std::pair< float, float >, 96 > jFEXMapEmptyBinCentersJetsOnly
jFexTauRoI_v1 jFexTauRoI
Define the latest version of the jFexSRJetRoI class
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer > m_jFexSRJetContainerKey
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate, 27 bit-word used at hardware level.
jFexSumETRoI_v1 jFexSumETRoI
Define the latest version of the jFexSumETJetRoI class
uint8_t jFexNumber() const
Declare a monitored scalar variable.
Define macros for attributes used to control the static checker.
uint16_t tobEt_lower() const
constexpr int pow(int base, int exp) noexcept
setScale setgFexType iEta
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
uint8_t fpgaNumber() const
Gaudi::Property< std::vector< float > > m_jEMEtaBins
uint8_t fpgaNumber() const
SG::ReadHandleKey< xAOD::jFexTauRoIContainer > m_jFexTauContainerKey
GeoGenfun::FunctionNoop ATan2(GeoGenfun::GENFUNCTION y, GeoGenfun::GENFUNCTION x)
unsigned int et() const
Methods that require combining results or applying scales.
constexpr std::array< std::pair< float, float >, 2036 > jFEXMapEmptyBinCenters