|
ATLAS Offline Software
|
Go to the documentation of this file.
35 if (m_debugModuleKey) std::cout <<
"ClusterProcessorModuleKey: m_debugModuleKey output turned on...."<<std::endl;
38 ClusterProcessorModuleKey::~ClusterProcessorModuleKey(){
42 unsigned int ClusterProcessorModuleKey::cpmKey(
unsigned int crate,
unsigned int module) {
43 double eta =
module*TrigT1CaloDefs::cpmEtaSize - 3.0;
44 double phi = (crate+0.5)*TrigT1CaloDefs::cpmPhiSize;
49 return TrigT1CaloDefs::cpmPhiSize;
54 return TrigT1CaloDefs::cpmEtaSize;
61 unsigned int iPhiSize=16 ;
73 double eta =
coord.eta() - 0.025;
77 return static_cast<unsigned int>(temp);
88 int abs_ieta=abs(iCoord->
eta() );
89 int sign=( iCoord->
eta() )/abs_ieta;
98 if (m_debugModuleKey){
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<<
")"
108 if (m_debugModuleKey) std::cout <<
" ClusterProcessorModuleKey : created coord "<<(*centralCoords)<<std::endl;
121 unsigned int quad =
static_cast<unsigned int>(temp);
124 return static_cast<unsigned int>(
quad);
ClusterProcessorModuleKey()
constructs a ClusterProcessorModuleKey object
unsigned int cpm(const Coordinate &coord) const
returns CPM number within a crate for a TriggerTower or RoI coordinate
static const double cpmEtaSize
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Used by Key Classes, returns and integer coorginate for the bin Eta-Phi.
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
Coordinate class declaration.
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Used to pass data between the methods of the Key Classes: Returns the Eta and Phi bins,...
static const double cpmPhiSize
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...
int phi() const
return phi
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setPhiMap phiBin
int eta() const
return eta
void setBins(ICoordinate *iCoord, unsigned int &phiBin, int &etaBin)
sets the eta and phi bins
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
BinAndCoord * calculateTriggerBin(ICoordinate *iCoord)
converts integer phi, eta coordinates to phi, eta trigger bins, and central coords
int sharpRound2(int a, int b) const
divides a/b and returns a number as follows (where +b means +ve b): if 0<a<+b, then n=1,...