35 if (
m_debugModuleKey) std::cout <<
"ClusterProcessorModuleKey: m_debugModuleKey output turned on...."<<std::endl;
43 double eta =
module*TrigT1CaloDefs::cpmEtaSize - 3.0;
61 unsigned int iPhiSize=16 ;
62 phiBin=( iCoord->
phi() )/(iPhiSize);
77 return static_cast<unsigned int>(temp);
88 int abs_ieta=abs(iCoord->
eta() );
89 int sign=( iCoord->
eta() )/abs_ieta;
91 int etaBin=0;
unsigned int phiBin=0;
99 std::cout <<
"ClusterProcessorModuleKey: start calcTrigBin"<<std::endl;
100 std::cout <<
"phi, eta : ("<<
m_phi<<
", "<<
m_eta<<
")"<<std::endl;
101 std::cout <<
"iphi, ieta : ("<<( iCoord->
phi() )<<
", "<<( iCoord->
eta() )<<
")"<<std::endl;
102 std::cout <<
"abs_ieta : ("<<abs_ieta<<
" and sign : "<<
sign<<std::endl;
103 std::cout <<
"central : ("<<centralPhi<<
", "<<centralEta<<
")"
104 <<
"bin : ("<<phiBin<<
","<<etaBin<<
")"<<std::endl;
108 if (
m_debugModuleKey) std::cout <<
" ClusterProcessorModuleKey : created coord "<<(*centralCoords)<<std::endl;
109 return new BinAndCoord(phiBin,etaBin,centralCoords);
121 unsigned int quad =
static_cast<unsigned int>(temp);
122 quad=(quad > 3 ? 0 : quad);
124 return static_cast<unsigned int>(quad);
Used to pass data between the methods of the Key Classes: Returns the Eta and Phi bins,...
double dPhi(const Coordinate &coord) const
height
ClusterProcessorModuleKey()
constructs a ClusterProcessorModuleKey object
virtual ~ClusterProcessorModuleKey()
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
Coordinate class declaration.
Used by Key Classes, returns and integer coorginate for the bin Eta-Phi.
int phi() const
return phi
int eta() const
return eta
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.
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.
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.
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
static const double cpmEtaSize
static const double cpmPhiSize
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...