ATLAS Offline Software
Functions
TriggerRPC Namespace Reference

Functions

unsigned short int moreThan2 (unsigned long int slword)
 
unsigned short int ROI1 (unsigned long int slword)
 
unsigned short int OVL1 (unsigned long int slword)
 
unsigned short int ROI2 (unsigned long int slword)
 
unsigned short int OVL2 (unsigned long int slword)
 
unsigned short int PT1 (unsigned long int slword)
 
unsigned short int PT2 (unsigned long int slword)
 
unsigned short moreThan1_1 (unsigned long int slword)
 
unsigned short moreThan1_2 (unsigned long int slword)
 
unsigned short BunchXID (unsigned long int slword)
 

Function Documentation

◆ BunchXID()

unsigned short int TriggerRPC::BunchXID ( unsigned long int  slword)

Definition at line 106 of file decodeSL.cxx.

106  {
107 //
108 // returns the Bunch Crossing identifier of this trigger
109 //
110  unsigned short int field=0x7;
111  unsigned short int posit=27;
112  return ((slword&((unsigned short int) field<<posit))>>posit);
113 }

◆ moreThan1_1()

unsigned short int TriggerRPC::moreThan1_1 ( unsigned long int  slword)

Definition at line 86 of file decodeSL.cxx.

86  {
87 //
88 // returns 1 if the are more than 1 candidates in ROI1
89 // returns 0 otherwise
90 //
91  unsigned short int field=0x1;
92  unsigned short int posit=25;
93  return ((slword&((unsigned short int) field<<posit))>>posit);
94 }

◆ moreThan1_2()

unsigned short int TriggerRPC::moreThan1_2 ( unsigned long int  slword)

Definition at line 96 of file decodeSL.cxx.

96  {
97 //
98 // returns 1 if the are more than 1 candidates in ROI2
99 // returns 0 otherwise
100 //
101  unsigned short int field=0x1;
102  unsigned short int posit=26;
103  return ((slword&((unsigned short int) field<<posit))>>posit);
104 }

◆ moreThan2()

unsigned short int TriggerRPC::moreThan2 ( unsigned long int  slword)

Definition at line 10 of file decodeSL.cxx.

10  {
11 //
12 // returns 1 if the rae more than 2 candidates in a sector
13 // returns 0 otherwise
14 //
15  unsigned short int field=0x1;
16  unsigned short int posit=0;
17  return ((slword&((unsigned short int) field<<posit))>>posit);
18 }

◆ OVL1()

unsigned short int TriggerRPC::OVL1 ( unsigned long int  slword)

Definition at line 29 of file decodeSL.cxx.

29  {
30 //
31 // returns the Overlap Flag of the highest pT ROI
32 //
33  unsigned short int field=0x3;
34  unsigned short int posit=8;
35  return ((slword&((unsigned short int) field<<posit))>>posit);
36 }

◆ OVL2()

unsigned short int TriggerRPC::OVL2 ( unsigned long int  slword)

Definition at line 47 of file decodeSL.cxx.

47  {
48 //
49 // returns the Overlap Flag of the second highest pT ROI
50 //
51  unsigned short int field=0x3;
52  unsigned short int posit=17;
53  return ((slword&((unsigned short int) field<<posit))>>posit);
54 }

◆ PT1()

unsigned short int TriggerRPC::PT1 ( unsigned long int  slword)

Definition at line 56 of file decodeSL.cxx.

56  {
57 //
58 // returns the highest pt code
59 //
60  unsigned short int field=0x7;
61  unsigned short int posit=19;
62  unsigned short int ptcode=((slword&((unsigned short int) field<<posit))>>posit);
63  if(!ptcode) {
64  return 0;
65  } else {
66  if(ptcode==7) ptcode=0;
67  }
68  return ptcode;
69 }

◆ PT2()

unsigned short int TriggerRPC::PT2 ( unsigned long int  slword)

Definition at line 71 of file decodeSL.cxx.

71  {
72 //
73 // returns the second highest pt code
74 //
75  unsigned short int field=0x7;
76  unsigned short int posit=22;
77  unsigned short int ptcode=((slword&((unsigned short int) field<<posit))>>posit);
78  if(!ptcode) {
79  return 0;
80  } else {
81  if(ptcode==7) ptcode=0;
82  }
83  return ptcode;
84 }

◆ ROI1()

unsigned short int TriggerRPC::ROI1 ( unsigned long int  slword)

Definition at line 20 of file decodeSL.cxx.

20  {
21 //
22 // returns the ROI identifier of the highest pT ROI
23 //
24  unsigned short int field=0x1f;
25  unsigned short int posit=1;
26  return ((slword&((unsigned short int) field<<posit))>>posit);
27 }

◆ ROI2()

unsigned short int TriggerRPC::ROI2 ( unsigned long int  slword)

Definition at line 38 of file decodeSL.cxx.

38  {
39 //
40 // returns the ROI identifier of the second highest pT ROI
41 //
42  unsigned short int field=0x1f;
43  unsigned short int posit=10;
44  return ((slword&((unsigned short int) field<<posit))>>posit);
45 }
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48