Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-28 03:10:06

0001 //-------------------------------------------------
0002 //
0003 //   Class: RPCHitCleaner
0004 //
0005 //   RPCHitCleaner
0006 //
0007 //
0008 //   Author :
0009 //   G. Flouris               U Ioannina    Feb. 2015
0010 //--------------------------------------------------
0011 
0012 #ifndef L1T_TwinMuxRPC_HITCLEANER_H
0013 #define L1T_TwinMuxRPC_HITCLEANER_H
0014 
0015 #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
0016 
0017 class RPCHitCleaner {
0018 public:
0019   RPCHitCleaner(RPCDigiCollection const& inrpcDigis);
0020 
0021   void run();
0022 
0023   ///Return Output RPCCollection
0024   RPCDigiCollection const& getRPCCollection() { return m_outrpcDigis; }
0025 
0026   struct detId_Ext {
0027     RPCDetId detid;
0028     int bx;
0029     int strip;
0030     bool const operator<(const detId_Ext& o) const {
0031       return strip < o.strip || (strip == o.strip && detid < o.detid) ||
0032              (bx < o.bx && strip == o.strip && detid == o.detid);
0033     }
0034   };
0035 
0036 private:
0037   ///Input
0038   RPCDigiCollection const& m_inrpcDigis;
0039   ///Output
0040   RPCDigiCollection m_outrpcDigis;
0041 };
0042 #endif