ATLAS Offline Software
ClusterProcessorModuleKey.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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
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 
50 
52  unsigned int cpmKey(unsigned int crate, unsigned int module);
54  double dPhi(const Coordinate& coord) const;
56  double dEta(const Coordinate& coord) const;
58  unsigned int cpm(const Coordinate & coord) const;
59 
60 private: // Private methods
65  void setBins(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
LVL1::KeyUtilities::phi
virtual double phi() const
returns phi coordinate of centre of relevant trigger tower.
Definition: KeyUtilities.cxx:159
LVL1::ClusterProcessorModuleKey::ClusterProcessorModuleKey
ClusterProcessorModuleKey()
constructs a ClusterProcessorModuleKey object
Definition: ClusterProcessorModuleKey.cxx:39
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::cpmKey
unsigned int cpmKey(unsigned int crate, unsigned int module)
calculates key from crate and module index
Definition: ClusterProcessorModuleKey.cxx:47
LVL1::ClusterProcessorModuleKey::~ClusterProcessorModuleKey
virtual ~ClusterProcessorModuleKey()
Definition: ClusterProcessorModuleKey.cxx:43
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::ICoordinate
Used by Key Classes, returns and integer coorginate for the bin Eta-Phi.
Definition: ICoordinate.h:31
python.PyAthena.module
module
Definition: PyAthena.py:134
xAOD::etaBin
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
Definition: L2StandAloneMuon_v1.cxx:148
LVL1::ClusterProcessorModuleKey::dPhi
double dPhi(const Coordinate &coord) const
height
Definition: ClusterProcessorModuleKey.cxx:53
LVL1::KeyUtilities::coord
Coordinate coord() const
return central coords of current key value.
Definition: KeyUtilities.cxx:199
LVL1::Coordinate
Coordinate class declaration.
Definition: TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:50
LVL1::BinAndCoord
Used to pass data between the methods of the Key Classes: Returns the Eta and Phi bins,...
Definition: BinAndCoord.h:40
BinAndCoord.h
Coordinate.h
Coordinate policies.
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
Coordinate.h
KeyUtilities.h
xAOD::phiBin
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setPhiMap phiBin
Definition: L2StandAloneMuon_v2.cxx:144
LVL1::ClusterProcessorModuleKey::dEta
double dEta(const Coordinate &coord) const
width
Definition: ClusterProcessorModuleKey.cxx:58
LVL1::ClusterProcessorModuleKey::setBins
void setBins(ICoordinate *iCoord, unsigned int &phiBin, int &etaBin)
sets the eta and phi bins
Definition: ClusterProcessorModuleKey.cxx:60
TriggerTower.h
LVL1::ClusterProcessorModuleKey::m_debugModuleKey
bool m_debugModuleKey
set to true to turn debugging info on
Definition: ClusterProcessorModuleKey.h:84
LVL1::ClusterProcessorModuleKey::calculateTriggerBin
BinAndCoord * calculateTriggerBin(ICoordinate *iCoord)
converts integer phi, eta coordinates to phi, eta trigger bins, and central coords
Definition: ClusterProcessorModuleKey.cxx:87