CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 &rhs)
 
std::istream & operator>> (std::istream &istr, RBCInput &rhs)
 

Function Documentation

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

Definition at line 27 of file RBCInput.cc.

References i, and RBCInput::input_sec.

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

Definition at line 13 of file RBCInput.cc.

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

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