|
ATLAS Offline Software
|
#include <EtaCMA.h>
|
| EtaCMA (const parseParams &parse) |
|
| EtaCMA (const EtaCMA &) |
|
virtual | ~EtaCMA () |
|
EtaCMA & | operator= (const EtaCMA &) |
|
const RPClink & | pivot_RPCs (void) const |
|
const RPClink & | lowPt_RPCs (void) const |
|
const RPClink & | highPt_RPCs (void) const |
|
bool | inversion (void) const |
|
bool | setup (SectorLogicSetup &, MsgStream &) |
|
bool | operator== (const CMAparameters &) const |
|
bool | operator== (const CMAidentity &) const |
|
CMAparameters & | operator+= (const CMAparameters &) |
|
const CMAidentity & | id () const |
|
const CMAprogram * | lowPt_program () const |
|
const CMAprogram * | highPt_program () const |
|
int | pivot_start_ch () const |
|
int | pivot_start_st () const |
|
int | pivot_stop_ch () const |
|
int | pivot_stop_st () const |
|
int | lowPt_start_co () const |
|
int | lowPt_stop_co () const |
|
int | lowPt_number_co () const |
|
int | highPt_start_co () const |
|
int | highPt_stop_co () const |
|
int | highPt_number_co () const |
|
int | lowPt_start_st () const |
|
int | lowPt_start_ch () const |
|
int | lowPt_stop_st () const |
|
int | lowPt_stop_ch () const |
|
int | highPt_start_st () const |
|
int | highPt_start_ch () const |
|
int | highPt_stop_st () const |
|
int | highPt_stop_ch () const |
|
int | active_pivot_chs () const |
|
int | active_lowPt_chs () const |
|
int | active_highPt_chs () const |
|
int | pivot_station () const |
|
int | lowPt_station () const |
|
int | highPt_station () const |
|
int | pivot_rpc_read () const |
|
int | lowPt_rpc_read () const |
|
int | highPt_rpc_read () const |
|
unsigned int | first_pivot_code () const |
|
unsigned int | last_pivot_code () const |
|
unsigned int | first_lowPt_code () const |
|
unsigned int | last_lowPt_code () const |
|
unsigned int | first_highPt_code () const |
|
unsigned int | last_highPt_code () const |
|
CMAconfiguration | conf_type () const |
|
unsigned int | first_pivot_channel () const |
|
unsigned int | last_pivot_channel () const |
|
unsigned int | first_lowPt_channel () const |
|
unsigned int | last_lowPt_channel () const |
|
unsigned int | first_highPt_channel () const |
|
unsigned int | last_highPt_channel () const |
|
virtual void | Print (std::ostream &, bool) const override |
|
void | Print (std::ostream &, bool, int layer) const |
|
bool | isAtlas () const |
|
bool | give_connection (int, int, CMAinput &, int &, int &) const |
|
bool | get_channel (CMAinput, int, int &, int &) const |
|
bool | get_cabling (CMAinput, int, int, int, unsigned int &) const |
|
const CMAparameters * | test (CMAinput, int) const |
|
CMAinput | whichCMAinput (int) const |
|
int | whichCMAstation (CMAinput input) const |
|
bool | correct (L1RPCcabCorrection type, CMAinput it, unsigned int layer, unsigned short int Ch1, unsigned short int Ch2, short int num) const |
|
void | give_strip_code (unsigned int logic_sector, unsigned short int lh, unsigned short int ijk, unsigned short int Channel, std::list< unsigned int > &StripCodes) const |
|
int | number () const |
|
int | station () const |
|
int | sector_type () const |
|
std::string | error_header () const |
|
std::string | no_connection_error (const std::string &, int) const |
|
ObjectType | tag () const |
|
const std::string & | name () const |
|
Definition at line 20 of file EtaCMA.h.
◆ CMAlist
◆ RPClink
◆ CMAconfiguration
◆ EtaCMA() [1/2]
◆ EtaCMA() [2/2]
◆ ~EtaCMA()
◆ active_highPt_chs()
int CMAparameters::active_highPt_chs |
( |
| ) |
const |
|
inherited |
◆ active_lowPt_chs()
int CMAparameters::active_lowPt_chs |
( |
| ) |
const |
|
inherited |
◆ active_pivot_chs()
int CMAparameters::active_pivot_chs |
( |
| ) |
const |
|
inherited |
◆ begin_at_RPC_Z_boundary()
bool EtaCMA::begin_at_RPC_Z_boundary |
( |
void |
| ) |
const |
|
private |
◆ cable_CMA_channels()
bool EtaCMA::cable_CMA_channels |
( |
HalfType |
side | ) |
|
|
private |
Definition at line 55 of file EtaCMA.cxx.
70 int st_effective = strip_number - 1;
71 if (!
i &&
side ==
Negative) st_effective = abs(st_effective - final_strip) - 1;
82 }
while (++strip_number <= final_strip);
102 int st_effective = strip_number - 1;
103 if (!
i &&
side ==
Negative) st_effective = abs(st_effective - final_strip) - 1;
114 }
while (++strip_number <= final_strip);
134 int st_effective = strip_number - 1;
135 if (!
i &&
side ==
Negative) st_effective = abs(st_effective - final_strip) - 1;
146 }
while (++strip_number <= final_strip);
◆ conf_type()
◆ connect()
◆ correct()
bool CMAparameters::correct |
( |
L1RPCcabCorrection |
type, |
|
|
CMAinput |
it, |
|
|
unsigned int |
layer, |
|
|
unsigned short int |
Ch1, |
|
|
unsigned short int |
Ch2, |
|
|
short int |
num |
|
) |
| const |
|
inherited |
Definition at line 646 of file CMAparameters.cxx.
648 if (Ch1 > Ch2)
return false;
656 map =
reinterpret_cast<int*
>(
m_pivot);
662 map =
reinterpret_cast<int*
>(
m_lowPt);
668 map =
reinterpret_cast<int*
>(
m_highPt);
673 default:
return false;
680 for (
int i = 0;
i < worlo; ++
i) {
681 for (
unsigned short int j = 0; j <
num / 2; ++j) {
682 int pos1 =
i * 2 * maxch +
layer * maxch + Ch1 + j;
683 int pos2 =
i * 2 * maxch +
layer * maxch + Ch2 - j;
684 int tmp = *(map + pos1);
685 *(map + pos1) = *(map + pos2);
694 if (Ch1 +
num - 1 >= Ch2)
return false;
695 for (
int i = 0;
i < worlo; ++
i) {
696 for (
unsigned short int j = 0; j <
num; ++j) {
697 int pos1 =
i * 2 * maxch +
layer * maxch + Ch1 + j;
698 int pos2 =
i * 2 * maxch +
layer * maxch + Ch2 + j;
699 int tmp = *(map + pos1);
700 *(map + pos1) = *(map + pos2);
710 for (
int i = 0;
i < worlo; ++
i) {
711 for (
unsigned short int j = 0; j <
num; ++j) {
712 int pos =
i * 2 * maxch +
layer * maxch + Ch1 + j;
720 for (
int i = 0;
i < worlo; ++
i) {
721 if (
num / abs(
num) == 1) {
722 unsigned short int piv = Ch1 +
num;
724 for (
unsigned short int j = Ch1; j < piv; ++j) {
725 int pos =
i * 2 * maxch +
layer * maxch + j;
729 for (
unsigned short int j = piv; j <= Ch2; ++j) {
730 int pos =
i * 2 * maxch +
layer * maxch + j;
736 if (
num / abs(
num) == -1) {
737 unsigned short int ch = Ch2;
738 short int piv = Ch2 - abs(
num) + 1;
748 int pos =
i * 2 * maxch +
layer * maxch + piv - 1;
753 }
while (piv >
stop);
759 default:
return false;
◆ create_highPt_map()
void CMAparameters::create_highPt_map |
( |
int |
rpc_to_read | ) |
|
|
protectedinherited |
Definition at line 245 of file CMAparameters.cxx.
248 for (
int i = 0;
i < rpc_to_read; ++
i)
249 for (
int j = 0; j < 2; ++j)
◆ create_lowPt_map()
void CMAparameters::create_lowPt_map |
( |
int |
rpc_to_read | ) |
|
|
protectedinherited |
Definition at line 236 of file CMAparameters.cxx.
239 for (
int i = 0;
i < rpc_to_read; ++
i)
240 for (
int j = 0; j < 2; ++j)
◆ create_pivot_map()
void CMAparameters::create_pivot_map |
( |
int |
rpc_to_read | ) |
|
|
protectedinherited |
Definition at line 227 of file CMAparameters.cxx.
230 for (
int i = 0;
i < rpc_to_read; ++
i)
231 for (
int j = 0; j < 2; ++j)
◆ doInversion()
Definition at line 480 of file EtaCMA.cxx.
482 SectorLogicSetup::SECTORlist::const_iterator
it = Sectors.begin();
485 RPClink::const_iterator rpc;
488 if ((*rpc).second->inversion(sector)) {
500 if ((*rpc).second->inversion(sector)) {
512 if ((*rpc).second->inversion(sector)) {
◆ end_at_RPC_Z_boundary()
bool EtaCMA::end_at_RPC_Z_boundary |
( |
void |
| ) |
const |
|
private |
◆ error()
std::string CMAparameters::error |
( |
const std::string & |
str | ) |
|
|
protectedinherited |
◆ error_header()
std::string CablingObject::error_header |
( |
| ) |
const |
|
inherited |
Definition at line 22 of file CablingObject.cxx.
23 std::ostringstream disp;
26 disp <<
":" << std::endl;
◆ first_highPt_channel()
unsigned int CMAparameters::first_highPt_channel |
( |
| ) |
const |
|
inherited |
◆ first_highPt_code()
unsigned int CMAparameters::first_highPt_code |
( |
| ) |
const |
|
inherited |
◆ first_lowPt_channel()
unsigned int CMAparameters::first_lowPt_channel |
( |
| ) |
const |
|
inherited |
◆ first_lowPt_code()
unsigned int CMAparameters::first_lowPt_code |
( |
| ) |
const |
|
inherited |
◆ first_pivot_channel()
unsigned int CMAparameters::first_pivot_channel |
( |
| ) |
const |
|
inherited |
◆ first_pivot_code()
unsigned int CMAparameters::first_pivot_code |
( |
| ) |
const |
|
inherited |
◆ get_cabling()
bool CMAparameters::get_cabling |
( |
CMAinput |
IO, |
|
|
int |
WOR, |
|
|
int |
ly, |
|
|
int |
ch, |
|
|
unsigned int & |
code |
|
) |
| const |
|
inherited |
Definition at line 614 of file CMAparameters.cxx.
615 int* strips =
nullptr;
618 if (ly >= 2)
return false;
623 strips =
reinterpret_cast<int*
>(
m_pivot);
627 strips =
reinterpret_cast<int*
>(
m_lowPt);
631 strips =
reinterpret_cast<int*
>(
m_highPt);
639 if (*(strips + position) < 0)
return false;
641 code = *(strips + position);
◆ get_channel()
bool CMAparameters::get_channel |
( |
CMAinput |
IO, |
|
|
int |
cab_code, |
|
|
int & |
ly, |
|
|
int & |
ch |
|
) |
| const |
|
inherited |
Definition at line 583 of file CMAparameters.cxx.
584 int* strips =
nullptr;
591 strips =
reinterpret_cast<int*
>(
m_pivot);
595 strips =
reinterpret_cast<int*
>(
m_lowPt);
599 strips =
reinterpret_cast<int*
>(
m_highPt);
603 for (
int i = 0;
i < nstrips; ++
i) {
604 if (strips[
i] == cab_code) {
◆ give_connection()
bool CMAparameters::give_connection |
( |
int |
station, |
|
|
int |
cab_code, |
|
|
CMAinput & |
IO, |
|
|
int & |
ly, |
|
|
int & |
ch |
|
) |
| const |
|
inherited |
◆ give_strip_code()
void CMAparameters::give_strip_code |
( |
unsigned int |
logic_sector, |
|
|
unsigned short int |
lh, |
|
|
unsigned short int |
ijk, |
|
|
unsigned short int |
Channel, |
|
|
std::list< unsigned int > & |
StripCodes |
|
) |
| const |
|
inherited |
Definition at line 765 of file CMAparameters.cxx.
769 if (ijk == 0 || ijk == 1) {
773 int strip_number = CabCode % 100;
774 int rpc_z_index = (CabCode / 100) % 100;
775 int rpc_layer = (CabCode / 10000) % 10;
776 if (deco(this->
id().type(), logic_sector, this->
whichCMAstation(
Pivot), rpc_layer, rpc_z_index, strip_number)) {
777 StripCodes.push_back(deco.
code());
783 if (ijk == 2 || ijk == 3) {
788 int strip_number = CabCode % 100;
789 int rpc_z_index = (CabCode / 100) % 100;
790 int rpc_layer = (CabCode / 10000) % 10;
791 if (deco(this->
id().type(), logic_sector, this->
whichCMAstation(
HighPt), rpc_layer, rpc_z_index, strip_number)) {
792 StripCodes.push_back(deco.
code());
800 int strip_number = CabCode % 100;
801 int rpc_z_index = (CabCode / 100) % 100;
802 int rpc_layer = (CabCode / 10000) % 10;
803 if (deco(this->
id().type(), logic_sector, this->
whichCMAstation(
LowPt), rpc_layer, rpc_z_index, strip_number)) {
804 StripCodes.push_back(deco.
code());
811 if (ijk == 4 || ijk == 5) {
816 int strip_number = CabCode % 100;
817 int rpc_z_index = (CabCode / 100) % 100;
818 int rpc_layer = (CabCode / 10000) % 10;
819 if (deco(this->
id().type(), logic_sector, this->
whichCMAstation(
HighPt), rpc_layer, rpc_z_index, strip_number)) {
820 StripCodes.push_back(deco.
code());
828 int strip_number = CabCode % 100;
829 int rpc_z_index = (CabCode / 100) % 100;
830 int rpc_layer = (CabCode / 10000) % 10;
831 if (deco(this->
id().type(), logic_sector, this->
whichCMAstation(
LowPt), rpc_layer, rpc_z_index, strip_number)) {
832 StripCodes.push_back(deco.
code());
843 int strip_number = CabCode % 100;
844 int rpc_z_index = (CabCode / 100) % 100;
845 int rpc_layer = (CabCode / 10000) % 10;
846 if (deco(this->
id().type(), logic_sector, this->
whichCMAstation(
Pivot), rpc_layer, rpc_z_index, strip_number)) {
847 StripCodes.push_back(deco.
code());
◆ got_confirm_cabling()
Definition at line 213 of file EtaCMA.cxx.
220 "to a specific side when RPC chamber is in between eta 0";
229 "to a specific side when RPC chamber is in between eta 0";
236 <<
" don't give input to CMA confirm planes!";
◆ highPt_number_co()
int CMAparameters::highPt_number_co |
( |
| ) |
const |
|
inherited |
◆ highPt_program()
◆ highPt_rpc_read()
int CMAparameters::highPt_rpc_read |
( |
| ) |
const |
|
inherited |
◆ highPt_RPCs()
const RPClink& RPC_CondCabling::EtaCMA::highPt_RPCs |
( |
void |
| ) |
const |
|
inline |
◆ highPt_start_ch()
int CMAparameters::highPt_start_ch |
( |
| ) |
const |
|
inherited |
◆ highPt_start_co()
int CMAparameters::highPt_start_co |
( |
| ) |
const |
|
inherited |
◆ highPt_start_st()
int CMAparameters::highPt_start_st |
( |
| ) |
const |
|
inherited |
◆ highPt_station()
int CMAparameters::highPt_station |
( |
| ) |
const |
|
inherited |
◆ highPt_stop_ch()
int CMAparameters::highPt_stop_ch |
( |
| ) |
const |
|
inherited |
◆ highPt_stop_co()
int CMAparameters::highPt_stop_co |
( |
| ) |
const |
|
inherited |
◆ highPt_stop_st()
int CMAparameters::highPt_stop_st |
( |
| ) |
const |
|
inherited |
◆ id()
◆ inversion()
bool RPC_CondCabling::EtaCMA::inversion |
( |
void |
| ) |
const |
|
inline |
◆ isAtlas()
bool CMAparameters::isAtlas |
( |
| ) |
const |
|
inherited |
◆ last_highPt_channel()
unsigned int CMAparameters::last_highPt_channel |
( |
| ) |
const |
|
inherited |
◆ last_highPt_code()
unsigned int CMAparameters::last_highPt_code |
( |
| ) |
const |
|
inherited |
◆ last_lowPt_channel()
unsigned int CMAparameters::last_lowPt_channel |
( |
| ) |
const |
|
inherited |
◆ last_lowPt_code()
unsigned int CMAparameters::last_lowPt_code |
( |
| ) |
const |
|
inherited |
◆ last_pivot_channel()
unsigned int CMAparameters::last_pivot_channel |
( |
| ) |
const |
|
inherited |
◆ last_pivot_code()
unsigned int CMAparameters::last_pivot_code |
( |
| ) |
const |
|
inherited |
◆ lowPt_number_co()
int CMAparameters::lowPt_number_co |
( |
| ) |
const |
|
inherited |
◆ lowPt_program()
◆ lowPt_rpc_read()
int CMAparameters::lowPt_rpc_read |
( |
| ) |
const |
|
inherited |
◆ lowPt_RPCs()
const RPClink& RPC_CondCabling::EtaCMA::lowPt_RPCs |
( |
void |
| ) |
const |
|
inline |
◆ lowPt_start_ch()
int CMAparameters::lowPt_start_ch |
( |
| ) |
const |
|
inherited |
◆ lowPt_start_co()
int CMAparameters::lowPt_start_co |
( |
| ) |
const |
|
inherited |
◆ lowPt_start_st()
int CMAparameters::lowPt_start_st |
( |
| ) |
const |
|
inherited |
◆ lowPt_station()
int CMAparameters::lowPt_station |
( |
| ) |
const |
|
inherited |
◆ lowPt_stop_ch()
int CMAparameters::lowPt_stop_ch |
( |
| ) |
const |
|
inherited |
◆ lowPt_stop_co()
int CMAparameters::lowPt_stop_co |
( |
| ) |
const |
|
inherited |
◆ lowPt_stop_st()
int CMAparameters::lowPt_stop_st |
( |
| ) |
const |
|
inherited |
◆ name()
const std::string& BaseObject::name |
( |
| ) |
const |
|
inlineinherited |
◆ no_confirm_error()
std::string CMAparameters::no_confirm_error |
( |
int |
stat | ) |
|
|
protectedinherited |
Definition at line 524 of file CMAparameters.cxx.
525 std::ostringstream disp;
530 <<
") for" << std::endl
533 disp <<
"High Pt cabling inconsistence (cabling from connector " <<
m_params.
highPtStartCo <<
" to connector "
◆ no_connection_error()
std::string CablingObject::no_connection_error |
( |
const std::string & |
conn_name, |
|
|
int |
num |
|
) |
| const |
|
inherited |
Definition at line 30 of file CablingObject.cxx.
31 std::ostringstream disp;
32 disp <<
error_header() <<
name() <<
" n. " <<
number() <<
" is supposed to receive input from " << conn_name <<
" n. " <<
num <<
" which doesn't exist!";
◆ no_wor_readout()
std::string CMAparameters::no_wor_readout |
( |
int |
num, |
|
|
int |
stat |
|
) |
| |
|
protectedinherited |
Definition at line 540 of file CMAparameters.cxx.
541 std::ostringstream disp;
544 disp << this->
id() <<
" receives input from" << std::endl
545 <<
" RPC chamber n. " <<
num <<
" of station " <<
stat <<
" which has no Wired OR readout!";
◆ noMoreChannels()
std::string CMAparameters::noMoreChannels |
( |
const std::string & |
stat | ) |
|
|
protectedinherited |
Definition at line 481 of file CMAparameters.cxx.
482 int max_channels = 0;
488 std::ostringstream disp;
489 disp <<
"Error in Sector Type " << this->
sector_type() <<
":" << std::endl
490 << this->
id() <<
" attempted to receive more than " << max_channels <<
" channels for " <<
stat <<
" side";
◆ number()
int CablingObject::number |
( |
| ) |
const |
|
inherited |
◆ operator+=()
◆ operator=()
◆ operator==() [1/2]
◆ operator==() [2/2]
◆ pivot_rpc_read()
int CMAparameters::pivot_rpc_read |
( |
| ) |
const |
|
inherited |
◆ pivot_RPCs()
const RPClink& RPC_CondCabling::EtaCMA::pivot_RPCs |
( |
void |
| ) |
const |
|
inline |
◆ pivot_start_ch()
int CMAparameters::pivot_start_ch |
( |
| ) |
const |
|
inherited |
◆ pivot_start_st()
int CMAparameters::pivot_start_st |
( |
| ) |
const |
|
inherited |
◆ pivot_station()
int CMAparameters::pivot_station |
( |
| ) |
const |
|
inherited |
◆ pivot_stop_ch()
int CMAparameters::pivot_stop_ch |
( |
| ) |
const |
|
inherited |
◆ pivot_stop_st()
int CMAparameters::pivot_stop_st |
( |
| ) |
const |
|
inherited |
◆ Print() [1/2]
void CMAparameters::Print |
( |
std::ostream & |
stream, |
|
|
bool |
detail |
|
) |
| const |
|
overridevirtualinherited |
◆ Print() [2/2]
void CMAparameters::Print |
( |
std::ostream & |
stream, |
|
|
bool |
detail, |
|
|
int |
layer |
|
) |
| const |
|
inherited |
◆ reset_highPt_cabling()
void CMAparameters::reset_highPt_cabling |
( |
| ) |
|
|
privateinherited |
◆ reset_lowPt_cabling()
void CMAparameters::reset_lowPt_cabling |
( |
| ) |
|
|
privateinherited |
◆ reset_pivot_cabling()
void CMAparameters::reset_pivot_cabling |
( |
| ) |
|
|
privateinherited |
◆ sector_type()
int CablingObject::sector_type |
( |
| ) |
const |
|
inherited |
◆ setup()
Definition at line 241 of file EtaCMA.cxx.
271 std::string LVL1_configuration_repository;
272 LVL1_configuration_repository =
"ATLAS.data";
276 SectorLogicSetup::SECTORlist::const_iterator
it = sectors.begin();
279 sprintf(s_tag,
"s%02d", *
it);
282 sprintf(t_tag,
"t%1d",
id().PAD_index());
284 char c_tag[4] = {
'_',
'c',
'2',
'\0'};
285 if (
id().Ixx_index() == 1) c_tag[2] =
'3';
287 std::ifstream CMAprogLow;
288 std::istringstream CMAprogLow_COOL;
292 const std::map<std::string, std::string>* p_trigroads =
setup.GetPtoTrigRoads();
296 if (p_trigroads ==
nullptr) {
297 while (!CMAprogLow.is_open() &&
it != sectors.end()) {
298 std::ostringstream namestr;
302 namestr <<
dir <<
"/" << s_tag <<
"_" << t_tag <<
"_pl" << c_tag <<
".txt" << std::ends;
304 namestr.str().copy(
name, namestr.str().length(), 0);
305 name[namestr.str().length()] = 0;
310 CMAprogLow.open(
name);
317 while (CMAprogLow_COOL.str().empty() &&
it != sectors.end()) {
318 std::ostringstream namestr;
319 namestr << s_tag <<
"_" << t_tag <<
"_pl" << c_tag <<
".txt" << std::ends;
320 namestr.str().copy(
name, namestr.str().length(), 0);
321 name[namestr.str().length()] = 0;
322 std::map<std::string, std::string>::const_iterator itc;
323 itc = p_trigroads->find(
name);
324 if (itc != p_trigroads->end()) {
325 CMAprogLow_COOL.str(itc->second.c_str());
328 log <<
MSG::VERBOSE <<
"EtaCMA low: key " <<
name <<
"found in the Trigger Road Map --> OK"
329 <<
", EtaCMA low: key " << itc->second.c_str()
330 <<
", Etacma:CMAPROGLOW " << CMAprogLow_COOL.str()
338 if (CMAprogLow.is_open()) {
339 std::unique_ptr<CMAprogram> program = std::make_unique<CMAprogram>(CMAprogLow,
true);
340 if (program->
check()) {
342 if (
setup.cosmic()) {
346 for (
unsigned int i = 0;
i < 3; ++
i) {
349 log <<
MSG::DEBUG << s_tag <<
": " <<
id() <<
": low-pt: has threshold " <<
i
350 <<
" not programmed." <<
endmsg;
359 }
else if (!CMAprogLow_COOL.str().empty()) {
360 std::unique_ptr<CMAprogram> program = std::make_unique<CMAprogram>(CMAprogLow_COOL,
true);
361 if (program->
check()) {
363 if (
setup.cosmic()) {
367 for (
unsigned int i = 0;
i < 3; ++
i) {
370 log <<
MSG::DEBUG << s_tag <<
": " <<
id() <<
": low-pt: has threshold " <<
i
371 <<
" not programmed." <<
endmsg;
376 CMAprogLow_COOL.str(
"");
385 it = sectors.begin();
386 std::ifstream CMAprogHigh;
387 std::istringstream CMAprogHigh_COOL;
389 if (p_trigroads ==
nullptr) {
390 while (!CMAprogHigh.is_open() &&
it != sectors.end()) {
391 std::ostringstream namestr;
394 namestr <<
dir <<
"/" << s_tag <<
"_" << t_tag <<
"_ph" << c_tag <<
".txt" << std::ends;
396 namestr.str().copy(
name, namestr.str().length(), 0);
397 name[namestr.str().length()] = 0;
401 CMAprogHigh.open(
name);
408 while (CMAprogHigh_COOL.str().empty() &&
it != sectors.end()) {
409 std::ostringstream namestr;
410 namestr << s_tag <<
"_" << t_tag <<
"_ph" << c_tag <<
".txt" << std::ends;
411 namestr.str().copy(
name, namestr.str().length(), 0);
412 name[namestr.str().length()] = 0;
413 std::map<std::string, std::string>::const_iterator itc;
414 itc = p_trigroads->find(
name);
415 if (itc != p_trigroads->end()) {
417 log <<
MSG::VERBOSE <<
"EtaCMA high: key " <<
name <<
"found in the Trigger Road Map --> OK"
418 <<
", EtaCMA high: key " << itc->second.c_str() <<
endmsg;
420 CMAprogHigh_COOL.str(itc->second.c_str());
430 if (CMAprogHigh.is_open()) {
431 std::unique_ptr<CMAprogram> program = std::make_unique<CMAprogram>(CMAprogHigh,
true);
432 if (program->
check()) {
434 if (
setup.cosmic()) {
438 for (
unsigned int i = 0;
i < 3; ++
i) {
441 log <<
MSG::DEBUG << s_tag <<
": " <<
id() <<
": high-pt: has threshold " <<
i
442 <<
" not programmed." <<
endmsg;
451 }
else if (!CMAprogHigh_COOL.str().empty()) {
452 std::unique_ptr<CMAprogram> program = std::make_unique<CMAprogram>(CMAprogHigh_COOL,
true);
453 if (program->
check()) {
455 if (
setup.cosmic()) {
459 for (
unsigned int i = 0;
i < 3; ++
i) {
462 log <<
MSG::DEBUG << s_tag <<
": " <<
id() <<
": high-pt: has threshold " <<
i
463 <<
" not programmed." <<
endmsg;
468 CMAprogHigh_COOL.str(
"");
◆ showDt()
void CMAparameters::showDt |
( |
std::ostream & |
stream, |
|
|
int |
layer |
|
) |
| const |
|
privateinherited |
Definition at line 293 of file CMAparameters.cxx.
295 unsigned int finish = 164;
298 stream << std::endl <<
"Low Pt and Hi Pt not yet connected!" << std::endl;
299 for (
int i = 0;
i < 80; ++
i)
stream << (
char)finish;
307 char(*displow)[90] =
new char[
ln][90];
310 stream << std::endl <<
"Low Pt matrix connections:" << std::endl << std::endl;
314 for (
int i = 0;
i <
ln; ++
i)
315 if (displow[
i][0] !=
'\0')
stream << displow[
i] << std::endl;
320 stream << std::endl << std::endl <<
"Hi Pt matrix connections:" << std::endl << std::endl;
324 char(*disphi)[90] =
new char[
ln][90];
329 for (
int i = 0;
i <
ln; ++
i)
330 if (disphi[
i][0] !=
'\0')
stream << disphi[
i] << std::endl;
335 for (
int i = 0;
i < 80; ++
i)
stream << (
char)finish;
◆ showMt()
void CMAparameters::showMt |
( |
char |
display[][90], |
|
|
int |
ln, |
|
|
TrigType |
type, |
|
|
int |
layer |
|
) |
| const |
|
privateinherited |
Definition at line 339 of file CMAparameters.cxx.
341 unsigned int up = 19;
342 unsigned int left = 22;
343 unsigned int right = 25;
344 unsigned int middle = 18;
345 unsigned int down = 24;
354 std::ostringstream** disp =
new std::ostringstream*[
ln];
356 for (
int i = 0;
i <
ln; ++
i) disp[
i] =
new std::ostringstream;
374 int shift = 6 * pivot_loop;
376 for (
int i = 0;
i < shift; ++
i) *disp[0] <<
" ";
381 for (
int j = 0; j < pivot_loop; ++j) {
382 if (j) *disp[
i] <<
"|";
391 (std::ostream&)*disp[
i] << (
char)left;
393 unsigned int no_coincidence =
':';
395 const bool* registers = program->
registers();
400 if (registers[third])
402 else if (registers[
second])
404 else if (registers[
first])
407 (std::ostream&)*disp[
i] << (
char)no_coincidence;
412 (std::ostream&)*disp[
i] << (
char)right;
417 for (
int j = 0; j < shift; ++j) *disp[start_confirm] <<
" ";
418 for (
int i = start_confirm + 1;
i < start_confirm + conf_loop * 6; ++
i)
419 for (
int j = 0; j < shift; ++j) *disp[
i] <<
" ";
423 for (
int i = 0;
i < conf_loop; ++
i) {
424 int start = (
i) ? start_confirm +
i * 6 : start_confirm + 1;
430 for (
int j = 0; j < 5; ++j)
435 (std::ostream&)*disp[
start + j] <<
"*";
439 for (
int i = 0;
i <
ln; ++
i) {
440 std::string
tmp = (*disp[
i]).
str();
◆ station()
int CablingObject::station |
( |
| ) |
const |
|
inherited |
◆ tag()
◆ test()
Definition at line 494 of file CMAparameters.cxx.
495 int* strips =
nullptr;
500 strips =
reinterpret_cast<int*
>(
m_pivot);
503 strips =
reinterpret_cast<int*
>(
m_lowPt);
506 strips =
reinterpret_cast<int*
>(
m_highPt);
510 for (
int i = 0;
i < nstrips; ++
i)
511 if (strips[
i] == cabling_code)
return this;
◆ two_obj_error_message()
std::string CMAparameters::two_obj_error_message |
( |
const std::string & |
msg, |
|
|
CMAparameters * |
cma |
|
) |
| |
|
protectedinherited |
◆ whichCMAinput()
CMAinput CMAparameters::whichCMAinput |
( |
int |
stat | ) |
const |
|
inherited |
◆ whichCMAstation()
int CMAparameters::whichCMAstation |
( |
CMAinput |
input | ) |
const |
|
inherited |
◆ confirm_channels
constexpr int CMAparameters::confirm_channels = 64 |
|
staticconstexprinherited |
◆ m_active_highPt_chs
int CMAparameters::m_active_highPt_chs {0} |
|
protectedinherited |
◆ m_active_lowPt_chs
int CMAparameters::m_active_lowPt_chs {0} |
|
protectedinherited |
◆ m_active_pivot_chs
int CMAparameters::m_active_pivot_chs {0} |
|
protectedinherited |
◆ m_conf_type
◆ m_first_highPt_code
unsigned int CMAparameters::m_first_highPt_code {0} |
|
protectedinherited |
◆ m_first_lowPt_code
unsigned int CMAparameters::m_first_lowPt_code {0} |
|
protectedinherited |
◆ m_first_pivot_code
unsigned int CMAparameters::m_first_pivot_code {0} |
|
protectedinherited |
◆ m_highPt
◆ m_highPt_program
std::unique_ptr<CMAprogram> CMAparameters::m_highPt_program |
|
protectedinherited |
◆ m_highPt_rpc_read
int CMAparameters::m_highPt_rpc_read {0} |
|
protectedinherited |
◆ m_highPt_RPCs
RPClink RPC_CondCabling::EtaCMA::m_highPt_RPCs |
|
private |
◆ m_highPt_start_ch
int CMAparameters::m_highPt_start_ch {-1} |
|
protectedinherited |
◆ m_highPt_start_st
int CMAparameters::m_highPt_start_st {-1} |
|
protectedinherited |
◆ m_highPt_stop_ch
int CMAparameters::m_highPt_stop_ch {-1} |
|
protectedinherited |
◆ m_highPt_stop_st
int CMAparameters::m_highPt_stop_st {-1} |
|
protectedinherited |
◆ m_id
◆ m_inversion
bool RPC_CondCabling::EtaCMA::m_inversion {false} |
|
private |
◆ m_last_highPt_code
unsigned int CMAparameters::m_last_highPt_code {0} |
|
protectedinherited |
◆ m_last_lowPt_code
unsigned int CMAparameters::m_last_lowPt_code {0} |
|
protectedinherited |
◆ m_last_pivot_code
unsigned int CMAparameters::m_last_pivot_code {0} |
|
protectedinherited |
◆ m_lowPt
◆ m_lowPt_program
std::unique_ptr<CMAprogram> CMAparameters::m_lowPt_program |
|
protectedinherited |
◆ m_lowPt_rpc_read
int CMAparameters::m_lowPt_rpc_read {0} |
|
protectedinherited |
◆ m_lowPt_RPCs
RPClink RPC_CondCabling::EtaCMA::m_lowPt_RPCs |
|
private |
◆ m_lowPt_start_ch
int CMAparameters::m_lowPt_start_ch {-1} |
|
protectedinherited |
◆ m_lowPt_start_st
int CMAparameters::m_lowPt_start_st {-1} |
|
protectedinherited |
◆ m_lowPt_stop_ch
int CMAparameters::m_lowPt_stop_ch {-1} |
|
protectedinherited |
◆ m_lowPt_stop_st
int CMAparameters::m_lowPt_stop_st {-1} |
|
protectedinherited |
◆ m_name
std::string BaseObject::m_name |
|
privateinherited |
◆ m_number
int CablingObject::m_number {0} |
|
privateinherited |
◆ m_params
◆ m_pivot
◆ m_pivot_rpc_read
int CMAparameters::m_pivot_rpc_read {0} |
|
protectedinherited |
◆ m_pivot_RPCs
RPClink RPC_CondCabling::EtaCMA::m_pivot_RPCs |
|
private |
◆ m_sector_type
int CablingObject::m_sector_type {0} |
|
privateinherited |
◆ m_station
int CablingObject::m_station {0} |
|
privateinherited |
◆ m_tag
◆ pivot_channels
constexpr int CMAparameters::pivot_channels = 32 |
|
staticconstexprinherited |
The documentation for this class was generated from the following files:
std::string two_obj_error_message(const std::string &, CMAparameters *)
int highPt_start_st() const
JetConstituentVector::iterator iterator
int pivotStopChan
RPC chamber to which the RPC strip belongs.
std::string no_confirm_error(int)
int lowPt_station() const
const std::string & name() const
void showMt(char[][90], int, TrigType, int layer) const
int whichCMAstation(CMAinput input) const
std::list< int > SECTORlist
int lowPtStation
RPC station number giving input to pivot chs.
int highPt_stop_co() const
int highPt_start_ch() const
int highPtStartCo
Number of connectors giving input to the matrix.
int strips_in_Eta_Conn() const
unsigned int first_lowPt_channel() const
Identifier32::value_type Channel
const RPClink & lowPt_RPCs(void) const
CMAparameters(const parseParams &parse)
const CMAprogram * lowPt_program() const
unsigned int last_pivot_channel() const
unsigned int m_first_highPt_code
int highPt_stop_ch() const
unsigned int m_first_pivot_code
int lowPtStartCo
RPC chamber to which the RPC strip belongs.
int lowPt_stop_co() const
void add_eta_channel(int)
std::unique_ptr< CMAidentity > m_id
const CMAidentity & id() const
CMAconfiguration m_conf_type
int pivotStartChan
RPC station number giving input to High Pt ch.
unsigned int last_lowPt_channel() const
int(* m_pivot)[2][pivot_channels]
int lowPtStopCo
First connector (global-addr) for LowPt confirm.
bool cable_CMA_channels(HalfType)
int pivot_start_st() const
int highPt_number_co() const
bool correct(L1RPCcabCorrection type, CMAinput it, unsigned int layer, unsigned short int Ch1, unsigned short int Ch2, short int num) const
unsigned int m_last_lowPt_code
static constexpr int confirm_channels
int lowPt_start_co() const
bool end_at_RPC_Z_boundary(void) const
int ijk_etaReadout() const
int lowPt_start_ch() const
unsigned int code(void) const
int(* m_highPt)[2][confirm_channels]
int lowPtNumCo
Last connector (global-addr) for LowPt confirm.
unsigned int m_first_lowPt_code
int highPtStation
RPC station number giving input to Low Pt ch.
int pivot_station() const
std::unique_ptr< CMAprogram > m_highPt_program
std::string error_header() const
unsigned int m_last_highPt_code
const RPClink & pivot_RPCs(void) const
CMAparameters & operator=(const CMAparameters &)
int(* m_lowPt)[2][confirm_channels]
const CMAprogram * highPt_program() const
const RPClink & highPt_RPCs(void) const
std::string noMoreChannels(const std::string &stat)
int lowPt_start_st() const
void create_lowPt_map(int)
bool setup(SectorLogicSetup &, MsgStream &)
unsigned int first_pivot_channel() const
bool got_confirm_cabling(SectorLogicSetup &, int)
int highPtNumCo
Last connector (global-addr) for HiPt confirm.
void fill(H5::Group &out_file, size_t iterations)
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
bool connect(SectorLogicSetup &)
void create_highPt_map(int)
unsigned int last_highPt_channel() const
int highPtStopCo
First connector (global-addr) for HiPt confirm.
bool doInversion(SectorLogicSetup &)
int lowPt_stop_st() const
bool inversion(void) const
CMAinput whichCMAinput(int) const
int lowPt_stop_ch() const
void add_cma(const EtaCMA *)
bool begin_at_RPC_Z_boundary(void) const
virtual void Print(std::ostream &, bool) const override
int highPt_station() const
unsigned int first_highPt_channel() const
unsigned int m_last_pivot_code
int lowPt_number_co() const
int highPt_stop_st() const
std::unique_ptr< CMAprogram > m_lowPt_program
int pivot_start_ch() const
void showDt(std::ostream &, int layer) const
std::string no_connection_error(const std::string &, int) const
bool get_channel(CMAinput, int, int &, int &) const
static constexpr int pivot_channels
void create_pivot_map(int)
int pivot_stop_ch() const
constexpr int pow(int base, int exp) noexcept
int highPt_start_co() const
int pivot_stop_st() const
const bool * registers(void) const