CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CrystalNeighbour Class Reference

#include <CrystalNeighbour.h>

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. More...
 
void setNumber (unsigned n)
 set the number More...
 
void setStatus (int status)
 set the status More...
 
void setToBeGlued (bool proj)
 
int status () const
 get the status 0 : gap; 1: crack ; -1 : does not exist ; -2 not calculated yet More...
 
bool toBeGlued () const
 do the edge in this direction should be glued ? More...
 
 ~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::CrystalNeighbour ( unsigned  number = 999,
int  status = -2 
)
inline

Definition at line 12 of file CrystalNeighbour.h.

12 : number_(number), status_(status) { ; }

◆ ~CrystalNeighbour()

CrystalNeighbour::~CrystalNeighbour ( )
inline

Definition at line 13 of file CrystalNeighbour.h.

13 { ; };

Member Function Documentation

◆ number()

unsigned CrystalNeighbour::number ( ) const
inline

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

Definition at line 15 of file CrystalNeighbour.h.

15 { return number_; };

References number_.

◆ setNumber()

void CrystalNeighbour::setNumber ( unsigned  n)
inline

set the number

Definition at line 21 of file CrystalNeighbour.h.

21 { number_ = n; };

References dqmiodumpmetadata::n, and number_.

◆ setStatus()

void CrystalNeighbour::setStatus ( int  status)
inline

set the status

Definition at line 19 of file CrystalNeighbour.h.

19 { status_ = status; };

References status(), and status_.

◆ setToBeGlued()

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 25 of file CrystalNeighbour.h.

25 { tobeprojected_ = proj; };

References amptDefault_cfi::proj, and tobeprojected_.

◆ status()

int CrystalNeighbour::status ( void  ) const
inline

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

Definition at line 17 of file CrystalNeighbour.h.

17 { return status_; };

References status_.

Referenced by setStatus().

◆ toBeGlued()

bool CrystalNeighbour::toBeGlued ( ) const
inline

do the edge in this direction should be glued ?

Definition at line 28 of file CrystalNeighbour.h.

28 { return tobeprojected_; };

References tobeprojected_.

Member Data Documentation

◆ number_

unsigned CrystalNeighbour::number_
private

Definition at line 28 of file CrystalNeighbour.h.

Referenced by number(), and setNumber().

◆ status_

int CrystalNeighbour::status_
private

Definition at line 32 of file CrystalNeighbour.h.

Referenced by setStatus(), and status().

◆ tobeprojected_

bool CrystalNeighbour::tobeprojected_
private

Definition at line 33 of file CrystalNeighbour.h.

Referenced by setToBeGlued(), and toBeGlued().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CrystalNeighbour::status_
int status_
Definition: CrystalNeighbour.h:32
CrystalNeighbour::tobeprojected_
bool tobeprojected_
Definition: CrystalNeighbour.h:33
amptDefault_cfi.proj
proj
Definition: amptDefault_cfi.py:13
CrystalNeighbour::number_
unsigned number_
Definition: CrystalNeighbour.h:28
CrystalNeighbour::number
unsigned number() const
Number of the crystal. This has nothing to do with the UniqueID.
Definition: CrystalNeighbour.h:15
CrystalNeighbour::status
int status() const
get the status 0 : gap; 1: crack ; -1 : does not exist ; -2 not calculated yet
Definition: CrystalNeighbour.h:17