ATLAS Offline Software
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 
41 namespace LVL1 {
42 
51 class TriggerTowerKey : public KeyUtilities {
52 public:
53 
54 enum TriggerTowerRegion {
55  TTBarrel=0,
57  TTEndCap2=2,
58  TTFCAL=3,
59  TTRegionError=999
60 };
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 
86 private: // Private methods
90 private:
91 // bool m_debug;
92 };
93 }
94 #endif
LVL1::KeyUtilities::phi
virtual double phi() const
returns phi coordinate of centre of relevant trigger tower.
Definition: KeyUtilities.cxx:159
LVL1::TriggerTowerKey::~TriggerTowerKey
virtual ~TriggerTowerKey()
Definition: TriggerTowerKey.cxx:56
LVL1::KeyUtilities::m_phi
double m_phi
phi coordinate of key
Definition: KeyUtilities.h:112
LVL1::TriggerTowerKey::TTBarrel
@ TTBarrel
Definition: TriggerTowerKey.h:70
LVL1::TriggerTowerKey::TTEndCap2
@ TTEndCap2
Definition: TriggerTowerKey.h:72
CaloCell.h
LVL1::TriggerTowerKey::region
TriggerTowerRegion region(const Coordinate &coord) const
returns the TT region that the coordinate corresponds to.
Definition: TriggerTowerKey.cxx:158
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
LVL1::KeyUtilities::eta
virtual double eta() const
returns the centre of the TT at eta_coord:
Definition: KeyUtilities.cxx:150
LVL1::TriggerTowerKey::TriggerTowerKey
TriggerTowerKey()
constructs a TriggerTowerKey object
Definition: TriggerTowerKey.cxx:47
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::TriggerTowerKey::calculateTriggerBin
BinAndCoord * calculateTriggerBin(ICoordinate *iCoord)
converts integer phi, eta coordinates to phi, eta trigger bins.
Definition: TriggerTowerKey.cxx:61
LVL1::TriggerTowerKey::TTFCAL
@ TTFCAL
Definition: TriggerTowerKey.h:73
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.
Coordinate.h
LVL1::KeyUtilities::m_eta
double m_eta
eta coordinate of key
Definition: KeyUtilities.h:110
KeyUtilities.h
LVL1::TriggerTowerKey::dPhi
double dPhi(const Coordinate &coord) const
returns phi height of trigger tower at coordinate coord
Definition: TriggerTowerKey.cxx:181
LVL1::TriggerTower
Trigger towers are the inputs to all other parts of the calorimeter trigger.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/TriggerTower.h:45
LVL1::TriggerTowerKey::TriggerTowerRegion
TriggerTowerRegion
Definition: TriggerTowerKey.h:64
LVL1::TriggerTowerKey::TTRegionError
@ TTRegionError
Definition: TriggerTowerKey.h:74
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
LVL1::TriggerTowerKey::dEta
double dEta(const Coordinate &coord) const
returns eta width of trigger tower at coordinate coord
Definition: TriggerTowerKey.cxx:171
LVL1::TriggerTowerKey::TTEndCap1
@ TTEndCap1
Definition: TriggerTowerKey.h:71
LVL1::TriggerTowerKey::ttKey
virtual unsigned int ttKey(const TriggerTower &tower)
returns the key of the passed tower
Definition: TriggerTowerKey.cxx:143
TriggerTower.h
ICoordinate.h