14#ifndef JetElementKeyBase_H
15#define JetElementKeyBase_H
68 virtual unsigned int jeKey(
const double phi,
const double eta);
102 double dPhi(
const double phi,
const double eta)
const ;
108 double dEta(
const double phi,
const double eta)
const ;
110 double dEta()
const ;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
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.
bool m_debugKeyBase
set to true to turn debugging info on
void setupJetRegionData()
Does same as setupRegionData, except in FCAL where uses phi granularity appropriate for the jet trigg...
Coordinate upperLeft(const double phi, const double eta)
std::vector< double > m_regionHeight
holds height of JEs in regions:
BinAndCoord * calculateTriggerBin(ICoordinate *iCoord)
converts integer phi, eta coordinates to phi, eta trigger bins.
void analCoordChecking(const Coordinate &coord)
this is a bit over the top, but it looks to see if the calculated coordinate matches a coordinate cen...
Coordinate getCentre(const double phi, const double eta)
returns the central coordinate of the JE which contains the passed coord
unsigned int rightEtaKey(const double phi, const double eta)
returns key of JE in -ve eta dir.
double dEta() const
return width of JE
JetElementKeyBase()
constructs a JetElementKeyBase object
Coordinate rightEta(const double phi, const double eta)
Functions for finding coordinates of neighbouring JEs.
virtual ~JetElementKeyBase()
Coordinate downPhi(const double phi, const double eta)
returns coord of next JE in -ve phi dir.
unsigned int region(double eta) const
returns region number at eta, where region is:
std::vector< double > m_regionEtaCentre
holds central coords of JEs in regions: Region Eta 0 <2.2 1 2.2-2.4 2 2.4-2.7 3 2....
Coordinate leftEta(const double phi, const double eta)
returns key of JE in -ve eta dir.
void setupRegionData()
get region data from TrigT1CaloDefs and put in more useful format - vectors
JERegion jeRegion(const Coordinate &coord) const
Coordinate upperRight(const double phi, const double eta)
double dPhi() const
return height of JE
JetElementKeyBase(double phi, double eta)
takes phi and eta and constructs a JetElementKeyBase object which can return the key for this coord
unsigned int downPhiKey(const double phi, const double eta)
returns key of next JE in -ve phi dir.
unsigned int leftEtaKey(const double phi, const double eta)
returns key of JE in +ve eta dir.
virtual unsigned int jeKey(const xAOD::TriggerTower &tower)
returns key of passed tower
std::vector< double > m_regionWidth
holds width of JEs in regions:
Coordinate lowerLeft(const double phi, const double eta)
unsigned int upPhiKey(const double phi, const double eta)
returns key of next JE in +ve phi dir.
bool isFCAL(double eta) const
returns TRUE if this coordinate is in the FCAL
Coordinate lowerRight(const double phi, const double eta)
Coordinate upPhi(const double phi, const double eta)
returns coord of next JE in +ve phi dir.
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...
JetElement_v2 JetElement
Define the latest version of the JetElement class.
TriggerTower_v2 TriggerTower
Define the latest version of the TriggerTower class.