4 unsigned sector,
unsigned subsector,
10 <<
"+++ Upgrade CSCUpgradeAnodeLCTProcessor constructed while isSLHC_ is not set! +++\n";
13 <<
"+++ Upgrade CSCUpgradeAnodeLCTProcessor constructed while enableAlctSLHC_ is not set! +++\n";
20 <<
"+++ Upgrade CSCUpgradeAnodeLCTProcessor constructed while isSLHC_ is not set! +++\n";
23 <<
"+++ Upgrade CSCUpgradeAnodeLCTProcessor constructed while enableAlctSLHC_ is not set! +++\n";
30 for (
int key_wire = 0; key_wire <
numWireGroups; key_wire++) {
31 for (
int i_pattern = 0; i_pattern < 2; i_pattern++) {
32 ghost_cleared[key_wire][i_pattern] = 0;
35 int qual_this =
quality[key_wire][i_pattern];
39 qual_this = (qual_this & 0x03);
42 int qual_prev = (key_wire > 0) ?
quality[key_wire-1][i_pattern] : 0;
50 qual_prev = (qual_prev & 0x03);
59 if (qual_prev > qual_this) ghost_cleared[key_wire][i_pattern] = 1;
63 (qual_prev > qual_this) )
64 ghost_cleared[key_wire][i_pattern] = 1;
70 if (ghost_cleared[key_wire][i_pattern] == 1) {
72 << ((i_pattern == 0) ?
"Accelerator" :
"Collision")
73 <<
" pattern ghost cancelled on key_wire " << key_wire <<
" q="<<qual_this
74 <<
" by wire " << key_wire-1<<
" q="<<qual_prev<<
" dt="<<
dt;
80 (key_wire < numWireGroups-1) ?
quality[key_wire+1][i_pattern] : 0;
88 qual_next = (qual_next & 0x03);
91 if (qual_next >= qual_this) ghost_cleared[key_wire][i_pattern] = 1;
95 (qual_next >= qual_this) )
96 ghost_cleared[key_wire][i_pattern] = 1;
99 if (ghost_cleared[key_wire][i_pattern] == 1) {
101 << ((i_pattern == 0) ?
"Accelerator" :
"Collision")
102 <<
" pattern ghost cancelled on key_wire " << key_wire <<
" q="<<qual_this
103 <<
" by wire " << key_wire+1<<
" q="<<qual_next<<
" dt="<<
dt;
112 for (
int key_wire = 0; key_wire <
numWireGroups; key_wire++) {
113 for (
int i_pattern = 0; i_pattern < 2; i_pattern++) {
114 if (ghost_cleared[key_wire][i_pattern] > 0) {
115 clear(key_wire, i_pattern);
126 for (
int i_pattern = 0; i_pattern < 2; i_pattern++) {
127 ghost_cleared[i_pattern] = 0;
128 if (key_wire == 0)
continue;
131 int qual_this =
quality[key_wire][i_pattern];
135 qual_this = (qual_this & 0x03);
139 if (not (
p.isValid() and
p.getKeyWG() == key_wire -1 and 1-
p.getAccelerator() == i_pattern))
continue;
141 bool ghost_cleared_prev =
false;
142 int qual_prev =
p.getQuality();
143 int first_bx_prev =
p.getBX();
145 <<
"ghost concellation logic " << ((i_pattern == 0) ?
"Accelerator" :
"Collision")
146 <<
" key_wire "<< key_wire <<
" quality "<< qual_this <<
" bx " <<
first_bx[key_wire]
147 <<
" previous key_wire "<< key_wire -1 <<
" quality "<< qual_prev <<
" bx " <<
first_bx[key_wire-1];
153 dt = first_bx[key_wire] - first_bx_prev;
156 qual_prev = (qual_prev & 0x03);
165 if (qual_prev > qual_this) ghost_cleared[i_pattern] = 1;
169 (qual_prev > qual_this) )
170 ghost_cleared[i_pattern] = 1;
174 (qual_prev < qual_this) )
175 ghost_cleared_prev =
true;
178 if (ghost_cleared[i_pattern] == 1) {
180 << ((i_pattern == 0) ?
"Accelerator" :
"Collision")
181 <<
" pattern ghost cancelled on key_wire " << key_wire <<
" q="<<qual_this
182 <<
" by wire " << key_wire-1<<
" q="<<qual_prev<<
" dt="<<
dt;
185 if (ghost_cleared_prev) {
187 << ((i_pattern == 0) ?
"Accelerator" :
"Collision")
188 <<
" pattern ghost cancelled on key_wire " << key_wire - 1 <<
" q="<<qual_prev
189 <<
" by wire " << key_wire <<
" q="<<qual_this;
209 else if (temp_quality > 3) Q = temp_quality - 3;
int ghost_cancellation_bx_depth
int quality[CSCConstants::MAX_NUM_WIRES][3]
int first_bx_corrected[CSCConstants::MAX_NUM_WIRES]
std::vector< CSCALCTDigi > lct_list
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
bool ghost_cancellation_side_quality
CSCUpgradeAnodeLCTProcessor()
void ghostCancellationLogicOneWire(const int key_wire, int *ghost_cleared) override
int first_bx[CSCConstants::MAX_NUM_WIRES]
void ghostCancellationLogic() override
int getTempALCTQuality(int temp_quality) const override