CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
calogeom Namespace Reference

Classes

class  IdealCastorTrapezoid
 
class  IdealObliquePrism
 
class  IdealZDCTrapezoid
 
class  IdealZPrism
 

Functions

static GlobalPoint etaPhiPerp (float eta, float phi, float perp)
 
static GlobalPoint etaPhiPerp (float eta, float phi, float perp)
 
static GlobalPoint etaPhiR (float eta, float phi, float rad)
 
static GlobalPoint etaPhiZ (float eta, float phi, float z)
 
static GlobalPoint etaPhiZ (float eta, float phi, float z)
 
std::ostream & operator<< (std::ostream &s, const IdealZDCTrapezoid &cell)
 
std::ostream & operator<< (std::ostream &s, const IdealZPrism &cell)
 
std::ostream & operator<< (std::ostream &s, const IdealObliquePrism &cell)
 
std::ostream & operator<< (std::ostream &s, const IdealCastorTrapezoid &cell)
 

Function Documentation

static GlobalPoint calogeom::etaPhiPerp ( float  eta,
float  phi,
float  perp 
)
static

Definition at line 15 of file IdealObliquePrism.cc.

Referenced by calogeom::IdealObliquePrism::getCorners(), calogeom::IdealZPrism::localCorners(), and calogeom::IdealObliquePrism::localCorners().

16  {
17  return GlobalPoint( perp*cosf(phi) ,
18  perp*sinf(phi) ,
19  perp*sinhf(eta) ) ;
20  }
T perp() const
Magnitude of transverse component.
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
T eta() const
Definition: DDAxes.h:10
static GlobalPoint calogeom::etaPhiPerp ( float  eta,
float  phi,
float  perp 
)
static

Definition at line 15 of file IdealZPrism.cc.

18  {
19  return GlobalPoint( perp*cosf( phi ) ,
20  perp*sinf( phi ) ,
21  perp*sinhf( eta ) );
22  }
T perp() const
Magnitude of transverse component.
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
T eta() const
Definition: DDAxes.h:10
static GlobalPoint calogeom::etaPhiR ( float  eta,
float  phi,
float  rad 
)
static

Definition at line 6 of file IdealZPrism.cc.

Referenced by calogeom::IdealZPrism::localCorners().

9  {
10  return GlobalPoint( rad*cosf( phi )/coshf( eta ) ,
11  rad*sinf( phi )/coshf( eta ) ,
12  rad*tanhf( eta ) ) ;
13  }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
T eta() const
Definition: DDAxes.h:10
static GlobalPoint calogeom::etaPhiZ ( float  eta,
float  phi,
float  z 
)
static

Definition at line 22 of file IdealObliquePrism.cc.

Referenced by calogeom::IdealZPrism::getCorners(), calogeom::IdealObliquePrism::getCorners(), calogeom::IdealZPrism::localCorners(), and calogeom::IdealObliquePrism::localCorners().

23  {
24  return GlobalPoint( z*cosf(phi)/sinhf(eta) ,
25  z*sinf(phi)/sinhf(eta) ,
26  z ) ;
27  }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
T eta() const
Definition: DDAxes.h:10
Definition: DDAxes.h:10
static GlobalPoint calogeom::etaPhiZ ( float  eta,
float  phi,
float  z 
)
static

Definition at line 24 of file IdealZPrism.cc.

27  {
28  return GlobalPoint( z*cosf( phi )/sinhf( eta ) ,
29  z*sinf( phi )/sinhf( eta ) ,
30  z ) ;
31  }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
T eta() const
Definition: DDAxes.h:10
Definition: DDAxes.h:10
std::ostream & calogeom::operator<< ( std::ostream &  s,
const IdealZDCTrapezoid &  cell 
)

Definition at line 68 of file IdealZDCTrapezoid.cc.

References calogeom::IdealZDCTrapezoid::an(), calogeom::IdealZDCTrapezoid::dx(), calogeom::IdealZDCTrapezoid::dy(), calogeom::IdealZDCTrapezoid::dz(), CaloCellGeometry::getPosition(), M_PI, and asciidump::s.

69  {
70  s << "Center: " << cell.getPosition() << std::endl ;
71  s << "TiltAngle = " << cell.an()*180./M_PI << " deg, dx = "
72  << cell.dx()
73  << ", dy = " << cell.dy() << ", dz = " << cell.dz() << std::endl ;
74  return s;
75  }
#define M_PI
Definition: BFit3D.cc:3
string s
Definition: asciidump.py:422
std::ostream & calogeom::operator<< ( std::ostream &  s,
const IdealZPrism &  cell 
)

Definition at line 101 of file IdealZPrism.cc.

References calogeom::IdealZPrism::dEta(), calogeom::IdealZPrism::dPhi(), calogeom::IdealZPrism::dz(), CaloCellGeometry::getPosition(), and asciidump::s.

102  {
103  s << "Center: " << cell.getPosition() << std::endl ;
104  s << "dEta = " << cell.dEta() << ", dPhi = " << cell.dPhi() << ", dz = " << cell.dz() << std::endl ;
105  return s;
106  }
string s
Definition: asciidump.py:422
std::ostream & calogeom::operator<< ( std::ostream &  s,
const IdealObliquePrism &  cell 
)

Definition at line 136 of file IdealObliquePrism.cc.

References calogeom::IdealObliquePrism::dEta(), calogeom::IdealObliquePrism::dPhi(), calogeom::IdealObliquePrism::dz(), CaloCellGeometry::getPosition(), and asciidump::s.

137  {
138  s << "Center: " << cell.getPosition() << std::endl ;
139  s << "dEta = " << cell.dEta() << ", dPhi = " << cell.dPhi() << ", dz = " << cell.dz() << std::endl ;
140  return s;
141 }
string s
Definition: asciidump.py:422
std::ostream & calogeom::operator<< ( std::ostream &  s,
const IdealCastorTrapezoid &  cell 
)

Definition at line 80 of file IdealCastorTrapezoid.cc.

References CaloCellGeometry::getPosition(), and asciidump::s.

81  {
82  s << "Center: " << cell.getPosition() << std::endl ;
83 // s << ", dx = " << cell.dx()
84 //<< "TiltAngle = " << cell.an()
85 // << ", dy = " << cell.dy() << ", dz = " << cell.dz() << std::endl ;
86  return s;
87  }
string s
Definition: asciidump.py:422