ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloFcal23Cells2RxMappingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4// ***************************************************************************
5// * Author: John Morris (john.morris@cern.ch) *
6// * Queen Mary University of London *
7// * *
8
9//
10// Mapping tool for Fcal 23 calo cells to receivers
11//
12
13#ifndef TRIGT1CALOCALIBTOOLS_L1CALOFCAL23CELLS2RXMAPPINGTOOL_H
14#define TRIGT1CALOCALIBTOOLS_L1CALOFCAL23CELLS2RXMAPPINGTOOL_H
15
16#include <unordered_map>
17#include <vector>
18
19#include "AsgTools/AsgTool.h"
20#include "GaudiKernel/ToolHandle.h"
22
24
25namespace LVL1 {
26
28{
31
32public:
34 L1CaloFcal23Cells2RxMappingTool( const std::string& name );
42
43
44 virtual StatusCode initialize() override;
45 virtual StatusCode finalize() override;
46
47 virtual unsigned int offlineCell2RxId(const unsigned int& cellId) const override;
48 virtual unsigned int onlineCell2RxId(const unsigned int& cellId) const override;
49
57
58
59private:
60 unsigned int lookup (mapType type, unsigned int cellId) const;
61 std::unordered_map<unsigned int,unsigned int> m_maps[numMaps];
62};
63} // end of namespace
64#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
std::unordered_map< unsigned int, unsigned int > m_maps[numMaps]
L1CaloFcal23Cells2RxMappingTool(const std::string &name)
Create a proper constructor for Athena.
unsigned int lookup(mapType type, unsigned int cellId) const
virtual unsigned int offlineCell2RxId(const unsigned int &cellId) const override
Declare the interface that the class provides.
virtual unsigned int onlineCell2RxId(const unsigned int &cellId) const override
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
L1CaloFcal23Cells2RxMappingTool()=delete
delete the big 4
L1CaloFcal23Cells2RxMappingTool(const L1CaloFcal23Cells2RxMappingTool &rhs)=delete
L1CaloFcal23Cells2RxMappingTool(L1CaloFcal23Cells2RxMappingTool &&rhs)=delete
L1CaloFcal23Cells2RxMappingTool & operator=(const L1CaloFcal23Cells2RxMappingTool &rhs)=delete
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...