test
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 17 of file TTUInput.h.

Constructor & Destructor Documentation

TTUInput::TTUInput ( )

Standard constructor.

Destructor

Definition at line 18 of file TTUInput.cc.

References i, input_sec, m_bx, m_debug, m_hasHits, m_rbcDecision, m_wheelId, and reset().

18  {
19 
20  m_bx = 0;
21  m_wheelId = 0;
22  m_hasHits = false;
23  input_sec = new std::bitset<6>[12];
24  m_rbcDecision.reset();
25 
26  for(int i=0; i < 12; ++i)
27  input_sec[i].reset();
28 
29  m_debug = false;
30 
31 }
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:52
int m_wheelId
Definition: TTUInput.h:54
void reset()
Definition: TTUInput.cc:43
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:59
bool m_debug
Definition: TTUInput.h:68
bool m_hasHits
Definition: TTUInput.h:56
std::bitset< 6 > * input_sec
Definition: TTUInput.h:58
TTUInput::~TTUInput ( )
virtual

Definition at line 35 of file TTUInput.cc.

References input_sec, and m_hasHits.

35  {
36 
37  m_hasHits = false;
38  if ( input_sec ) delete[] input_sec;
39 
40 }
bool m_hasHits
Definition: TTUInput.h:56
std::bitset< 6 > * input_sec
Definition: TTUInput.h:58
TTUInput::TTUInput ( const TTUInput in)
inline

Definition at line 26 of file TTUInput.h.

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

27  {
28  m_bx = in.m_bx;
29  m_wheelId = in.m_wheelId;
30  m_hasHits = in.m_hasHits;
32  input_sec = new std::bitset<6>[12];
33  for(int i=0; i < 12; ++i)
34  input_sec[i] = in.input_sec[i];
35  };
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:52
int m_wheelId
Definition: TTUInput.h:54
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:59
bool m_hasHits
Definition: TTUInput.h:56
std::bitset< 6 > * input_sec
Definition: TTUInput.h:58

Member Function Documentation

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

Definition at line 68 of file TTUInput.cc.

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

Definition at line 57 of file TTUInput.cc.

Referenced by TTUBasicConfig::preprocess().

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

Definition at line 37 of file TTUInput.h.

References i, input_sec, m_bx, m_hasHits, m_rbcDecision, m_wheelId, and reco::return().

38  {
39  if (this == &rhs) return (*this);
40  (*this).m_bx = rhs.m_bx;
41  (*this).m_wheelId = rhs.m_wheelId;
42  (*this).m_hasHits = rhs.m_hasHits;
43  (*this).input_sec = new std::bitset<6>[12];
44  (*this).m_rbcDecision = rhs.m_rbcDecision;
45  for(int i=0; i < 12; ++i)
46  (*this).input_sec[i] = rhs.input_sec[i];
47  return (*this);
48  };
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:52
int m_wheelId
Definition: TTUInput.h:54
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:59
return(e1-e2)*(e1-e2)+dp *dp
bool m_hasHits
Definition: TTUInput.h:56
std::bitset< 6 > * input_sec
Definition: TTUInput.h:58
void TTUInput::reset ( void  )

Definition at line 43 of file TTUInput.cc.

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

Referenced by RPCWheel::retrieveWheelMap(), and TTUInput().

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

Member Data Documentation

std::bitset<6>* TTUInput::input_sec
int TTUInput::m_bx
bool TTUInput::m_debug
private

Definition at line 68 of file TTUInput.h.

Referenced by TTUInput().

bool TTUInput::m_hasHits

Definition at line 56 of file TTUInput.h.

Referenced by operator=(), RPCWheelMap::prepareData(), reset(), TTUInput(), and ~TTUInput().

std::bitset<12> TTUInput::m_rbcDecision
int TTUInput::m_wheelId