Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

CalDetGeo Class Reference

#include <CalDetGeo.h>

Inheritance diagram for CalDetGeo::

CalMatGeo CalAxis CalGeo List of all members.

Public Methods

 CalDetGeo (int ilayer, axis a, int id, Point p, Point s)
 CalDetGeo (int ilayer, axis a, int id)
 ~CalDetGeo ()
void setName (std::string n)
int layer () const
axis getAxis () const
int id () const
std::string name () const
void draw (gui::DisplayRep &v) const

Static Public Methods

CalDetGeo::axis makeAxis (int i)
int makeAxis (CalDetGeo::axis a)

Private Attributes

std::string m_name
int m_layer
axis m_axis
int m_id

Constructor & Destructor Documentation

CalDetGeo::CalDetGeo int    ilayer,
axis    a,
int    id,
Point    p,
Point    s
[inline]
 

Definition at line 65 of file CalDetGeo.h.

References CalAxis::axis, id(), m_axis, m_id, and m_layer.

00065                                                                :m_layer(ilayer),
00066                 m_axis(a), m_id(id), CalMatGeo(p,s) {}

CalDetGeo::CalDetGeo int    ilayer,
axis    a,
int    id
[inline]
 

Definition at line 67 of file CalDetGeo.h.

References CalAxis::axis, id(), m_axis, m_id, and m_layer.

00067                                              : m_layer(ilayer),
00068                 m_axis(a), m_id(id), CalMatGeo() {}

CalDetGeo::~CalDetGeo   [inline]
 

Definition at line 69 of file CalDetGeo.h.

00069 {};


Member Function Documentation

void CalDetGeo::draw gui::DisplayRep &    v const
 

Definition at line 38 of file CalDetGeo.cpp.

00040 {
00041         v.setColor("red");
00042 
00043         double sx = size().x();
00044         double sy = size().y();
00045         double sz = size().z();
00046         double x0 = position().x();
00047         double y0 = position().y();
00048         double z0 = position().z();
00049         int i =0;
00050         for (i = 0; i<2; i++) {
00051                 double fz = ((i==0)?-1:1);
00052                 v.moveTo(Point(x0-sx,y0-sy,z0+fz*sz));
00053                 v.lineTo(Point(x0+sx,y0-sy,z0+fz*sz));
00054                 v.lineTo(Point(x0+sx,y0+sy,z0+fz*sz));
00055                 v.lineTo(Point(x0-sx,y0+sy,z0+fz*sz));
00056                 v.lineTo(Point(x0-sx,y0-sy,z0+fz*sz));
00057         }
00058         for (i = 0; i<4; i++) {
00059                 double fx = ( i < 2?-1:1);
00060                 double fy = ( (i == 0 || i == 2)?-1:1);
00061                 v.moveTo(Point(x0+fx*sx,y0+fy*sy,z0-sz));
00062                 v.lineTo(Point(x0+fx*sx,y0+fy*sy,z0+sz));
00063         }
00064 }

axis CalDetGeo::getAxis   const [inline]
 

Definition at line 75 of file CalDetGeo.h.

References CalAxis::axis, and m_axis.

00075 {return m_axis;}

int CalDetGeo::id   const [inline]
 

Definition at line 76 of file CalDetGeo.h.

References m_id.

Referenced by CalDetGeo().

00076 {return m_id;}

int CalDetGeo::layer   const [inline]
 

Definition at line 74 of file CalDetGeo.h.

References m_layer.

00074 {return m_layer;}

int CalDetGeo::makeAxis CalDetGeo::axis    a [inline, static]
 

Definition at line 81 of file CalDetGeo.h.

References CalAxis::axis.

00081 {return (int) a;}

CalDetGeo::axis CalDetGeo::makeAxis int    i [inline, static]
 

Definition at line 80 of file CalDetGeo.h.

References CalAxis::axis, CalAxis::X, and CalAxis::Y.

Referenced by CalLogID::CalLogID(), CalIRFAlg::execute(), CalRecLogs::ini(), CalCalibLogs::readGain(), CalCalibLogs::readIntlin(), CalPedCalib::readPedestal(), CalCalibLogs::readRail(), and CalCalibLogs::readSlope().

00080 {return (i == 0? CalDetGeo::X : CalDetGeo::Y);}

std::string CalDetGeo::name   const [inline]
 

Definition at line 77 of file CalDetGeo.h.

References m_name.

00077 {return m_name;}

void CalDetGeo::setName std::string    n [inline]
 

Definition at line 70 of file CalDetGeo.h.

References m_name.

00070 {m_name = n;}


Member Data Documentation

axis CalDetGeo::m_axis [private]
 

Definition at line 89 of file CalDetGeo.h.

Referenced by CalDetGeo(), and getAxis().

int CalDetGeo::m_id [private]
 

Definition at line 90 of file CalDetGeo.h.

Referenced by CalDetGeo(), and id().

int CalDetGeo::m_layer [private]
 

Definition at line 88 of file CalDetGeo.h.

Referenced by CalDetGeo(), and layer().

std::string CalDetGeo::m_name [private]
 

Definition at line 87 of file CalDetGeo.h.

Referenced by name(), and setName().


The documentation for this class was generated from the following files:
Generated on Thu Nov 29 16:38:53 2001 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001