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 
5 
6 // A set of "non standard" operations on CaloDirections
7 // This is FastSimulation specific !
8 // F. Beaudette 23/10/06
9 
11 public:
14 
15  // add directions in 2D
16  static CaloDirection add2d(const CaloDirection& dir1, const CaloDirection& dir2);
17 
19  static CaloDirection Side(unsigned i);
21  static unsigned Side(const CaloDirection& side);
22 
24  static unsigned neighbourDirection(const CaloDirection& side);
26  static CaloDirection neighbourDirection(unsigned i);
27 
28  // returns the opposite side
29  static CaloDirection oppositeSide(const CaloDirection& side);
30  static unsigned oppositeDirection(unsigned iside);
31 };
32 
33 #endif
CaloDirection
CaloDirection
Codes the local directions in the cell lattice.
Definition: CaloDirection.h:9
L1TDiffHarvesting_cfi.dir2
dir2
Definition: L1TDiffHarvesting_cfi.py:12
CaloDirection.h
mps_fire.i
i
Definition: mps_fire.py:355
CaloDirectionOperations::~CaloDirectionOperations
~CaloDirectionOperations()
Definition: CaloDirectionOperations.h:13
CaloDirectionOperations::add2d
static CaloDirection add2d(const CaloDirection &dir1, const CaloDirection &dir2)
Definition: CaloDirectionOperations.cc:3
CaloDirectionOperations::oppositeDirection
static unsigned oppositeDirection(unsigned iside)
Definition: CaloDirectionOperations.cc:126
CaloDirectionOperations::neighbourDirection
static unsigned neighbourDirection(const CaloDirection &side)
unsigned int -> Direction for the neighbours
Definition: CaloDirectionOperations.cc:19
CaloDirectionOperations::Side
static CaloDirection Side(unsigned i)
unsigned int -> Side conversion
Definition: CaloDirectionOperations.cc:13
L1TDiffHarvesting_cfi.dir1
dir1
Definition: L1TDiffHarvesting_cfi.py:10
CaloDirectionOperations
Definition: CaloDirectionOperations.h:10
CaloDirectionOperations::oppositeSide
static CaloDirection oppositeSide(const CaloDirection &side)
Definition: CaloDirectionOperations.cc:86
CaloDirectionOperations::CaloDirectionOperations
CaloDirectionOperations()
Definition: CaloDirectionOperations.h:12