52 virtual double eta()
const;
57 virtual double phi()
const;
62 unsigned int key(
double phi,
double eta) ;
82 virtual int sign(
int temp)
const;
84 virtual int sign(
double temp)
const;
Used to pass data between the methods of the Key Classes: Returns the Eta and Phi bins,...
Coordinate class declaration.
Used by Key Classes, returns and integer coorginate for the bin Eta-Phi.
virtual double dPhi(const Coordinate &coord) const =0
returns the height at eta_coord:
virtual double eta() const
returns the centre of the TT at eta_coord:
virtual int sign(int temp) const
returns -1 if temp is -ve and +1 if it is +ve.
virtual BinAndCoord * calculateTriggerBin(ICoordinate *iCoord)=0
converts integer phi, eta coordinates to phi, eta trigger bins.
int m_ieta
integer eta coord
int sharpRound2(int a, int b) const
divides a/b and returns a number as follows (where +b means +ve b): if 0
virtual double phi() const
returns phi coordinate of centre of relevant trigger tower.
int sharpRound(double a) const
rounds number as follows (-1.0 to 0.0) -> -1, (0.0 to 1.0) -> 0, (1.0 to 2.0)->1 etc.
ICoordinate * convertCoordsToIntegers(double phi, double eta)
converts the coordinates and corrects for overflows etc.
int m_iphi
integer phi coord
virtual double dEta(const Coordinate &coord) const =0
returns the width at eta_coord:
double m_centralEta
this is the coordinate of the centre of the relevant trigger tower.
int round(double a) const
rounds number to nearest whole number
unsigned int key(double phi, double eta)
calculates a map key from passed phi, eta coordinates
Coordinate coord() const
return central coords of current key value.
void setupThisKeyValues()
double m_centralPhi
this is the coordinate of the centre of the relevant trigger tower.
KeyUtilities()
the constructor is protected so a user can never make a KeyUtilities object
bool m_debug
turns DEBUG code on and off
double m_phi
phi coordinate of key
double m_eta
eta coordinate of key
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...