Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef INTERFACE_TTUINPUT_H
0002 #define INTERFACE_TTUINPUT_H 1
0003 
0004 // Include files
0005 #include <bitset>
0006 #include <vector>
0007 #include <array>
0008 
0009 /** @class TTUInput TTUInput.h interface/TTUInput.h
0010  *  
0011  *
0012  *  @author Andres Osorio
0013  *
0014  *  email: aosorio@uniandes.edu.co
0015  *
0016  *  @date   2008-10-16
0017  */
0018 class TTUInput {
0019 public:
0020   /// Standard constructor
0021   TTUInput();
0022 
0023   TTUInput(const TTUInput& in) = default;
0024   TTUInput(TTUInput&& in) = default;
0025   TTUInput& operator=(const TTUInput& rhs) = default;
0026   TTUInput& operator=(TTUInput&& rhs) = default;
0027 
0028   void reset();
0029 
0030   int m_bx;
0031 
0032   int m_wheelId;
0033 
0034   bool m_hasHits;
0035 
0036   std::array<std::bitset<6>, 12> input_sec;
0037   std::bitset<12> m_rbcDecision;
0038 
0039   void mask(const std::vector<int>&);
0040   void force(const std::vector<int>&);
0041 
0042 protected:
0043 private:
0044   bool m_debug;
0045 };
0046 #endif  // INTERFACE_TTUINPUT_H