CMS 3D CMS Logo

Public Member Functions | Private Attributes

CrystalNeighbour Class Reference

#include <CrystalNeighbour.h>

List of all members.

Public Member Functions

 CrystalNeighbour (unsigned number=999, int status=-2)
unsigned number () const
 Number of the crystal. This has nothing to do with the UniqueID.
void setNumber (unsigned n)
 set the number
void setStatus (int status)
 set the status
void setToBeGlued (bool proj)
int status () const
 get the status 0 : gap; 1: crack ; -1 : does not exist ; -2 not calculated yet
bool toBeGlued () const
 do the edge in this direction should be glued ?
 ~CrystalNeighbour ()

Private Attributes

unsigned number_
int status_
bool tobeprojected_

Detailed Description

Stores basic information on the neighbour. Used in EcalHitMaker

Author:
Florian Beaudette
Date:
: 08-Jun-2004 - 06-Oct-2006

Definition at line 10 of file CrystalNeighbour.h.


Constructor & Destructor Documentation

CrystalNeighbour::CrystalNeighbour ( unsigned  number = 999,
int  status = -2 
) [inline]

Definition at line 13 of file CrystalNeighbour.h.

CrystalNeighbour::~CrystalNeighbour ( ) [inline]

Definition at line 14 of file CrystalNeighbour.h.

{;};

Member Function Documentation

unsigned CrystalNeighbour::number ( ) const [inline]

Number of the crystal. This has nothing to do with the UniqueID.

Definition at line 16 of file CrystalNeighbour.h.

References number_.

{return number_;};
void CrystalNeighbour::setNumber ( unsigned  n) [inline]

set the number

Definition at line 22 of file CrystalNeighbour.h.

References n, and number_.

{number_=n;};
void CrystalNeighbour::setStatus ( int  status) [inline]

set the status

Definition at line 20 of file CrystalNeighbour.h.

References status(), and status_.

void CrystalNeighbour::setToBeGlued ( bool  proj) [inline]

set if this direction should be projected this means something only if the direction is N,E,W,S

Definition at line 26 of file CrystalNeighbour.h.

References trackerHitRTTI::proj, and tobeprojected_.

int CrystalNeighbour::status ( void  ) const [inline]

get the status 0 : gap; 1: crack ; -1 : does not exist ; -2 not calculated yet

Definition at line 18 of file CrystalNeighbour.h.

References status_.

Referenced by setStatus().

{ return status_;};
bool CrystalNeighbour::toBeGlued ( ) const [inline]

do the edge in this direction should be glued ?

Definition at line 29 of file CrystalNeighbour.h.

References tobeprojected_.

{ return tobeprojected_;};

Member Data Documentation

unsigned CrystalNeighbour::number_ [private]

Definition at line 29 of file CrystalNeighbour.h.

Referenced by number(), and setNumber().

Definition at line 33 of file CrystalNeighbour.h.

Referenced by setStatus(), and status().

Definition at line 34 of file CrystalNeighbour.h.

Referenced by setToBeGlued(), and toBeGlued().