ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloUtils
TrigT1CaloUtils
ClusterProcessorModuleKey.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
/***************************************************************************
5
ClusterProcessorModuleKey.h - description
6
-------------------
7
begin : Monday August 20 2001
8
email : e.moyse@qmw.ac.uk
9
***************************************************************************/
10
11
12
#ifndef ClusterProcessorModuleKey_H
13
#define ClusterProcessorModuleKey_H
14
15
#include <iostream>
16
#include <vector>
17
18
#ifndef TRIGGERSPACE
19
// running in Athena
20
#include "
TrigT1CaloEvent/TriggerTower.h
"
21
#include "
TrigT1CaloUtils/KeyUtilities.h
"
22
#include "
TrigT1CaloUtils/BinAndCoord.h
"
23
#include "
TrigT1Interfaces/Coordinate.h
"
24
25
#else
26
// running in TRIGGERSPACE/
27
#include "
TriggerTower.h
"
28
#include "
BinAndCoord.h
"
29
#include "
Coordinate.h
"
30
#include "
KeyUtilities.h
"
31
32
#endif
33
34
namespace
LVL1
{
35
44
class
ClusterProcessorModuleKey
:
public
KeyUtilities
{
45
46
public
:
47
48
ClusterProcessorModuleKey
();
49
virtual
~ClusterProcessorModuleKey
();
50
52
unsigned
int
cpmKey
(
unsigned
int
crate,
unsigned
int
module);
54
virtual
double
dPhi
(
const
Coordinate
&
coord
)
const override
;
56
virtual
double
dEta
(
const
Coordinate
&
coord
)
const override
;
58
unsigned
int
cpm
(
const
Coordinate
&
coord
)
const
;
59
60
private
:
// Private methods
63
virtual
BinAndCoord
calculateTriggerBin
(
const
ICoordinate
& iCoord)
override
;
65
void
setBins
(
const
ICoordinate
& iCoord,
unsigned
int
& phiBin,
int
& etaBin);
71
unsigned
int
phiQuadrant
(
const
double
phi
)
const
;
72
private
:
74
bool
m_debugModuleKey
;
75
};
76
}
77
78
#endif
BinAndCoord.h
KeyUtilities.h
Coordinate.h
Coordinate.h
Coordinate policies.
TriggerTower.h
LVL1::BinAndCoord
Used to pass data between the methods of the Key Classes: Returns the Eta and Phi bins,...
Definition
BinAndCoord.h:35
LVL1::ClusterProcessorModuleKey::setBins
void setBins(const ICoordinate &iCoord, unsigned int &phiBin, int &etaBin)
sets the eta and phi bins
Definition
ClusterProcessorModuleKey.cxx:60
LVL1::ClusterProcessorModuleKey::ClusterProcessorModuleKey
ClusterProcessorModuleKey()
constructs a ClusterProcessorModuleKey object
Definition
ClusterProcessorModuleKey.cxx:34
LVL1::ClusterProcessorModuleKey::calculateTriggerBin
virtual BinAndCoord calculateTriggerBin(const ICoordinate &iCoord) override
converts integer phi, eta coordinates to phi, eta trigger bins, and central coords
Definition
ClusterProcessorModuleKey.cxx:87
LVL1::ClusterProcessorModuleKey::dEta
virtual double dEta(const Coordinate &coord) const override
width
Definition
ClusterProcessorModuleKey.cxx:53
LVL1::ClusterProcessorModuleKey::~ClusterProcessorModuleKey
virtual ~ClusterProcessorModuleKey()
Definition
ClusterProcessorModuleKey.cxx:38
LVL1::ClusterProcessorModuleKey::dPhi
virtual double dPhi(const Coordinate &coord) const override
height
Definition
ClusterProcessorModuleKey.cxx:48
LVL1::ClusterProcessorModuleKey::cpm
unsigned int cpm(const Coordinate &coord) const
returns CPM number within a crate for a TriggerTower or RoI coordinate
Definition
ClusterProcessorModuleKey.cxx:70
LVL1::ClusterProcessorModuleKey::m_debugModuleKey
bool m_debugModuleKey
set to true to turn debugging info on
Definition
ClusterProcessorModuleKey.h:74
LVL1::ClusterProcessorModuleKey::phiQuadrant
unsigned int phiQuadrant(const double phi) const
returns the quadrant number associated with the phi coordinate, 0 - 90 = 0 90 - 180 = 1 180-270 = 2 2...
Definition
ClusterProcessorModuleKey.cxx:119
LVL1::ClusterProcessorModuleKey::cpmKey
unsigned int cpmKey(unsigned int crate, unsigned int module)
calculates key from crate and module index
Definition
ClusterProcessorModuleKey.cxx:42
LVL1::Coordinate
Coordinate class declaration.
Definition
TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:45
LVL1::ICoordinate
Used by Key Classes, returns and integer coorginate for the bin Eta-Phi.
Definition
ICoordinate.h:26
LVL1::KeyUtilities::phi
virtual double phi() const
returns phi coordinate of centre of relevant trigger tower.
Definition
KeyUtilities.cxx:151
LVL1::KeyUtilities::coord
Coordinate coord() const
return central coords of current key value.
Definition
KeyUtilities.cxx:194
LVL1::KeyUtilities::KeyUtilities
KeyUtilities()
the constructor is protected so a user can never make a KeyUtilities object
Definition
KeyUtilities.cxx:37
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0