#include <interface/TTUInput.h>
Public Member Functions | |
void | force (const std::vector< int > &) |
void | mask (const std::vector< int > &) |
TTUInput & | operator= (const TTUInput &rhs) |
void | reset () |
TTUInput () | |
Standard constructor. | |
TTUInput (const TTUInput &in) | |
virtual | ~TTUInput () |
Public Attributes | |
std::bitset< 6 > * | input_sec |
int | m_bx |
bool | m_hasHits |
std::bitset< 12 > | m_rbcDecision |
int | m_wheelId |
Private Attributes | |
bool | m_debug |
TTUInput::TTUInput | ( | ) |
Standard constructor.
Destructor
Definition at line 19 of file TTUInput.cc.
References i, input_sec, m_bx, m_debug, m_hasHits, m_rbcDecision, m_wheelId, and reset().
TTUInput::~TTUInput | ( | ) | [virtual] |
TTUInput::TTUInput | ( | const TTUInput & | in | ) | [inline] |
Definition at line 27 of file TTUInput.h.
References i, input_sec, m_bx, m_hasHits, m_rbcDecision, and m_wheelId.
void TTUInput::force | ( | const std::vector< int > & | forcevec | ) |
Definition at line 69 of file TTUInput.cc.
{ //if( m_debug ) std::cout << forcevec.size() << std::endl; //std::bitset<15> tmp; //for(int i=0; i < 15; ++i) // tmp.set(i,forcevec[i]); //... operate on the first sector //input_sec[0]|=tmp; //tmp.reset(); //for(int i=15; i < 30; ++i) // tmp.set( (i-15),forcevec[i]); //input_sec[1]|=tmp; //tmp.reset(); }
void TTUInput::mask | ( | const std::vector< int > & | maskvec | ) |
Definition at line 58 of file TTUInput.cc.
Referenced by TTUBasicConfig::preprocess().
{ //for(int i=0; i < 15; ++i) // if ( maskvec[i] ) input_sec[0].set(i,0); //for(int i=15; i < 30; ++i) // if ( maskvec[i] ) input_sec[1].set( (i-15),0); }
Definition at line 38 of file TTUInput.h.
References i, input_sec, m_bx, m_hasHits, m_rbcDecision, and m_wheelId.
{ if (this == &rhs) return (*this); (*this).m_bx = rhs.m_bx; (*this).m_wheelId = rhs.m_wheelId; (*this).m_hasHits = rhs.m_hasHits; (*this).input_sec = new std::bitset<6>[12]; (*this).m_rbcDecision = rhs.m_rbcDecision; for(int i=0; i < 12; ++i) (*this).input_sec[i] = rhs.input_sec[i]; return (*this); };
void TTUInput::reset | ( | void | ) |
Definition at line 44 of file TTUInput.cc.
References i, input_sec, m_bx, m_hasHits, m_rbcDecision, and m_wheelId.
Referenced by RPCWheel::retrieveWheelMap(), and TTUInput().
std::bitset<6>* TTUInput::input_sec |
Definition at line 59 of file TTUInput.h.
Referenced by operator=(), RPCWheelMap::prepareData(), RPCWheel::print_wheel(), TTUWedgeORLogic::process(), reset(), RPCWheel::retrieveWheelMap(), TTUTrackingAlg::runSeedBuster(), TTUInput(), and ~TTUInput().
int TTUInput::m_bx |
Definition at line 53 of file TTUInput.h.
Referenced by operator=(), RPCWheelMap::prepareData(), RPCWheel::print_wheel(), TTUTrackingAlg::process(), reset(), and TTUInput().
bool TTUInput::m_debug [private] |
Definition at line 69 of file TTUInput.h.
Referenced by TTUInput().
bool TTUInput::m_hasHits |
Definition at line 57 of file TTUInput.h.
Referenced by operator=(), RPCWheelMap::prepareData(), reset(), TTUInput(), and ~TTUInput().
std::bitset<12> TTUInput::m_rbcDecision |
Definition at line 60 of file TTUInput.h.
Referenced by operator=(), TTUSectorORLogic::process(), reset(), RPCWheel::retrieveWheelMap(), and TTUInput().
Definition at line 55 of file TTUInput.h.
Referenced by operator=(), RPCWheel::print_wheel(), TTUWedgeORLogic::process(), reset(), RPCWheel::retrieveWheelMap(), and TTUInput().