ATLAS Offline Software
Loading...
Searching...
No Matches
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
34namespace LVL1 {
35
45
46public:
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
60private: // Private methods
65 void setBins(ICoordinate* iCoord,unsigned int& phiBin, int& etaBin);
71 unsigned int phiQuadrant(const double phi) const ;
72private:
75};
76}
77
78#endif
Coordinate policies.
Used to pass data between the methods of the Key Classes: Returns the Eta and Phi bins,...
Definition BinAndCoord.h:35
double dPhi(const Coordinate &coord) const
height
ClusterProcessorModuleKey()
constructs a ClusterProcessorModuleKey object
BinAndCoord * calculateTriggerBin(ICoordinate *iCoord)
converts integer phi, eta coordinates to phi, eta trigger bins, and central coords
unsigned int cpm(const Coordinate &coord) const
returns CPM number within a crate for a TriggerTower or RoI coordinate
void setBins(ICoordinate *iCoord, unsigned int &phiBin, int &etaBin)
sets the eta and phi bins
bool m_debugModuleKey
set to true to turn debugging info on
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...
unsigned int cpmKey(unsigned int crate, unsigned int module)
calculates key from crate and module index
double dEta(const Coordinate &coord) const
width
Used by Key Classes, returns and integer coorginate for the bin Eta-Phi.
Definition ICoordinate.h:26
virtual double phi() const
returns phi coordinate of centre of relevant trigger tower.
Coordinate coord() const
return central coords of current key value.
KeyUtilities()
the constructor is protected so a user can never make a KeyUtilities object
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...