Skip to content

Commit

Permalink
Added a valid flag check to RPC and GEM TP unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
eyigitba committed Feb 21, 2023
1 parent 574e102 commit 83470f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ namespace l1t {
// << ", roll " << Hit_.Roll() << ", pad " << Hit_.Pad() << std::endl;

(res->at(iOut)).push_GEM(GEM_);
if (!exact_duplicate)
if (!exact_duplicate and Hit_.Valid())
res_hit->push_back(Hit_);

if (!exact_duplicate)
if (!exact_duplicate and Hit_.Valid())
res_GEM->insertDigi(Hit_.GEM_DetId(), Hit_.CreateGEMPadDigiCluster());

// Finished with unpacking one GEM Data Record
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ namespace l1t {
<< ", phi " << Hit_.Phi_fp() / 4 << std::endl;

(res->at(iOut)).push_RPC(RPC_);
if (!exact_duplicate)
if (!exact_duplicate and Hit_.Valid())
res_hit->push_back(Hit_);
if (!exact_duplicate)
if (!exact_duplicate and Hit_.Valid())
res_CPPF->push_back(Hit_.CreateCPPFDigi());
}

Expand Down

0 comments on commit 83470f2

Please sign in to comment.