CMS 3D CMS Logo

CrystalNeighbour.h
Go to the documentation of this file.
1 #ifndef FastSimulation_CaloGeometryTools_CrystalNeighbour_h
2 #define FastSimulation_CaloGeometryTools_CrystalNeighbour_h
3 
11 public:
12  CrystalNeighbour(unsigned number = 999, int status = -2) : number_(number), status_(status) { ; }
15  inline unsigned number() const { return number_; };
17  inline int status() const { return status_; };
19  inline void setStatus(int status) { status_ = status; };
21  inline void setNumber(unsigned n) { number_ = n; };
22 
25  inline void setToBeGlued(bool proj) { tobeprojected_ = proj; };
26 
28  inline bool toBeGlued() const { return tobeprojected_; };
29 
30 private:
31  unsigned number_;
32  int status_;
34 };
35 #endif
unsigned number() const
Number of the crystal. This has nothing to do with the UniqueID.
void setNumber(unsigned n)
set the number
int status() const
get the status 0 : gap; 1: crack ; -1 : does not exist ; -2 not calculated yet
void setStatus(int status)
set the status
void setToBeGlued(bool proj)
CrystalNeighbour(unsigned number=999, int status=-2)
bool toBeGlued() const
do the edge in this direction should be glued ?