#include <AFP_LinkNumTranslator.h>
|
enum | LinkNums : unsigned int {
kNS0 =0,
kNS1 =1,
kNS2 =2,
kNS3 =3,
kFS0 =8,
kFS1 =9,
kFS2 =10,
kFS3 =11,
kFS5 =12,
kFS4 =13,
kUnknown =99
} |
|
|
Gaudi::Property< bool > | m_useDB {this, "UseDB", false, "whether to use COOL DB (true) or hard-coded values (false) to obtain link numbers"} |
|
Gaudi::Property< int > | m_forceRunConfig {this, "ForceRunConfig", 0, "force run configuration for link translation regardless of actual run number; set to 2 for Run-2, set to 3 for Run-3; set 0 to disable"} |
|
Definition at line 23 of file AFP_LinkNumTranslator.h.
◆ LinkNums
Enumerator |
---|
kNS0 | |
kNS1 | |
kNS2 | |
kNS3 | |
kFS0 | |
kFS1 | |
kFS2 | |
kFS3 | |
kFS5 | |
kFS4 | |
kUnknown | |
Definition at line 32 of file AFP_LinkNumTranslator.h.
32 :
unsigned int {
kNS0=0,
kNS1=1,
kNS2=2,
kNS3=3,
kFS0=8,
kFS1=9,
kFS2=10,
kFS3=11,
kFS5=12,
kFS4=13,
kUnknown=99};
◆ AFP_LinkNumTranslator()
AFP_LinkNumTranslator::AFP_LinkNumTranslator |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~AFP_LinkNumTranslator()
AFP_LinkNumTranslator::~AFP_LinkNumTranslator |
( |
| ) |
|
|
overridevirtual |
◆ finalize()
StatusCode AFP_LinkNumTranslator::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode AFP_LinkNumTranslator::initialize |
( |
| ) |
|
|
overridevirtual |
◆ translate()
unsigned int AFP_LinkNumTranslator::translate |
( |
unsigned int |
origlink | ) |
const |
|
override |
Definition at line 45 of file AFP_LinkNumTranslator.cxx.
48 const EventContext& ctx = Gaudi::Hive::currentContext();
124 int run_nr = ctx.eventID().run_number();
125 int Run = (run_nr > 370000 ? 3 : 2);
130 ATH_MSG_DEBUG(
"asked for link "<<origlink<<
", from run "<<run_nr<<
", Run "<<
Run);
135 unsigned int kReturn=999;
138 case 0: kReturn=
kNS0;
break;
139 case 2: kReturn=
kNS1;
break;
140 case 4: kReturn=
kNS2;
break;
141 case 6: kReturn=
kNS3;
break;
142 case 8: kReturn=
kFS0;
break;
143 case 10: kReturn=
kFS1;
break;
144 case 12: kReturn=
kFS2;
break;
145 case 14: kReturn=
kFS3;
break;
146 case 9: kReturn=
kFS4;
break;
147 case 11: kReturn=
kFS5;
break;
149 ATH_MSG_ERROR(
"requested translation of unknown link number " << origlink <<
" for run " << run_nr);
152 ATH_MSG_DEBUG(
"asked for link "<<origlink<<
", from run "<<run_nr<<
", Run "<<
Run<<
", will return "<<kReturn);
158 ATH_MSG_ERROR(
"requested link " << origlink <<
" for unknown Run " <<
Run );
◆ m_forceRunConfig
Gaudi::Property<int> AFP_LinkNumTranslator::m_forceRunConfig {this, "ForceRunConfig", 0, "force run configuration for link translation regardless of actual run number; set to 2 for Run-2, set to 3 for Run-3; set 0 to disable"} |
|
private |
◆ m_useDB
Gaudi::Property<bool> AFP_LinkNumTranslator::m_useDB {this, "UseDB", false, "whether to use COOL DB (true) or hard-coded values (false) to obtain link numbers"} |
|
private |
The documentation for this class was generated from the following files: