ATLAS Offline Software
Loading...
Searching...
No Matches
CrateDefs Class Reference

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

#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.

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()

unsigned int CrateDefs::cmmSlotL ( )
inlinestatic

Definition at line 14 of file CrateDefs.h.

14{ return 3; }

◆ cmmSlotR()

unsigned int CrateDefs::cmmSlotR ( )
inlinestatic

Definition at line 15 of file CrateDefs.h.

15{ return 20; }

◆ maxAtcaFexSlot()

unsigned int CrateDefs::maxAtcaFexSlot ( )
inlinestatic

Definition at line 45 of file CrateDefs.h.

45{ return numAtcaSlots(); }
static unsigned int numAtcaSlots()
Definition CrateDefs.h:43

◆ maxCpCrateLogId()

unsigned int CrateDefs::maxCpCrateLogId ( )
inlinestatic

Definition at line 30 of file CrateDefs.h.

30{ return 11; }

◆ maxCpmJemSlot()

unsigned int CrateDefs::maxCpmJemSlot ( )
inlinestatic

Definition at line 17 of file CrateDefs.h.

17{ return 19; }

◆ maxCpmLogId()

unsigned int CrateDefs::maxCpmLogId ( )
inlinestatic

Definition at line 21 of file CrateDefs.h.

21{ return maxCpmSlot() - minCpmJemSlot(); }
static unsigned int minCpmJemSlot()
Definition CrateDefs.h:16
static unsigned int maxCpmSlot()
Definition CrateDefs.h:19

◆ maxCpmSlot()

unsigned int CrateDefs::maxCpmSlot ( )
inlinestatic

Definition at line 19 of file CrateDefs.h.

19{ return 18; }

◆ maxJemLogId()

unsigned int CrateDefs::maxJemLogId ( )
inlinestatic

Definition at line 23 of file CrateDefs.h.

23{ return 15; }

◆ maxJemLQuadSlot()

unsigned int CrateDefs::maxJemLQuadSlot ( )
inlinestatic

Definition at line 25 of file CrateDefs.h.

25{ return 11; }

◆ maxJepCrateLogId()

unsigned int CrateDefs::maxJepCrateLogId ( )
inlinestatic

Definition at line 32 of file CrateDefs.h.

32{ return 13; }

◆ maxPprCrateLogId()

unsigned int CrateDefs::maxPprCrateLogId ( )
inlinestatic

Definition at line 28 of file CrateDefs.h.

28{ return 7; }

◆ maxRodCrateLogId()

unsigned int CrateDefs::maxRodCrateLogId ( )
inlinestatic

Definition at line 34 of file CrateDefs.h.

34{ return 15; }

◆ minAtcaFexSlot()

unsigned int CrateDefs::minAtcaFexSlot ( )
inlinestatic

Definition at line 44 of file CrateDefs.h.

44{ return numAtcaHubSlots() + 1; }
static unsigned int numAtcaHubSlots()
Definition CrateDefs.h:41

◆ minCpCrateLogId()

unsigned int CrateDefs::minCpCrateLogId ( )
inlinestatic

Definition at line 29 of file CrateDefs.h.

29{ return 8; }

◆ minCpmJemSlot()

unsigned int CrateDefs::minCpmJemSlot ( )
inlinestatic

Definition at line 16 of file CrateDefs.h.

16{ return 4; }

◆ minCpmLogId()

unsigned int CrateDefs::minCpmLogId ( )
inlinestatic

Definition at line 20 of file CrateDefs.h.

20{ return minCpmSlot() - minCpmJemSlot(); }
static unsigned int minCpmSlot()
Definition CrateDefs.h:18

◆ minCpmSlot()

unsigned int CrateDefs::minCpmSlot ( )
inlinestatic

Definition at line 18 of file CrateDefs.h.

18{ return 5; }

◆ minJemLogId()

unsigned int CrateDefs::minJemLogId ( )
inlinestatic

Definition at line 22 of file CrateDefs.h.

22{ return 0; }

◆ minJemRQuadSlot()

unsigned int CrateDefs::minJemRQuadSlot ( )
inlinestatic

Definition at line 26 of file CrateDefs.h.

26{ return 12; }

◆ minJepCrateLogId()

unsigned int CrateDefs::minJepCrateLogId ( )
inlinestatic

Definition at line 31 of file CrateDefs.h.

31{ return 12; }

◆ minPprCrateLogId()

unsigned int CrateDefs::minPprCrateLogId ( )
inlinestatic

Definition at line 27 of file CrateDefs.h.

27{ return 0; }

◆ minRodCrateLogId()

unsigned int CrateDefs::minRodCrateLogId ( )
inlinestatic

Definition at line 33 of file CrateDefs.h.

33{ return 14; }

◆ numAtcaFexSlots()

unsigned int CrateDefs::numAtcaFexSlots ( )
inlinestatic

Definition at line 42 of file CrateDefs.h.

42{ return 12; }

◆ numAtcaHubSlots()

unsigned int CrateDefs::numAtcaHubSlots ( )
inlinestatic

Definition at line 41 of file CrateDefs.h.

41{ return 2; }

◆ numAtcaSlots()

unsigned int CrateDefs::numAtcaSlots ( )
inlinestatic

Definition at line 43 of file CrateDefs.h.

43{ return numAtcaHubSlots() + numAtcaFexSlots(); }
static unsigned int numAtcaFexSlots()
Definition CrateDefs.h:42

◆ numCpCrates()

unsigned int CrateDefs::numCpCrates ( )
inlinestatic

Definition at line 37 of file CrateDefs.h.

37{ return maxCpCrateLogId() - minCpCrateLogId() + 1; }
static unsigned int maxCpCrateLogId()
Definition CrateDefs.h:30
static unsigned int minCpCrateLogId()
Definition CrateDefs.h:29

◆ numJepCrates()

unsigned int CrateDefs::numJepCrates ( )
inlinestatic

Definition at line 38 of file CrateDefs.h.

38{ return maxJepCrateLogId() - minJepCrateLogId() + 1; }
static unsigned int maxJepCrateLogId()
Definition CrateDefs.h:32
static unsigned int minJepCrateLogId()
Definition CrateDefs.h:31

◆ tcmSlot()

unsigned int CrateDefs::tcmSlot ( )
inlinestatic

Definition at line 13 of file CrateDefs.h.

13{ return 21; }

◆ topoCrateLogId()

unsigned int CrateDefs::topoCrateLogId ( )
inlinestatic

Definition at line 36 of file CrateDefs.h.

36{ return 17; }

◆ ttcCrateLogId()

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: