File indexing completed on 2024-04-06 12:21:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef L1T_TwinMux_RPC_DTTranslator_H
0013 #define L1T_TwinMux_RPC_DTTranslator_H
0014
0015 #include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambPhContainer.h"
0016 #include "DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h"
0017 #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
0018
0019 #include "Geometry/RPCGeometry/interface/RPCGeometry.h"
0020
0021 #include "FWCore/Framework/interface/Frameworkfwd.h"
0022
0023 class RPCtoDTTranslator {
0024 public:
0025 RPCtoDTTranslator(const RPCDigiCollection& inrpcDigis);
0026
0027 void run(const RPCGeometry&);
0028
0029
0030 L1MuDTChambPhContainer const& getDTContainer() const { return m_rpcdt_translated; }
0031 L1MuDTChambPhContainer const& getDTRPCHitsContainer() const { return m_rpchitsdt_translated; }
0032
0033 static int radialAngle(RPCDetId, const RPCGeometry&, int);
0034 static int bendingAngle(int, int, int);
0035
0036 static int localX(RPCDetId, const RPCGeometry&, int);
0037 static int localXX(int, int, int);
0038
0039 private:
0040
0041 L1MuDTChambPhContainer m_rpcdt_translated;
0042 L1MuDTChambPhContainer m_rpchitsdt_translated;
0043
0044 const RPCDigiCollection& m_rpcDigis;
0045 };
0046 #endif