CMS 3D CMS Logo

TTUInput.h
Go to the documentation of this file.
1 #ifndef INTERFACE_TTUINPUT_H
2 #define INTERFACE_TTUINPUT_H 1
3 
4 // Include files
5 #include <bitset>
6 #include <vector>
7 
17 class TTUInput {
18 public:
19 
21  TTUInput( );
22 
24  virtual ~TTUInput( );
25 
26  TTUInput( const TTUInput & in )
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  };
36 
37  TTUInput & operator=( const TTUInput & rhs )
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  };
49 
50  void reset();
51 
52  int m_bx;
53 
54  int m_wheelId;
55 
56  bool m_hasHits;
57 
58  std::bitset<6> * input_sec;
59  std::bitset<12> m_rbcDecision;
60 
61  void mask ( const std::vector<int> & );
62  void force( const std::vector<int> & );
63 
64 protected:
65 
66 private:
67 
68  bool m_debug;
69 
70 };
71 #endif // INTERFACE_TTUINPUT_H
int i
Definition: DBlmapReader.cc:9
int m_bx
Definition: TTUInput.h:52
void mask(const std::vector< int > &)
Definition: TTUInput.cc:57
int m_wheelId
Definition: TTUInput.h:54
void force(const std::vector< int > &)
Definition: TTUInput.cc:68
TTUInput(const TTUInput &in)
Definition: TTUInput.h:26
void reset()
Definition: TTUInput.cc:43
TTUInput()
Standard constructor.
Definition: TTUInput.cc:18
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:59
TTUInput & operator=(const TTUInput &rhs)
Definition: TTUInput.h:37
return(e1-e2)*(e1-e2)+dp *dp
bool m_debug
Definition: TTUInput.h:68
bool m_hasHits
Definition: TTUInput.h:56
virtual ~TTUInput()
Definition: TTUInput.cc:35
std::bitset< 6 > * input_sec
Definition: TTUInput.h:58