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::TTUInput ( )

Standard constructor.

Definition at line 18 of file TTUInput.cc.

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

18  {
19 
20  m_bx = 0;
21  m_wheelId = 0;
22  m_hasHits = false;
23  m_rbcDecision.reset();
24 
25  m_debug = false;
26 
27 }
int m_bx
Definition: TTUInput.h:31
int m_wheelId
Definition: TTUInput.h:33
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:38
bool m_debug
Definition: TTUInput.h:47
bool m_hasHits
Definition: TTUInput.h:35
TTUInput::TTUInput ( const TTUInput in)
default
TTUInput::TTUInput ( TTUInput &&  in)
default

Member Function Documentation

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

Definition at line 55 of file TTUInput.cc.

56 {
57 
58  //if( m_debug ) std::cout << forcevec.size() << std::endl;
59 
60  //std::bitset<15> tmp;
61 
62  //for(int i=0; i < 15; ++i)
63  // tmp.set(i,forcevec[i]);
64 
65  //... operate on the first sector
66  //input_sec[0]|=tmp;
67  //tmp.reset();
68 
69  //for(int i=15; i < 30; ++i)
70  // tmp.set( (i-15),forcevec[i]);
71 
72  //input_sec[1]|=tmp;
73 
74  //tmp.reset();
75 
76 }
void TTUInput::mask ( const std::vector< int > &  maskvec)

Definition at line 44 of file TTUInput.cc.

Referenced by TTUBasicConfig::preprocess().

45 {
46 
47  //for(int i=0; i < 15; ++i)
48  // if ( maskvec[i] ) input_sec[0].set(i,0);
49 
50  //for(int i=15; i < 30; ++i)
51  // if ( maskvec[i] ) input_sec[1].set( (i-15),0);
52 
53 }
TTUInput& TTUInput::operator= ( const TTUInput rhs)
default
TTUInput& TTUInput::operator= ( TTUInput &&  rhs)
default
void TTUInput::reset ( void  )

Definition at line 30 of file TTUInput.cc.

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

Referenced by RPCWheel::retrieveWheelMap().

31 {
32 
33  m_bx = 0;
34  m_wheelId = 0;
35  m_hasHits = false;
36 
37  for(int i=0; i < 12; ++i)
38  input_sec[i].reset();
39 
40  m_rbcDecision.reset();
41 
42 }
int m_bx
Definition: TTUInput.h:31
int m_wheelId
Definition: TTUInput.h:33
void reset()
Definition: TTUInput.cc:30
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:38
std::array< std::bitset< 6 >, 12 > input_sec
Definition: TTUInput.h:37
bool m_hasHits
Definition: TTUInput.h:35

Member Data Documentation

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

Definition at line 31 of file TTUInput.h.

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

bool TTUInput::m_debug
private

Definition at line 47 of file TTUInput.h.

Referenced by TTUInput().

bool TTUInput::m_hasHits

Definition at line 35 of file TTUInput.h.

Referenced by reset(), and TTUInput().

std::bitset<12> TTUInput::m_rbcDecision

Definition at line 38 of file TTUInput.h.

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

int TTUInput::m_wheelId