ATLAS Offline Software
Loading...
Searching...
No Matches
PpmCoolMappingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGT1CALOMAPPINGTOOLS_PPMCOOLMAPPINGTOOL_H
6#define TRIGT1CALOMAPPINGTOOLS_PPMCOOLMAPPINGTOOL_H
7
8#include <string>
9
11#include "GaudiKernel/IIncidentListener.h"
12#include "GaudiKernel/Incident.h"
13#include "GaudiKernel/ToolHandle.h"
14
17
18class CaloLVL1_ID;
19class IInterface;
20class StatusCode;
21class TTOnlineID;
22
23namespace LVL1 {
24
32
33class PpmCoolMappingTool : public extends<AthAlgTool, IL1CaloMappingTool, IIncidentListener>
34{
35 public:
36
37 using base_class::base_class;
38
39 virtual StatusCode initialize() override;
40 virtual void handle(const Incident&) override;
41
43 virtual bool mapping(int crate, int module, int channel,
44 double& eta, double& phi, int& layer) const override;
46 virtual bool mapping(double eta, double phi, int layer,
47 int& crate, int& module, int& channel) const override;
48
49 private:
50
51 // Tools and helpers
52 ToolHandle<CaloTriggerTowerService> m_ttSvc
53 { this, "CaloTriggerTowerService", "CaloTriggerTowerService" };
54 const CaloLVL1_ID* m_lvl1Helper = nullptr;
56
58 std::vector<unsigned int> m_idTable;
59 static const int s_maxTableEntries = 8192;
60
61};
62
63} // end namespace
64
65#endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Helper class for offline TT identifiers.
Definition CaloLVL1_ID.h:66
PPM crate/module/channel to eta/phi/layer mappings.
const TTOnlineID * m_l1ttonlineHelper
virtual bool mapping(int crate, int module, int channel, double &eta, double &phi, int &layer) const override
Return eta, phi and layer mapping for given crate/module/channel.
std::vector< unsigned int > m_idTable
Mapping lookup table.
const CaloLVL1_ID * m_lvl1Helper
static const int s_maxTableEntries
virtual StatusCode initialize() override
virtual void handle(const Incident &) override
ToolHandle< CaloTriggerTowerService > m_ttSvc
Helper class for Calo TT online identifiers.
Definition TTOnlineID.h:29
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...