CMS 3D CMS Logo

CaloDirectionOperations.h
Go to the documentation of this file.
1 #ifndef FastSimulation_CaloGeometryTools_CaloDirectionOperations_h
2 #define FastSimulation_CaloGeometryTools_CaloDirectionOperations_h
3 
4 
6 
7 // A set of "non standard" operations on CaloDirections
8 // This is FastSimulation specific !
9 // F. Beaudette 23/10/06
10 
12 {
13  public:
16 
17  // add directions in 2D
18  static CaloDirection add2d(const CaloDirection& dir1, const CaloDirection & dir2);
19 
21  static CaloDirection Side(unsigned i) ;
23  static unsigned Side(const CaloDirection& side);
24 
26  static unsigned neighbourDirection(const CaloDirection& side);
28  static CaloDirection neighbourDirection(unsigned i);
29 
30  // returns the opposite side
31  static CaloDirection oppositeSide(const CaloDirection& side) ;
32  static unsigned oppositeDirection(unsigned iside);
33 };
34 
35 
36 #endif
int i
Definition: DBlmapReader.cc:9
static CaloDirection add2d(const CaloDirection &dir1, const CaloDirection &dir2)
static CaloDirection oppositeSide(const CaloDirection &side)
static unsigned oppositeDirection(unsigned iside)
static unsigned neighbourDirection(const CaloDirection &side)
unsigned int -> Direction for the neighbours
static CaloDirection Side(unsigned i)
unsigned int -> Side conversion
CaloDirection
Codes the local directions in the cell lattice.
Definition: CaloDirection.h:9