CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
TTUInput Class Reference

#include <interface/TTUInput.h>

Public Member Functions

void force (const std::vector< int > &)
 
void mask (const std::vector< int > &)
 
TTUInputoperator= (const TTUInput &rhs)=default
 
TTUInputoperator= (TTUInput &&rhs)=default
 
void reset ()
 
 TTUInput ()
 Standard constructor. More...
 
 TTUInput (const TTUInput &in)=default
 
 TTUInput (TTUInput &&in)=default
 

Public Attributes

std::array< std::bitset< 6 >, 12 > input_sec
 
int m_bx
 
bool m_hasHits
 
std::bitset< 12 > m_rbcDecision
 
int m_wheelId
 

Private Attributes

bool m_debug
 

Detailed Description

Author
Andres Osorio

email: aosor.nosp@m.io@u.nosp@m.niand.nosp@m.es.e.nosp@m.du.co

Date
2008-10-16

Definition at line 18 of file TTUInput.h.

Constructor & Destructor Documentation

◆ TTUInput() [1/3]

TTUInput::TTUInput ( )

Standard constructor.

Definition at line 16 of file TTUInput.cc.

16  {
17  m_bx = 0;
18  m_wheelId = 0;
19  m_hasHits = false;
20  m_rbcDecision.reset();
21 
22  m_debug = false;
23 }

References m_bx, m_debug, m_hasHits, m_rbcDecision, and m_wheelId.

◆ TTUInput() [2/3]

TTUInput::TTUInput ( const TTUInput in)
default

◆ TTUInput() [3/3]

TTUInput::TTUInput ( TTUInput &&  in)
default

Member Function Documentation

◆ force()

void TTUInput::force ( const std::vector< int > &  forcevec)

Definition at line 45 of file TTUInput.cc.

45  {
46  //if( m_debug ) std::cout << forcevec.size() << std::endl;
47 
48  //std::bitset<15> tmp;
49 
50  //for(int i=0; i < 15; ++i)
51  // tmp.set(i,forcevec[i]);
52 
53  //... operate on the first sector
54  //input_sec[0]|=tmp;
55  //tmp.reset();
56 
57  //for(int i=15; i < 30; ++i)
58  // tmp.set( (i-15),forcevec[i]);
59 
60  //input_sec[1]|=tmp;
61 
62  //tmp.reset();
63 }

◆ mask()

void TTUInput::mask ( const std::vector< int > &  maskvec)

Definition at line 37 of file TTUInput.cc.

37  {
38  //for(int i=0; i < 15; ++i)
39  // if ( maskvec[i] ) input_sec[0].set(i,0);
40 
41  //for(int i=15; i < 30; ++i)
42  // if ( maskvec[i] ) input_sec[1].set( (i-15),0);
43 }

◆ operator=() [1/2]

TTUInput& TTUInput::operator= ( const TTUInput rhs)
default

◆ operator=() [2/2]

TTUInput& TTUInput::operator= ( TTUInput &&  rhs)
default

◆ reset()

void TTUInput::reset ( void  )

Definition at line 26 of file TTUInput.cc.

26  {
27  m_bx = 0;
28  m_wheelId = 0;
29  m_hasHits = false;
30 
31  for (int i = 0; i < 12; ++i)
32  input_sec[i].reset();
33 
34  m_rbcDecision.reset();
35 }

References mps_fire::i, input_sec, m_bx, m_hasHits, m_rbcDecision, and m_wheelId.

Member Data Documentation

◆ input_sec

std::array<std::bitset<6>, 12> TTUInput::input_sec

◆ m_bx

int TTUInput::m_bx

Definition at line 30 of file TTUInput.h.

Referenced by RPCWheel::print_wheel(), TTUTrackingAlg::process(), reset(), and TTUInput().

◆ m_debug

bool TTUInput::m_debug
private

Definition at line 44 of file TTUInput.h.

Referenced by TTUInput().

◆ m_hasHits

bool TTUInput::m_hasHits

Definition at line 34 of file TTUInput.h.

Referenced by reset(), and TTUInput().

◆ m_rbcDecision

std::bitset<12> TTUInput::m_rbcDecision

Definition at line 37 of file TTUInput.h.

Referenced by TTUSectorORLogic::process(), reset(), and TTUInput().

◆ m_wheelId

int TTUInput::m_wheelId

Definition at line 32 of file TTUInput.h.

Referenced by RPCWheel::print_wheel(), TTUWedgeORLogic::process(), reset(), and TTUInput().

mps_fire.i
i
Definition: mps_fire.py:355
TTUInput::m_rbcDecision
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:37
TTUInput::m_wheelId
int m_wheelId
Definition: TTUInput.h:32
TTUInput::m_hasHits
bool m_hasHits
Definition: TTUInput.h:34
TTUInput::reset
void reset()
Definition: TTUInput.cc:26
TTUInput::m_debug
bool m_debug
Definition: TTUInput.h:44
TTUInput::m_bx
int m_bx
Definition: TTUInput.h:30
TTUInput::input_sec
std::array< std::bitset< 6 >, 12 > input_sec
Definition: TTUInput.h:36