CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 for(), mps_fire::i, and RBCInput::input_sec.

26  {
27  for (int i = 0; i < 15; ++i)
28  ostr << rhs.input_sec[0][i];
29  ostr << '\t';
30  for (int i = 0; i < 15; ++i)
31  ostr << rhs.input_sec[1][i];
32  ostr << '\n';
33 
34  return ostr;
35 }
for(Iditer=Id.begin();Iditer!=Id.end();Iditer++)
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  int _ks = 0;
14 
15  for (int i = 0; i < 30; ++i) {
16  istr >> rhs.input[i];
17  if (i < 15)
18  _ks = 0;
19  else
20  _ks = 1;
21  rhs.input_sec[_ks].set(i - (15 * _ks), rhs.input[i]);
22  }
23  return istr;
24 }
std::array< std::bitset< 15 >, 2 > input_sec
Definition: RBCInput.h:41
bool input[30]
Definition: RBCInput.h:40