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

CalRecLogs Class Reference

#include <CalRecLogs.h>

List of all members.

Public Methods

 CalRecLogs (int nmodX=1, int nmodY=1, int nlogs=10, int nlayers=4, int iviews=2)
 ~CalRecLogs ()
virtual const CLID & clID () const
void add (CalRecLog *log)
int num () const
CalRecLogLog (int i) const
CalRecLoggetLogID (int logID) const
virtual void clear ()
virtual void make ()
void writeOut () const
void update (gui::DisplayRep &v)
void setCalDisplay (CalDisplay *calDisp)

Static Public Methods

const CLID & classID ()

Private Methods

virtual void ini (int nmodX, int nmodY, int nlogs, int nlayers, int iviews)
void draw (gui::DisplayRep &v) const

Private Attributes

std::vector< CalRecLog *> m_List
CalDisplaym_calDisp


Constructor & Destructor Documentation

CalRecLogs::CalRecLogs int    nmodX = 1,
int    nmodY = 1,
int    nlogs = 10,
int    nlayers = 4,
int    iviews = 2
[inline]
 

Definition at line 82 of file CalRecLogs.h.

References ini(), and m_calDisp.

00083     {ini(nmodX,nmodY,nlogs,nlayers,iviews); m_calDisp=0;}

CalRecLogs::~CalRecLogs  
 

Definition at line 104 of file CalRecLogs.cpp.

00106 {
00107     if(m_calDisp) m_calDisp->clearLogsDisp();
00108         for (int ilog = 0; ilog < m_List.size(); ilog++) delete m_List[ilog];
00109 }


Member Function Documentation

void CalRecLogs::add CalRecLog   log [inline]
 

Definition at line 94 of file CalRecLogs.h.

References m_List.

00094 {m_List.push_back(log);}

const CLID& CalRecLogs::classID   [inline, static]
 

Definition at line 88 of file CalRecLogs.h.

References CLID_CalRecLogs.

Referenced by clID().

00088 {return CLID_CalRecLogs;}

void CalRecLogs::clear   [virtual]
 

Definition at line 111 of file CalRecLogs.cpp.

00113 {
00114         for (int ilog = 0; ilog < m_List.size(); ilog++) {
00115                 m_List[ilog]->clear();
00116         }
00117 }

virtual const CLID& CalRecLogs::clID   const [inline, virtual]
 

Definition at line 89 of file CalRecLogs.h.

References classID().

00089 {return classID();}

void CalRecLogs::draw gui::DisplayRep &    v const [private]
 

Definition at line 144 of file CalRecLogs.cpp.

Referenced by update().

00146 {
00147         if (m_List.size() <=0) return;
00148         for (int i = 0; i < m_List.size();i++) m_List[i]->draw(v);
00149 }

CalRecLog * CalRecLogs::getLogID int    logID const
 

Definition at line 119 of file CalRecLogs.cpp.

Referenced by CalIRFAlg::execute().

00121 {
00122         int jlog = -1;
00123         for (int ilog = 0; ilog < m_List.size(); ilog++) {
00124                 if (m_List[ilog]->logID() == logID) {
00125                         jlog  = ilog;
00126                         break;
00127                 }
00128         }
00129         return m_List[jlog];
00130 }

void CalRecLogs::ini int    nModX,
int    nModY,
int    nLogs,
int    nLayers,
int    nViews
[private, virtual]
 

Definition at line 85 of file CalRecLogs.cpp.

References CalAxis::axis, and CalDetGeo::makeAxis().

Referenced by CalRecLogs().

00087 {
00088         for (int iy = 1; iy <= nModY; iy++){            
00089                 for (int ix = 1; ix <= nModX; ix++){
00090                         idents::ModuleId mod(ix,iy);
00091                         
00092                         for (int ilayer = 0; ilayer < nLayers; ilayer++) {
00093                                 for (int v=0; v < nViews; v++){
00094                                         CalDetGeo::axis view = CalDetGeo::makeAxis(v);
00095                                         for (int ilog = 0; ilog < nLogs; ilog++) {
00096                                                 m_List.push_back(new CalRecLog(ilayer,view,ilog,mod));
00097                                         }
00098                                 }
00099                         }
00100                 }
00101         }
00102 }

CalRecLog* CalRecLogs::Log int    i const [inline]
 

Definition at line 98 of file CalRecLogs.h.

References m_List.

Referenced by CalNtupleAlg::execute(), and CalRep::update().

00098 {return m_List[i];}

virtual void CalRecLogs::make   [inline, virtual]
 

Definition at line 103 of file CalRecLogs.h.

00103 {};

int CalRecLogs::num   const [inline]
 

Definition at line 97 of file CalRecLogs.h.

References m_List.

Referenced by CalNtupleAlg::execute(), and CalRep::update().

00097 {return m_List.size();}

void CalRecLogs::setCalDisplay CalDisplay   calDisp [inline]
 

Definition at line 108 of file CalRecLogs.h.

References m_calDisp.

Referenced by CalDisplay::execute().

00108 {m_calDisp=calDisp;}

void CalRecLogs::update gui::DisplayRep &    v [inline]
 

Definition at line 106 of file CalRecLogs.h.

References draw().

00106 {draw(v);}

void CalRecLogs::writeOut   const
 

Definition at line 133 of file CalRecLogs.cpp.

00135 {
00136         if (m_List.size()<=0) return;
00137 
00138         std::cout << " CalRecLogs " << m_List.size() <<"\n";
00139         for (int i = 0; i < m_List.size();i++) {
00140                 m_List[i]->writeOut();
00141         }
00142 }


Member Data Documentation

CalDisplay* CalRecLogs::m_calDisp [private]
 

Definition at line 120 of file CalRecLogs.h.

Referenced by CalRecLogs(), and setCalDisplay().

std::vector<CalRecLog*> CalRecLogs::m_List [private]
 

Definition at line 118 of file CalRecLogs.h.

Referenced by add(), Log(), and num().


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