PandaRoot
PndEmcTwoCoordIndex Class Reference

stores crystal index coordinates (x,y) or (theta,phi) More...

#include <PndEmcTwoCoordIndex.h>

Inheritance diagram for PndEmcTwoCoordIndex:

Public Member Functions

 PndEmcTwoCoordIndex ()
 
 PndEmcTwoCoordIndex (long theXcoord, long theYcoord, long theIndex)
 
virtual ~PndEmcTwoCoordIndex ()
 
bool operator== (const PndEmcTwoCoordIndex &c) const
 
bool operator!= (const PndEmcTwoCoordIndex &c) const
 
bool operator< (const PndEmcTwoCoordIndex &) const
 
virtual const PndEmcCoordIndexSet GetNeighbours () const
 
long XCoord () const
 
long YCoord () const
 
long Index () const
 
virtual void AddToNeighbourList (PndEmcTwoCoordIndex *)
 
bool IsNeighbour (PndEmcTwoCoordIndex *_tci)
 

Protected Attributes

long fCoords [2]
 
long fIndex
 
PndEmcCoordIndexSet fNeighbours
 

Detailed Description

stores crystal index coordinates (x,y) or (theta,phi)

Definition at line 41 of file PndEmcTwoCoordIndex.h.

Constructor & Destructor Documentation

◆ PndEmcTwoCoordIndex() [1/2]

PndEmcTwoCoordIndex::PndEmcTwoCoordIndex ( )

◆ PndEmcTwoCoordIndex() [2/2]

PndEmcTwoCoordIndex::PndEmcTwoCoordIndex ( long  theXcoord,
long  theYcoord,
long  theIndex 
)

◆ ~PndEmcTwoCoordIndex()

virtual PndEmcTwoCoordIndex::~PndEmcTwoCoordIndex ( )
virtual

Member Function Documentation

◆ AddToNeighbourList()

virtual void PndEmcTwoCoordIndex::AddToNeighbourList ( PndEmcTwoCoordIndex )
virtual

Referenced by Index().

◆ GetNeighbours()

virtual const PndEmcCoordIndexSet PndEmcTwoCoordIndex::GetNeighbours ( ) const
virtual

Referenced by operator!=().

◆ Index()

long PndEmcTwoCoordIndex::Index ( ) const
inline

Definition at line 62 of file PndEmcTwoCoordIndex.h.

References AddToNeighbourList(), fIndex, and IsNeighbour().

62 { return fIndex; }

◆ IsNeighbour()

bool PndEmcTwoCoordIndex::IsNeighbour ( PndEmcTwoCoordIndex _tci)

Referenced by Index().

◆ operator!=()

bool PndEmcTwoCoordIndex::operator!= ( const PndEmcTwoCoordIndex c) const
inline

Definition at line 54 of file PndEmcTwoCoordIndex.h.

References fIndex, GetNeighbours(), and operator<().

54 { return fIndex != c.fIndex; }

◆ operator<()

bool PndEmcTwoCoordIndex::operator< ( const PndEmcTwoCoordIndex ) const

Referenced by operator!=().

◆ operator==()

bool PndEmcTwoCoordIndex::operator== ( const PndEmcTwoCoordIndex c) const
inline

Definition at line 53 of file PndEmcTwoCoordIndex.h.

References fIndex.

53 { return fIndex == c.fIndex; }

◆ XCoord()

long PndEmcTwoCoordIndex::XCoord ( ) const
inline

Definition at line 60 of file PndEmcTwoCoordIndex.h.

References fCoords.

60 { return fCoords[0]; }

◆ YCoord()

long PndEmcTwoCoordIndex::YCoord ( ) const
inline

Definition at line 61 of file PndEmcTwoCoordIndex.h.

References fCoords.

61 { return fCoords[1]; }

Member Data Documentation

◆ fCoords

long PndEmcTwoCoordIndex::fCoords[2]
protected

Definition at line 70 of file PndEmcTwoCoordIndex.h.

Referenced by XCoord(), and YCoord().

◆ fIndex

long PndEmcTwoCoordIndex::fIndex
protected

Definition at line 71 of file PndEmcTwoCoordIndex.h.

Referenced by Index(), operator!=(), and operator==().

◆ fNeighbours

PndEmcCoordIndexSet PndEmcTwoCoordIndex::fNeighbours
protected

Definition at line 72 of file PndEmcTwoCoordIndex.h.


The documentation for this class was generated from the following file: