CMS 3D CMS Logo

EMTFCollections.cc
Go to the documentation of this file.
2 #include "EMTFCollections.h"
3 
4 namespace l1t {
5  namespace stage2 {
7  {
8  // std::cout << "Inside EMTFCollections.cc: ~EMTFCollections" << std::endl;
9 
10  // Sort by processor to match uGMT unpacked order
12 
13  // Apply ZeroSuppression: Only save RPC hits if there is at least one CSC LCT in the sector
14  bool has_LCT[12] = {false};
15  for (int iSect = 0; iSect < 12; iSect++) {
16  for (const auto& h : *EMTFHits_) {
17  if (h.Is_CSC() && h.Sector_idx() == iSect) {
18  has_LCT[iSect] = true; break;
19  }
20  }
21  }
22  for (const auto& h : *EMTFHits_) {
23  if (has_LCT[h.Sector_idx()] || h.Is_RPC() == 0) {
24  EMTFHits_ZS_->push_back( h );
25  }
26  }
27  for (const auto& c : *EMTFCPPFs_) {
28  int sect_idx = c.emtf_sector() - 1 + 6 * (c.rpcId().region() == -1);
29  if (has_LCT[sect_idx]) {
30  EMTFCPPFs_ZS_->push_back( c );
31  }
32  }
33 
40  }
41  }
42 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:125
std::unique_ptr< CSCCorrelatedLCTDigiCollection > EMTFLCTs_
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::unique_ptr< EMTFDaqOutCollection > EMTFDaqOuts_
std::unique_ptr< CPPFDigiCollection > EMTFCPPFs_ZS_
void sort_uGMT_muons(l1t::RegionalMuonCandBxCollection &cands)
delete x;
Definition: CaloConfig.h:22
std::unique_ptr< RegionalMuonCandBxCollection > regionalMuonCands_
std::unique_ptr< EMTFTrackCollection > EMTFTracks_
std::unique_ptr< EMTFHitCollection > EMTFHits_ZS_
std::unique_ptr< CPPFDigiCollection > EMTFCPPFs_
def move(src, dest)
Definition: eostools.py:511
std::unique_ptr< EMTFHitCollection > EMTFHits_