CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
void reset ()
 
 TTUInput ()
 Standard constructor. More...
 
 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
 

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.

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().

19  {
20 
21  m_bx = 0;
22  m_wheelId = 0;
23  m_hasHits = false;
24  input_sec = new std::bitset<6>[12];
25  m_rbcDecision.reset();
26 
27  for(int i=0; i < 12; ++i)
28  input_sec[i].reset();
29 
30  m_debug = false;
31 
32 }
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:53
int m_wheelId
Definition: TTUInput.h:55
void reset()
Definition: TTUInput.cc:44
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:60
bool m_debug
Definition: TTUInput.h:69
bool m_hasHits
Definition: TTUInput.h:57
std::bitset< 6 > * input_sec
Definition: TTUInput.h:59
TTUInput::~TTUInput ( )
virtual

Definition at line 36 of file TTUInput.cc.

References input_sec, and m_hasHits.

36  {
37 
38  m_hasHits = false;
39  if ( input_sec ) delete[] input_sec;
40 
41 }
bool m_hasHits
Definition: TTUInput.h:57
std::bitset< 6 > * input_sec
Definition: TTUInput.h:59
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.

28  {
29  m_bx = in.m_bx;
30  m_wheelId = in.m_wheelId;
31  m_hasHits = in.m_hasHits;
33  input_sec = new std::bitset<6>[12];
34  for(int i=0; i < 12; ++i)
35  input_sec[i] = in.input_sec[i];
36  };
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:53
int m_wheelId
Definition: TTUInput.h:55
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:60
bool m_hasHits
Definition: TTUInput.h:57
std::bitset< 6 > * input_sec
Definition: TTUInput.h:59

Member Function Documentation

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

Definition at line 69 of file TTUInput.cc.

70 {
71 
72  //if( m_debug ) std::cout << forcevec.size() << std::endl;
73 
74  //std::bitset<15> tmp;
75 
76  //for(int i=0; i < 15; ++i)
77  // tmp.set(i,forcevec[i]);
78 
79  //... operate on the first sector
80  //input_sec[0]|=tmp;
81  //tmp.reset();
82 
83  //for(int i=15; i < 30; ++i)
84  // tmp.set( (i-15),forcevec[i]);
85 
86  //input_sec[1]|=tmp;
87 
88  //tmp.reset();
89 
90 }
void TTUInput::mask ( const std::vector< int > &  maskvec)

Definition at line 58 of file TTUInput.cc.

Referenced by TTUBasicConfig::preprocess().

59 {
60 
61  //for(int i=0; i < 15; ++i)
62  // if ( maskvec[i] ) input_sec[0].set(i,0);
63 
64  //for(int i=15; i < 30; ++i)
65  // if ( maskvec[i] ) input_sec[1].set( (i-15),0);
66 
67 }
TTUInput& TTUInput::operator= ( const TTUInput rhs)
inline

Definition at line 38 of file TTUInput.h.

References i, input_sec, m_bx, m_hasHits, m_rbcDecision, m_wheelId, and hitfit::return.

39  {
40  if (this == &rhs) return (*this);
41  (*this).m_bx = rhs.m_bx;
42  (*this).m_wheelId = rhs.m_wheelId;
43  (*this).m_hasHits = rhs.m_hasHits;
44  (*this).input_sec = new std::bitset<6>[12];
45  (*this).m_rbcDecision = rhs.m_rbcDecision;
46  for(int i=0; i < 12; ++i)
47  (*this).input_sec[i] = rhs.input_sec[i];
48  return (*this);
49  };
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:53
int m_wheelId
Definition: TTUInput.h:55
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:60
bool m_hasHits
Definition: TTUInput.h:57
std::bitset< 6 > * input_sec
Definition: TTUInput.h:59
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().

45 {
46 
47  m_bx = 0;
48  m_wheelId = 0;
49  m_hasHits = false;
50 
51  for(int i=0; i < 12; ++i)
52  input_sec[i].reset();
53 
54  m_rbcDecision.reset();
55 
56 }
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:53
int m_wheelId
Definition: TTUInput.h:55
void reset()
Definition: TTUInput.cc:44
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:60
bool m_hasHits
Definition: TTUInput.h:57
std::bitset< 6 > * input_sec
Definition: TTUInput.h:59

Member Data Documentation

std::bitset<6>* TTUInput::input_sec
int TTUInput::m_bx
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
int TTUInput::m_wheelId