#include <L1CaloMatchCell2Tower.h>
Definition at line 40 of file L1CaloMatchCell2Tower.h.
◆ initialize()
| StatusCode L1CaloMatchCell2Tower::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 32 of file L1CaloMatchCell2Tower.cxx.
33{
40 return StatusCode::SUCCESS;
41}
#define ATH_CHECK
Evaluate an expression and check for errors.
const TileCablingService * m_tileCablingService
ToolHandle< CaloTriggerTowerService > m_ttSvc
const CaloLVL1_ID * m_lvl1Helper
const CaloIdManager * m_caloMgr
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
static const TileCablingService * getInstance()
get pointer to service instance
◆ matchCell2Tower() [1/2]
Definition at line 44 of file L1CaloMatchCell2Tower.cxx.
47{
50}
virtual void matchCell2Tower(const CaloCell *caloCell, Identifier &ttId1, Identifier &ttId2) const override
◆ matchCell2Tower() [2/2]
Definition at line 53 of file L1CaloMatchCell2Tower.cxx.
57{
61 const Identifier cellId(caloCell->
ID());
62
63 const CaloCell_ID* caloCellHelper =
m_caloMgr->getCaloCell_ID();
64
65
66 if (caloCellHelper->
is_tile(cellId)) {
67
70
71
72
73 if(
section==3 && (sample==1 || sample==2) ) {
75
76
78
79
80
81
82
85
86
87 }
else if( (
section==1 ||
section==2) && (sample==0 || sample==1) ) {
89 }
90
91
92 } else {
93
94 const Identifier layerId(
m_ttSvc->whichTTID(cellId));
95
96
97
98 bool lvl1(true);
100 int samp=caloCellHelper->
sampling(cellId);
101 if(samp==0) {
102 int eta=caloCellHelper->
eta(cellId);
104 lvl1 = false ;
105 }
106 }
107 } else {
110 if(layer == 3){
111 lvl1 = false ;
112 }
113 }
114 }
115
116 if(lvl1) {
117
118 HWIdentifier channelID =
cabling.createSignalChannelID(cellId);
119 if(
cabling.isOnlineConnected(channelID)) {
120
121
123 }
124 }
125 }
126
127}
Scalar eta() const
pseudorapidity method
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
int section(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
int sample(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
int eta(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
◆ m_cablingKey
Definition at line 66 of file L1CaloMatchCell2Tower.h.
67{ this, "CablingKey", "LArOnOffIdMap", "SG Key of LArOnOffIdMapping object" };
◆ m_caloMgr
| const CaloIdManager* LVL1::L1CaloMatchCell2Tower::m_caloMgr = nullptr |
|
private |
◆ m_lvl1Helper
| const CaloLVL1_ID* LVL1::L1CaloMatchCell2Tower::m_lvl1Helper = nullptr |
|
private |
◆ m_tileCablingService
◆ m_tileID
| const TileID* LVL1::L1CaloMatchCell2Tower::m_tileID = nullptr |
|
private |
◆ m_ttSvc
| ToolHandle<CaloTriggerTowerService> LVL1::L1CaloMatchCell2Tower::m_ttSvc { this, "CaloTriggerTowerService", "CaloTriggerTowerService", "CaloTriggerTowerService" } |
|
private |
Definition at line 63 of file L1CaloMatchCell2Tower.h.
64{ this, "CaloTriggerTowerService", "CaloTriggerTowerService", "CaloTriggerTowerService" };
The documentation for this class was generated from the following files: