CMS 3D CMS Logo

Functions
RBCInput.cc File Reference
#include "L1Trigger/RPCTechnicalTrigger/interface/RBCInput.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ostr, RBCInput const &rhs)
 
std::istream & operator>> (std::istream &istr, RBCInput &rhs)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ostr,
RBCInput const &  rhs 
)

Definition at line 26 of file RBCInput.cc.

References mps_fire::i, and RBCInput::input_sec.

26  {
27 
28  for(int i=0; i < 15; ++i) ostr << rhs.input_sec[0][i];
29  ostr << '\t';
30  for(int i=0; i < 15; ++i) ostr << rhs.input_sec[1][i];
31  ostr << '\n';
32 
33  return ostr;
34 
35 }
std::istream& operator>> ( std::istream &  istr,
RBCInput rhs 
)

Definition at line 12 of file RBCInput.cc.

References mps_fire::i, RBCInput::input, and RBCInput::input_sec.

12  {
13 
14  int _ks=0;
15 
16  for(int i=0 ; i < 30; ++i) {
17  istr >> rhs.input[i];
18  if ( i < 15 ) _ks = 0;
19  else _ks = 1;
20  rhs.input_sec[_ks].set(i-(15*_ks), rhs.input[i]);
21  }
22  return istr;
23 
24 }
std::array< std::bitset< 15 >, 2 > input_sec
Definition: RBCInput.h:41
bool input[30]
Definition: RBCInput.h:40