CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
MEChannel Class Reference

#include <MEChannel.h>

Public Member Functions

MEChanneld (unsigned ii)
 
MEChannelgetAncestor (int ig)
 
MEChannelgetChannel (int ix, int iy)
 
MEChannelgetChannel (int ig, int ix, int iy)
 
MEChannelgetDaughter (int ix, int iy, int ig)
 
MEChannelgetDescendant (int ig, int ii)
 
MEChannelgetFirstDescendant (int ig)
 
bool getListOfAncestors (std::vector< MEChannel * > &)
 
bool getListOfChannels (std::vector< MEChannel * > &)
 
bool getListOfDescendants (std::vector< MEChannel * > &)
 
bool getListOfDescendants (int ig, std::vector< MEChannel * > &)
 
int id () const
 
int ig () const
 
int ix () const
 
int iy () const
 
MEChannelm ()
 
 MEChannel (int ix, int iy, int ii, MEChannel *mother)
 
unsigned n () const
 
TString oneLine (int ig)
 
TString oneLine ()
 
TString oneWord (int ig)
 
TString oneWord ()
 
void print (std::ostream &o, bool recursif=false) const
 
virtual ~MEChannel ()
 

Private Member Functions

MEChanneladdDaughter (int ix, int iy, int ii)
 

Private Attributes

std::vector< MEChannel * > _d
 
std::vector< int > _id
 
int _ig
 
int _ix
 
int _iy
 
MEChannel_m
 

Detailed Description

Definition at line 12 of file MEChannel.h.

Constructor & Destructor Documentation

MEChannel::MEChannel ( int  ix,
int  iy,
int  ii,
MEChannel mother 
)

Definition at line 12 of file MEChannel.cc.

MEChannel::~MEChannel ( )
virtual

Definition at line 33 of file MEChannel.cc.

Member Function Documentation

MEChannel * MEChannel::addDaughter ( int  ix,
int  iy,
int  ii 
)
private

Definition at line 55 of file MEChannel.cc.

MEChannel* MEChannel::d ( unsigned  ii)
inline

Definition at line 25 of file MEChannel.h.

References _d, cuy::ii, and n().

25 { if( ii>=n() ) return 0; return _d[ii]; }
unsigned n() const
Definition: MEChannel.h:26
int ii
Definition: cuy.py:588
std::vector< MEChannel * > _d
Definition: MEChannel.h:49
MEChannel * MEChannel::getAncestor ( int  ig)

Definition at line 97 of file MEChannel.cc.

MEChannel * MEChannel::getChannel ( int  ix,
int  iy 
)

Definition at line 172 of file MEChannel.cc.

MEChannel * MEChannel::getChannel ( int  ig,
int  ix,
int  iy 
)

Definition at line 159 of file MEChannel.cc.

MEChannel * MEChannel::getDaughter ( int  ix,
int  iy,
int  ig 
)

Definition at line 42 of file MEChannel.cc.

MEChannel * MEChannel::getDescendant ( int  ig,
int  ii 
)

Definition at line 135 of file MEChannel.cc.

MEChannel * MEChannel::getFirstDescendant ( int  ig)

Definition at line 150 of file MEChannel.cc.

bool MEChannel::getListOfAncestors ( std::vector< MEChannel * > &  vec)

Definition at line 85 of file MEChannel.cc.

bool MEChannel::getListOfChannels ( std::vector< MEChannel * > &  vec)

Definition at line 69 of file MEChannel.cc.

bool MEChannel::getListOfDescendants ( std::vector< MEChannel * > &  vec)

Definition at line 112 of file MEChannel.cc.

bool MEChannel::getListOfDescendants ( int  ig,
std::vector< MEChannel * > &  vec 
)

Definition at line 123 of file MEChannel.cc.

int MEChannel::id ( ) const

Definition at line 63 of file MEChannel.cc.

int MEChannel::ig ( ) const
inline

Definition at line 27 of file MEChannel.h.

References _ig.

27 { return _ig; }
int _ig
Definition: MEChannel.h:52
int MEChannel::ix ( ) const
inline

Definition at line 20 of file MEChannel.h.

References _ix.

20 { return _ix; }
int _ix
Definition: MEChannel.h:55
int MEChannel::iy ( ) const
inline

Definition at line 21 of file MEChannel.h.

References _iy.

21 { return _iy; }
int _iy
Definition: MEChannel.h:56
MEChannel* MEChannel::m ( )
inline

Definition at line 24 of file MEChannel.h.

References _m.

24 { return _m; }
MEChannel * _m
Definition: MEChannel.h:48
unsigned MEChannel::n ( ) const
inline

Definition at line 26 of file MEChannel.h.

References _d.

Referenced by d().

26 { return _d.size(); }
std::vector< MEChannel * > _d
Definition: MEChannel.h:49
TString MEChannel::oneLine ( int  ig)

Definition at line 219 of file MEChannel.cc.

TString MEChannel::oneLine ( )
inline

Definition at line 41 of file MEChannel.h.

References _ig, and oneLine().

Referenced by oneLine().

41 { return oneLine( _ig ); }
int _ig
Definition: MEChannel.h:52
TString oneLine()
Definition: MEChannel.h:41
TString MEChannel::oneWord ( int  ig)

Definition at line 295 of file MEChannel.cc.

TString MEChannel::oneWord ( )
inline

Definition at line 43 of file MEChannel.h.

References _ig, and oneWord().

Referenced by oneWord().

43 { return oneWord( _ig ); }
int _ig
Definition: MEChannel.h:52
TString oneWord()
Definition: MEChannel.h:43
void MEChannel::print ( std::ostream &  o,
bool  recursif = false 
) const

Definition at line 193 of file MEChannel.cc.

Member Data Documentation

std::vector< MEChannel* > MEChannel::_d
private

Definition at line 49 of file MEChannel.h.

Referenced by d(), and n().

std::vector< int > MEChannel::_id
private

Definition at line 59 of file MEChannel.h.

int MEChannel::_ig
private

Definition at line 52 of file MEChannel.h.

Referenced by ig(), oneLine(), and oneWord().

int MEChannel::_ix
private

Definition at line 55 of file MEChannel.h.

Referenced by ix().

int MEChannel::_iy
private

Definition at line 56 of file MEChannel.h.

Referenced by iy().

MEChannel* MEChannel::_m
private

Definition at line 48 of file MEChannel.h.

Referenced by m().