CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void setNumber(unsigned n)
set the number
bool toBeGlued() const
do the edge in this direction should be glued ?
void setStatus(int status)
set the status
unsigned number() const
Number of the crystal. This has nothing to do with the UniqueID.
void setToBeGlued(bool proj)
int status() const
get the status 0 : gap; 1: crack ; -1 : does not exist ; -2 not calculated yet
CrystalNeighbour(unsigned number=999, int status=-2)