Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:13:32

0001 #ifndef L1Trigger_TrackerTFP_DistServer_h__
0002 #define L1Trigger_TrackerTFP_DistServer_h__
0003 
0004 #include "L1Trigger/TrackerTFP/interface/DataFormats.h"
0005 
0006 #include <vector>
0007 
0008 namespace trackerTFP {
0009 
0010   class DistServer {
0011   public:
0012     DistServer(unsigned int nInputs, unsigned int nOutputs, unsigned int nInterleaving);
0013     ~DistServer() {}
0014 
0015     TrackKFOutSAPtrCollection clock(TrackKFOutSAPtrCollection& inputs);
0016 
0017     unsigned int nInputs() const { return nInputs_; }
0018     unsigned int nOutputs() const { return nOutputs_; }
0019     unsigned int nInterleaving() const { return nInterleaving_; }
0020     std::vector<std::vector<unsigned int> >& addr() { return addr_; }
0021     TrackKFOutSAPtrCollections& inputs() { return inputs_; }
0022 
0023   private:
0024     unsigned int nInputs_;
0025     unsigned int nOutputs_;
0026     unsigned int nInterleaving_;
0027 
0028     TrackKFOutSAPtrCollections inputs_;
0029     std::vector<std::vector<unsigned int> > addr_;
0030   };
0031 }  // namespace trackerTFP
0032 
0033 #endif