ATLAS Offline Software
Loading...
Searching...
No Matches
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}
#define M_PI
Scalar theta() const
theta method
#define z
int r
Definition globals.cxx:22

◆ 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}
double rMax() const
Definition ZRObject.h:81
double z2Min() const
Definition ZRObject.h:86
double rMin() const
Definition ZRObject.h:80
double zMin() const
Definition ZRObject.h:83
double zMax() const
Definition ZRObject.h:84
double z2Max() const
Definition ZRObject.h:87