|
||||
File indexing completed on 2024-04-06 12:21:39
0001 // Include files 0002 0003 // local 0004 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUInput.h" 0005 #include <iostream> 0006 0007 //----------------------------------------------------------------------------- 0008 // Implementation file for class : TTUInput 0009 // 0010 // 2008-10-16 : Andres Osorio 0011 //----------------------------------------------------------------------------- 0012 0013 //============================================================================= 0014 // Standard constructor, initializes variables 0015 //============================================================================= 0016 TTUInput::TTUInput() { 0017 m_bx = 0; 0018 m_wheelId = 0; 0019 m_hasHits = false; 0020 m_rbcDecision.reset(); 0021 0022 m_debug = false; 0023 } 0024 //============================================================================= 0025 0026 void TTUInput::reset() { 0027 m_bx = 0; 0028 m_wheelId = 0; 0029 m_hasHits = false; 0030 0031 for (int i = 0; i < 12; ++i) 0032 input_sec[i].reset(); 0033 0034 m_rbcDecision.reset(); 0035 } 0036 0037 void TTUInput::mask(const std::vector<int>& maskvec) { 0038 //for(int i=0; i < 15; ++i) 0039 // if ( maskvec[i] ) input_sec[0].set(i,0); 0040 0041 //for(int i=15; i < 30; ++i) 0042 // if ( maskvec[i] ) input_sec[1].set( (i-15),0); 0043 } 0044 0045 void TTUInput::force(const std::vector<int>& forcevec) { 0046 //if( m_debug ) std::cout << forcevec.size() << std::endl; 0047 0048 //std::bitset<15> tmp; 0049 0050 //for(int i=0; i < 15; ++i) 0051 // tmp.set(i,forcevec[i]); 0052 0053 //... operate on the first sector 0054 //input_sec[0]|=tmp; 0055 //tmp.reset(); 0056 0057 //for(int i=15; i < 30; ++i) 0058 // tmp.set( (i-15),forcevec[i]); 0059 0060 //input_sec[1]|=tmp; 0061 0062 //tmp.reset(); 0063 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |