ATLAS Offline Software
Classes | Functions
ZRObject.h File Reference
#include "RegSelLUT/RegSelRoI.h"
#include <iostream>
Include dependency graph for ZRObject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ZRObject
 

Functions

double calceta (double r, double z)
 
std::ostream & operator<< (std::ostream &s, const ZRObject &zr)
 

Function Documentation

◆ calceta()

double calceta ( double  r,
double  z 
)
inline

Definition at line 33 of file ZRObject.h.

33  {
34  if ( z==0 ) return 0;
35  double theta = std::atan(r/z);
36  if ( theta<0 ) theta += M_PI;
37  return -std::log( std::tan(theta*0.5) );
38 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const ZRObject zr 
)
inline

Definition at line 127 of file ZRObject.h.

127  {
128  s << "[ r=" << zr.rMin() << " - " << zr.rMax()
129  << " z=" << zr.zMin() << " - " << zr.zMax();
130  if ( zr.zMin()!=zr.z2Min() || zr.zMax()!=zr.z2Max() ) s << " z2=" << zr.z2Min() << " - " << zr.z2Max();
131  s << " ]";
132  return s;
133 }
beamspotman.r
def r
Definition: beamspotman.py:676
ZRObject::z2Min
double z2Min() const
Definition: ZRObject.h:86
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:71
M_PI
#define M_PI
Definition: ActiveFraction.h:11
ZRObject::rMin
double rMin() const
Definition: ZRObject.h:80
ZRObject::rMax
double rMax() const
Definition: ZRObject.h:81
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
ZRObject::zMin
double zMin() const
Definition: ZRObject.h:83
z
#define z
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
ZRObject::z2Max
double z2Max() const
Definition: ZRObject.h:87
ZRObject::zMax
double zMax() const
Definition: ZRObject.h:84
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20