ATLAS Offline Software
Static Public Member Functions | List of all members
CrateDefs Class Reference

#include <CrateDefs.h>

Collaboration diagram for CrateDefs:

Static Public Member Functions

static unsigned int tcmSlot ()
 
static unsigned int cmmSlotL ()
 
static unsigned int cmmSlotR ()
 
static unsigned int minCpmJemSlot ()
 
static unsigned int maxCpmJemSlot ()
 
static unsigned int minCpmSlot ()
 
static unsigned int maxCpmSlot ()
 
static unsigned int minCpmLogId ()
 
static unsigned int maxCpmLogId ()
 
static unsigned int minJemLogId ()
 
static unsigned int maxJemLogId ()
 
static unsigned int maxJemLQuadSlot ()
 
static unsigned int minJemRQuadSlot ()
 
static unsigned int minPprCrateLogId ()
 
static unsigned int maxPprCrateLogId ()
 
static unsigned int minCpCrateLogId ()
 
static unsigned int maxCpCrateLogId ()
 
static unsigned int minJepCrateLogId ()
 
static unsigned int maxJepCrateLogId ()
 
static unsigned int minRodCrateLogId ()
 
static unsigned int maxRodCrateLogId ()
 
static unsigned int ttcCrateLogId ()
 
static unsigned int topoCrateLogId ()
 
static unsigned int numCpCrates ()
 
static unsigned int numJepCrates ()
 
static unsigned int numAtcaHubSlots ()
 
static unsigned int numAtcaFexSlots ()
 
static unsigned int numAtcaSlots ()
 
static unsigned int minAtcaFexSlot ()
 
static unsigned int maxAtcaFexSlot ()
 
static unsigned int atcaLogicalSlot (int physicalSlot)
 Return the ATCA logical slot corresponding to a physical slot. More...
 

Detailed Description

This class provides static methods to return some hard coded constants for various L1Calo crates (legacy VME, phase1 ATCA).

Definition at line 11 of file CrateDefs.h.

Member Function Documentation

◆ atcaLogicalSlot()

unsigned int CrateDefs::atcaLogicalSlot ( int  physicalSlot)
static

Return the ATCA logical slot corresponding to a physical slot.

NB this is specific to the kind of crates used in ATLAS.

Returns
ATCA logical slot number

Definition at line 24 of file CrateDefs.cxx.

25 {
26  if (physicalSlot <= 7) {
27  return 1 + (7 - physicalSlot) * 2;
28  }
29  else {
30  return 1 + (physicalSlot - 8) * 2;
31  }
32 }

◆ cmmSlotL()

static unsigned int CrateDefs::cmmSlotL ( )
inlinestatic

Definition at line 14 of file CrateDefs.h.

14 { return 3; }

◆ cmmSlotR()

static unsigned int CrateDefs::cmmSlotR ( )
inlinestatic

Definition at line 15 of file CrateDefs.h.

15 { return 20; }

◆ maxAtcaFexSlot()

static unsigned int CrateDefs::maxAtcaFexSlot ( )
inlinestatic

Definition at line 45 of file CrateDefs.h.

45 { return numAtcaSlots(); }

◆ maxCpCrateLogId()

static unsigned int CrateDefs::maxCpCrateLogId ( )
inlinestatic

Definition at line 30 of file CrateDefs.h.

30 { return 11; }

◆ maxCpmJemSlot()

static unsigned int CrateDefs::maxCpmJemSlot ( )
inlinestatic

Definition at line 17 of file CrateDefs.h.

17 { return 19; }

◆ maxCpmLogId()

static unsigned int CrateDefs::maxCpmLogId ( )
inlinestatic

Definition at line 21 of file CrateDefs.h.

21 { return maxCpmSlot() - minCpmJemSlot(); }

◆ maxCpmSlot()

static unsigned int CrateDefs::maxCpmSlot ( )
inlinestatic

Definition at line 19 of file CrateDefs.h.

19 { return 18; }

◆ maxJemLogId()

static unsigned int CrateDefs::maxJemLogId ( )
inlinestatic

Definition at line 23 of file CrateDefs.h.

23 { return 15; }

◆ maxJemLQuadSlot()

static unsigned int CrateDefs::maxJemLQuadSlot ( )
inlinestatic

Definition at line 25 of file CrateDefs.h.

25 { return 11; }

◆ maxJepCrateLogId()

static unsigned int CrateDefs::maxJepCrateLogId ( )
inlinestatic

Definition at line 32 of file CrateDefs.h.

32 { return 13; }

◆ maxPprCrateLogId()

static unsigned int CrateDefs::maxPprCrateLogId ( )
inlinestatic

Definition at line 28 of file CrateDefs.h.

28 { return 7; }

◆ maxRodCrateLogId()

static unsigned int CrateDefs::maxRodCrateLogId ( )
inlinestatic

Definition at line 34 of file CrateDefs.h.

34 { return 15; }

◆ minAtcaFexSlot()

static unsigned int CrateDefs::minAtcaFexSlot ( )
inlinestatic

Definition at line 44 of file CrateDefs.h.

44 { return numAtcaHubSlots() + 1; }

◆ minCpCrateLogId()

static unsigned int CrateDefs::minCpCrateLogId ( )
inlinestatic

Definition at line 29 of file CrateDefs.h.

29 { return 8; }

◆ minCpmJemSlot()

static unsigned int CrateDefs::minCpmJemSlot ( )
inlinestatic

Definition at line 16 of file CrateDefs.h.

16 { return 4; }

◆ minCpmLogId()

static unsigned int CrateDefs::minCpmLogId ( )
inlinestatic

Definition at line 20 of file CrateDefs.h.

20 { return minCpmSlot() - minCpmJemSlot(); }

◆ minCpmSlot()

static unsigned int CrateDefs::minCpmSlot ( )
inlinestatic

Definition at line 18 of file CrateDefs.h.

18 { return 5; }

◆ minJemLogId()

static unsigned int CrateDefs::minJemLogId ( )
inlinestatic

Definition at line 22 of file CrateDefs.h.

22 { return 0; }

◆ minJemRQuadSlot()

static unsigned int CrateDefs::minJemRQuadSlot ( )
inlinestatic

Definition at line 26 of file CrateDefs.h.

26 { return 12; }

◆ minJepCrateLogId()

static unsigned int CrateDefs::minJepCrateLogId ( )
inlinestatic

Definition at line 31 of file CrateDefs.h.

31 { return 12; }

◆ minPprCrateLogId()

static unsigned int CrateDefs::minPprCrateLogId ( )
inlinestatic

Definition at line 27 of file CrateDefs.h.

27 { return 0; }

◆ minRodCrateLogId()

static unsigned int CrateDefs::minRodCrateLogId ( )
inlinestatic

Definition at line 33 of file CrateDefs.h.

33 { return 14; }

◆ numAtcaFexSlots()

static unsigned int CrateDefs::numAtcaFexSlots ( )
inlinestatic

Definition at line 42 of file CrateDefs.h.

42 { return 12; }

◆ numAtcaHubSlots()

static unsigned int CrateDefs::numAtcaHubSlots ( )
inlinestatic

Definition at line 41 of file CrateDefs.h.

41 { return 2; }

◆ numAtcaSlots()

static unsigned int CrateDefs::numAtcaSlots ( )
inlinestatic

Definition at line 43 of file CrateDefs.h.

43 { return numAtcaHubSlots() + numAtcaFexSlots(); }

◆ numCpCrates()

static unsigned int CrateDefs::numCpCrates ( )
inlinestatic

Definition at line 37 of file CrateDefs.h.

37 { return maxCpCrateLogId() - minCpCrateLogId() + 1; }

◆ numJepCrates()

static unsigned int CrateDefs::numJepCrates ( )
inlinestatic

Definition at line 38 of file CrateDefs.h.

38 { return maxJepCrateLogId() - minJepCrateLogId() + 1; }

◆ tcmSlot()

static unsigned int CrateDefs::tcmSlot ( )
inlinestatic

Definition at line 13 of file CrateDefs.h.

13 { return 21; }

◆ topoCrateLogId()

static unsigned int CrateDefs::topoCrateLogId ( )
inlinestatic

Definition at line 36 of file CrateDefs.h.

36 { return 17; }

◆ ttcCrateLogId()

static unsigned int CrateDefs::ttcCrateLogId ( )
inlinestatic

Definition at line 35 of file CrateDefs.h.

35 { return 16; }

The documentation for this class was generated from the following files:
CrateDefs::numAtcaSlots
static unsigned int numAtcaSlots()
Definition: CrateDefs.h:43
CrateDefs::maxCpmSlot
static unsigned int maxCpmSlot()
Definition: CrateDefs.h:19
CrateDefs::minCpmSlot
static unsigned int minCpmSlot()
Definition: CrateDefs.h:18
CrateDefs::maxJepCrateLogId
static unsigned int maxJepCrateLogId()
Definition: CrateDefs.h:32
CrateDefs::minCpmJemSlot
static unsigned int minCpmJemSlot()
Definition: CrateDefs.h:16
CrateDefs::minJepCrateLogId
static unsigned int minJepCrateLogId()
Definition: CrateDefs.h:31
CrateDefs::maxCpCrateLogId
static unsigned int maxCpCrateLogId()
Definition: CrateDefs.h:30
CrateDefs::numAtcaFexSlots
static unsigned int numAtcaFexSlots()
Definition: CrateDefs.h:42
CrateDefs::minCpCrateLogId
static unsigned int minCpCrateLogId()
Definition: CrateDefs.h:29
CrateDefs::numAtcaHubSlots
static unsigned int numAtcaHubSlots()
Definition: CrateDefs.h:41