ATLAS Offline Software
L1CaloMatchCell2Tower.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
4  */
21 #ifndef TRIGT1CALOCALIBTOOLS_L1CALOMATCHCELL2TOWER_H
22 #define TRIGT1CALOCALIBTOOLS_L1CALOMATCHCELL2TOWER_H
23 
24 
30 #include "GaudiKernel/ToolHandle.h"
31 class CaloIdManager;
32 class TileID;
33 class CaloLVL1_ID;
34 class TileCablingService;
35 
36 
37 namespace LVL1 {
38 
39 
41  : public extends<AthAlgTool, IL1CaloMatchCell2Tower>
42 {
43 public:
44  using base_class::base_class;
45 
46  virtual StatusCode initialize() override;
47 
48  virtual void matchCell2Tower (const CaloCell* caloCell,
49  Identifier& ttId1,
50  Identifier& ttId2) const override;
51  virtual void matchCell2Tower (const LArOnOffIdMapping& cabling,
52  const CaloCell* caloCell,
53  Identifier& ttId1,
54  Identifier& ttId2) const override;
55 
56 
57 private:
58  const CaloIdManager* m_caloMgr = nullptr;
59  const TileID* m_tileID = nullptr;
60  const CaloLVL1_ID* m_lvl1Helper = nullptr;
62 
63  ToolHandle<CaloTriggerTowerService> m_ttSvc
64  { this, "CaloTriggerTowerService", "CaloTriggerTowerService", "CaloTriggerTowerService" };
65 
67  { this, "CablingKey", "LArOnOffIdMap", "SG Key of LArOnOffIdMapping object" };
68 };
69 
70 
71 } // namespace LVL1
72 
73 
74 #endif // not TRIGT1CALOCALIBTOOLS_L1CALOMATCHCELL2TOWER_H
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
LVL1::L1CaloMatchCell2Tower::matchCell2Tower
virtual void matchCell2Tower(const CaloCell *caloCell, Identifier &ttId1, Identifier &ttId2) const override
Definition: L1CaloMatchCell2Tower.cxx:44
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::L1CaloMatchCell2Tower::m_lvl1Helper
const CaloLVL1_ID * m_lvl1Helper
Definition: L1CaloMatchCell2Tower.h:60
LArOnOffIdMapping.h
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition: CaloIdManager.h:45
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
LVL1::L1CaloMatchCell2Tower
Definition: L1CaloMatchCell2Tower.h:42
LVL1::L1CaloMatchCell2Tower::m_caloMgr
const CaloIdManager * m_caloMgr
Definition: L1CaloMatchCell2Tower.h:58
TileCablingService
Definition: TileCablingService.h:23
LVL1::L1CaloMatchCell2Tower::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: L1CaloMatchCell2Tower.h:67
ReadCondHandleKey.h
IL1CaloMatchCell2Tower.h
Map from calo cells to trigger towers.
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
SG::ReadCondHandleKey< LArOnOffIdMapping >
LVL1::L1CaloMatchCell2Tower::initialize
virtual StatusCode initialize() override
Definition: L1CaloMatchCell2Tower.cxx:32
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
LVL1::L1CaloMatchCell2Tower::m_ttSvc
ToolHandle< CaloTriggerTowerService > m_ttSvc
Definition: L1CaloMatchCell2Tower.h:64
CaloTriggerTowerService.h
LVL1::L1CaloMatchCell2Tower::m_tileCablingService
const TileCablingService * m_tileCablingService
Definition: L1CaloMatchCell2Tower.h:61
LVL1::L1CaloMatchCell2Tower::m_tileID
const TileID * m_tileID
Definition: L1CaloMatchCell2Tower.h:59
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20