ATLAS Offline Software
Loading...
Searching...
No Matches
Lvl1MuSectorLogicData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <cstdio>
6#include <iostream>
7#include <iomanip>
8
10
11namespace LVL1MUONIF {
12
14 : m_2candidatesInSector ( false ), m_bcid( 0 ),
15 m_id_system( -1 ) {
16
17 for ( size_t i = 0; i < 2; ++i ) {
18 m_roi[ i ] = -1;
19 m_ovl[ i ] = -1;
20 m_pt[ i ] = -1;
21 m_charge[ i ] = + 1;
22 m_2candidates[ i ] = false;
23 }
24 }
25
26
30
32 if ( this != &right ) {
34 m_bcid = right.m_bcid;
36 for ( size_t i = 0; i < 2; ++i ) {
37 m_roi[ i ] = right.m_roi[ i ];
38 m_ovl[ i ] = right.m_ovl[ i ];
39 m_pt[ i ] = right.m_pt[ i ];
40 m_charge[ i ] = right.m_charge[ i ];
41 m_2candidates[ i ] = right.m_2candidates[ i ];
42 }
43 }
44 return *this;
45 }
46
47 std::ostream& operator<<( std::ostream& out, const Lvl1MuSectorLogicData& right ) {
48
49 right.printOut( out );
50 return out;
51
52 }
53
54 void Lvl1MuSectorLogicData::printOut( std::ostream& out ) const {
55
56 out << "Bit 0 " << " >2candidates in a sector ";
57 out << std::setw( 8 ) << m_2candidatesInSector << std::endl;
58
59 out << "Bit 1-9 " << " ROI<1> + OVL<1> ";
60 out << std::setw( 8 ) << m_roi[ 0 ] << " : " << m_ovl[ 0 ] << std::endl;
61 out << "Bit 10-18 " << " ROI<2> + OVL<2> ";
62 out << std::setw( 8 ) << m_roi[ 1 ] << " : " << m_ovl[ 1 ] << std::endl;
63 out << "Bit 19-21 " << " Pt1 ";
64 out << std::setw( 8 ) << m_pt[ 0 ] << std::endl;
65 out << "Bit 22-24 " << " Pt2 ";
66 out << std::setw( 8 ) << m_pt[ 1 ] << std::endl;
67 out << "Bit 25 " << " >2candidates in ROI1 ";
68 out << std::setw( 8 ) << m_2candidates[ 0 ] << std::endl;
69 out << "Bit 26 " << " >2candidates in ROI2 ";
70 out << std::setw( 8 ) << m_2candidates[ 1 ] << std::endl;
71 out << "Bit 27-29 " << " BCID ";
72 out << std::setw( 8 ) << m_bcid << std::endl;
73 out << "Bit 30 " << " charge in ROI1 ";
74 out << std::setw( 8 ) << m_charge[ 0 ] << std::endl;
75 out << "Bit 31 " << " charge in ROI2 ";
76 out << std::setw( 8 ) << m_charge[ 1 ] << std::endl;
77
78 }
79
82 m_bcid = 0;
83 for ( size_t i = 0; i < 2; ++i ) {
84 m_roi[ i ] = -1;
85 m_ovl[ i ] = -1;
86 m_pt[ i ] = -1;
87 m_charge[ i ] = -1;
88 m_2candidates[ i ] = false;
89 }
90 }
91
92} // namespace LVL1MUONIF
Lvl1MuSectorLogicData & operator=(const Lvl1MuSectorLogicData &right)
virtual void printOut(std::ostream &out) const
print out data
Namespace for the LVL1 muon interface classes.
std::ostream & operator<<(std::ostream &out, const Lvl1MuCTPIInput &right)