ATLAS Offline Software
CrateDefs.cxx
Go to the documentation of this file.
1 //==============================================================================
2 // CrateDefs.cxx
3 //==============================================================================
4 
5 #include <stdlib.h>
6 
7 #include "defsL1Calo/CrateDefs.h"
8 
15 //==============================================================================
16 // getSystemName
17 //==============================================================================
23 unsigned int
24 CrateDefs::atcaLogicalSlot(int physicalSlot)
25 {
26  if (physicalSlot <= 7) {
27  return 1 + (7 - physicalSlot) * 2;
28  }
29  else {
30  return 1 + (physicalSlot - 8) * 2;
31  }
32 }
CrateDefs.h
CrateDefs::atcaLogicalSlot
static unsigned int atcaLogicalSlot(int physicalSlot)
Return the ATCA logical slot corresponding to a physical slot.
Definition: CrateDefs.cxx:24