Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:20

0001 //-------------------------------------------------
0002 //
0003 //   Class: RPCtoDTTranslator
0004 //
0005 //   RPCtoDTTranslator
0006 //
0007 //
0008 //   Author :
0009 //   G. Flouris               U Ioannina    Feb. 2015
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   ///Return Output PhContainer
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   //static int bendingAngle(int);
0036   static int localX(RPCDetId, const RPCGeometry&, int);
0037   static int localXX(int, int, int);
0038 
0039 private:
0040   ///Output PhContainer
0041   L1MuDTChambPhContainer m_rpcdt_translated;
0042   L1MuDTChambPhContainer m_rpchitsdt_translated;
0043 
0044   const RPCDigiCollection& m_rpcDigis;
0045 };
0046 #endif