ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerTowerKey.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4/***************************************************************************
5 TriggerTowerKey.h - description
6 -------------------
7 begin : Tue Sep 26 2000
8 email : e.moyse@qmw.ac.uk
9 ***************************************************************************/
10
11
12#ifndef TRIGGERTOWERKEY_H
13
14#define TRIGGERTOWERKEY_H
15
16#include <iostream>
17#include <stdlib.h>
18
19#ifndef TRIGGERSPACE
20// running in Athena
21
27#include "CaloEvent/CaloCell.h"
28
29
30#else
31// running in TRIGGERSPACE
32#include "KeyUtilities.h"
33#include "ICoordinate.h"
34#include "BinAndCoord.h"
35#include "Coordinate.h"
36
37#endif
38
39
40
41namespace LVL1 {
42
52public:
53
61
62 TriggerTowerKey(double m_phi, double m_eta);
64 virtual ~TriggerTowerKey();
65
66#ifndef TRIGGERSPACE
67 // these methods are only applicable if running in Athena
69 virtual unsigned int ttKey( const TriggerTower & tower);
71 unsigned int ttKey( const CaloCell & calocell) ;
72#endif
73
75 unsigned int ttKey(const double phi, const double eta);
79 double dEta(const Coordinate& coord) const;
81 double dPhi(const Coordinate& coord) const;
82
83
84
85
86private: // Private methods
90private:
91// bool m_debug;
92};
93}
94#endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
double coord
Type of coordination system.
Coordinate policies.
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
Used to pass data between the methods of the Key Classes: Returns the Eta and Phi bins,...
Definition BinAndCoord.h:35
Used by Key Classes, returns and integer coorginate for the bin Eta-Phi.
Definition ICoordinate.h:26
KeyUtilities()
the constructor is protected so a user can never make a KeyUtilities object
double m_phi
phi coordinate of key
double m_eta
eta coordinate of key
TriggerTowerKey(double m_phi, double m_eta)
takes phi and eta and constructs a TriggerTowerKey object which can return the key for this coord *to...
TriggerTowerRegion region(const Coordinate &coord) const
returns the TT region that the coordinate corresponds to.
double dPhi(const Coordinate &coord) const
returns phi height of trigger tower at coordinate coord
double dEta(const Coordinate &coord) const
returns eta width of trigger tower at coordinate coord
TriggerTowerKey()
constructs a TriggerTowerKey object
virtual unsigned int ttKey(const TriggerTower &tower)
returns the key of the passed tower
BinAndCoord * calculateTriggerBin(ICoordinate *iCoord)
converts integer phi, eta coordinates to phi, eta trigger bins.
Trigger towers are the inputs to all other parts of the calorimeter trigger.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...