ATLAS Offline Software
Loading...
Searching...
No Matches
Lvl1MuSectorLogicDataPhase1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <cstdio>
6#include <iostream>
7#include <iomanip>
8
11
12namespace LVL1MUONIF {
13
23 {
24 m_roi.clear();
25 m_ovl.clear();
26 m_pt.clear();
27 m_charge.clear();
28 m_2candidates.clear();
29 m_goodmf.clear();
30 m_innercoin.clear();
31 m_bw2or3.clear();
32 m_veto.clear();
33 }
34
36 {
37 if (m_id_system == -1) return;
38
39 size_t ncand = NCAND[m_id_system];
40 for ( size_t i = 0; i < ncand; ++i ) {
41 m_roi.push_back(-1);
42 m_ovl.push_back(-1);
43 m_pt.push_back(-1);
44 m_charge.push_back(+1);
45 m_2candidates.push_back(false);
46 m_goodmf.push_back(-1);
47 m_innercoin.push_back(-1);
48 m_bw2or3.push_back(-1);
49 m_veto.push_back(0);
50 }
51 }
52
53
57
59 if ( this != &right ) {
61 m_bcid = right.m_bcid;
62 m_nsw = right.m_nsw;
64 for ( size_t i = 0; i < NCAND[m_id_system]; ++i ) {
65 m_roi[ i ] = right.m_roi[ i ];
66 m_ovl[ i ] = right.m_ovl[ i ];
67 m_pt[ i ] = right.m_pt[ i ];
68 m_charge[ i ] = right.m_charge[ i ];
69 m_2candidates[ i ] = right.m_2candidates[ i ];
70 m_goodmf[ i ] = right.m_goodmf[ i ];
71 m_innercoin[ i ] = right.m_innercoin[ i ];
72 m_bw2or3[ i ] = right.m_bw2or3[ i ];
73 m_veto[ i ] = right.m_veto[ i ];
74 }
75 }
76 return *this;
77 }
78
79 std::ostream& operator<<( std::ostream& out, const Lvl1MuSectorLogicDataPhase1& right ) {
80
81 right.printOut( out );
82 return out;
83
84 }
85
88 m_bcid = 0;
89 m_nsw = 0;
90 for ( size_t i = 0; i < NCAND[m_id_system]; ++i ) {
91 m_roi[ i ] = -1;
92 m_ovl[ i ] = -1;
93 m_pt[ i ] = -1;
94 m_charge[ i ] = -1;
95 m_2candidates[ i ] = false;
96 m_goodmf[ i ] = -1;
97 m_innercoin[ i ] = -1;
98 m_bw2or3[ i ] = -1;
99 m_veto[ i ] = 0;
100 }
101 }
102
103} // namespace LVL1MUONIF
virtual void printOut(std::ostream &out) const =0
print out data
Lvl1MuSectorLogicDataPhase1 & operator=(const Lvl1MuSectorLogicDataPhase1 &right)
Namespace for the LVL1 muon interface classes.
static const size_t NCAND[3]
std::ostream & operator<<(std::ostream &out, const Lvl1MuCTPIInput &right)