File indexing completed on 2023-03-17 11:13:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
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
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
0038 RPCDigiCollection const& m_inrpcDigis;
0039
0040 RPCDigiCollection m_outrpcDigis;
0041 };
0042 #endif