ATLAS Offline Software
Functions
HI::TowerBins Namespace Reference

Functions

constexpr unsigned int numEtaBins ()
 
constexpr float etaMin ()
 
constexpr float etaMax ()
 
constexpr unsigned int numPhiBins ()
 
constexpr unsigned int numLayers ()
 
constexpr float PhiMin ()
 
constexpr float PhiMax ()
 
constexpr float getBinSizeEta ()
 
constexpr float getBinSizePhi ()
 
constexpr float getBinArea ()
 
constexpr float getTotalArea ()
 
constexpr unsigned int getNumEtaPhiBins ()
 
float getBinLowEdgeEta (unsigned int eb)
 
float getBinUpEdgeEta (unsigned int eb)
 
float getBinCenterEta (unsigned int eb)
 
float getBinLowEdgePhi (unsigned int pb)
 
float getBinUpEdgePhi (unsigned int pb)
 
float getBinCenterPhi (unsigned int pb)
 
unsigned int findBinEta (float eta)
 
unsigned int findBinPhi (float phi)
 
unsigned int findEtaPhiBin (float eta, float phi)
 

Function Documentation

◆ etaMax()

constexpr float HI::TowerBins::etaMax ( )
constexpr

Definition at line 21 of file HIEventDefs.h.

21 {return 5.;}

◆ etaMin()

constexpr float HI::TowerBins::etaMin ( )
constexpr

Definition at line 20 of file HIEventDefs.h.

20 {return -5.;}

◆ findBinEta()

unsigned int HI::TowerBins::findBinEta ( float  eta)
inline

Definition at line 46 of file HIEventDefs.h.

46 {return std::floor((eta-etaMin())/getBinSizeEta());}

◆ findBinPhi()

unsigned int HI::TowerBins::findBinPhi ( float  phi)
inline

Definition at line 47 of file HIEventDefs.h.

48  {
49  int pb=std::floor((phi-PhiMin()) /getBinSizePhi());
50  return pb % numPhiBins();
51  }

◆ findEtaPhiBin()

unsigned int HI::TowerBins::findEtaPhiBin ( float  eta,
float  phi 
)
inline

Definition at line 52 of file HIEventDefs.h.

52 { return numPhiBins()*findBinEta(eta)+findBinPhi(phi);}

◆ getBinArea()

constexpr float HI::TowerBins::getBinArea ( )
constexpr

Definition at line 34 of file HIEventDefs.h.

34 {return getBinSizeEta()*getBinSizePhi();}

◆ getBinCenterEta()

float HI::TowerBins::getBinCenterEta ( unsigned int  eb)
inline

Definition at line 40 of file HIEventDefs.h.

40 {return etaMin()+(eb+0.5)*getBinSizeEta();}

◆ getBinCenterPhi()

float HI::TowerBins::getBinCenterPhi ( unsigned int  pb)
inline

Definition at line 44 of file HIEventDefs.h.

44 {return PhiMin()+(pb+0.5)*getBinSizePhi();}

◆ getBinLowEdgeEta()

float HI::TowerBins::getBinLowEdgeEta ( unsigned int  eb)
inline

Definition at line 38 of file HIEventDefs.h.

38 {return etaMin()+eb*getBinSizeEta();}

◆ getBinLowEdgePhi()

float HI::TowerBins::getBinLowEdgePhi ( unsigned int  pb)
inline

Definition at line 42 of file HIEventDefs.h.

42 {return PhiMin()+pb*getBinSizePhi();}

◆ getBinSizeEta()

constexpr float HI::TowerBins::getBinSizeEta ( )
constexpr

Definition at line 31 of file HIEventDefs.h.

31 {return (etaMax()-etaMin())/((float)numEtaBins());}

◆ getBinSizePhi()

constexpr float HI::TowerBins::getBinSizePhi ( )
constexpr

Definition at line 32 of file HIEventDefs.h.

32 {return (PhiMax()-PhiMin())/((float)numPhiBins());}

◆ getBinUpEdgeEta()

float HI::TowerBins::getBinUpEdgeEta ( unsigned int  eb)
inline

Definition at line 39 of file HIEventDefs.h.

39 {return etaMin()+(eb+1)*getBinSizeEta();}

◆ getBinUpEdgePhi()

float HI::TowerBins::getBinUpEdgePhi ( unsigned int  pb)
inline

Definition at line 43 of file HIEventDefs.h.

43 {return PhiMin()+(pb+1)*getBinSizePhi();}

◆ getNumEtaPhiBins()

constexpr unsigned int HI::TowerBins::getNumEtaPhiBins ( )
constexpr

Definition at line 36 of file HIEventDefs.h.

36 {return numEtaBins()*numPhiBins();}

◆ getTotalArea()

constexpr float HI::TowerBins::getTotalArea ( )
constexpr

Definition at line 35 of file HIEventDefs.h.

35 {return (etaMax()-etaMin())*(PhiMax()-PhiMin());}

◆ numEtaBins()

constexpr unsigned int HI::TowerBins::numEtaBins ( )
constexpr

Definition at line 19 of file HIEventDefs.h.

19 {return 100;}

◆ numLayers()

constexpr unsigned int HI::TowerBins::numLayers ( )
constexpr

Definition at line 23 of file HIEventDefs.h.

23 {return 24;}

◆ numPhiBins()

constexpr unsigned int HI::TowerBins::numPhiBins ( )
constexpr

Definition at line 22 of file HIEventDefs.h.

22 {return 64;}

◆ PhiMax()

constexpr float HI::TowerBins::PhiMax ( )
constexpr

Definition at line 29 of file HIEventDefs.h.

29 {return M_PI;}

◆ PhiMin()

constexpr float HI::TowerBins::PhiMin ( )
constexpr

Definition at line 28 of file HIEventDefs.h.

28 {return -M_PI;}
HI::TowerBins::etaMin
constexpr float etaMin()
Definition: HIEventDefs.h:20
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
HI::TowerBins::findBinEta
unsigned int findBinEta(float eta)
Definition: HIEventDefs.h:46
HI::TowerBins::findBinPhi
unsigned int findBinPhi(float phi)
Definition: HIEventDefs.h:47
M_PI
#define M_PI
Definition: ActiveFraction.h:11
HI::TowerBins::PhiMin
constexpr float PhiMin()
Definition: HIEventDefs.h:28
HI::TowerBins::etaMax
constexpr float etaMax()
Definition: HIEventDefs.h:21
HI::TowerBins::numEtaBins
constexpr unsigned int numEtaBins()
Definition: HIEventDefs.h:19
HI::TowerBins::getBinSizeEta
constexpr float getBinSizeEta()
Definition: HIEventDefs.h:31
HI::TowerBins::getBinSizePhi
constexpr float getBinSizePhi()
Definition: HIEventDefs.h:32
HI::TowerBins::numPhiBins
constexpr unsigned int numPhiBins()
Definition: HIEventDefs.h:22
readCCLHist.float
float
Definition: readCCLHist.py:83
HI::TowerBins::PhiMax
constexpr float PhiMax()
Definition: HIEventDefs.h:29