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 26 of file RBCInput.cc.

References 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 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 15 > * input_sec
Definition: RBCInput.h:64
std::istream& operator>> ( std::istream &  istr,
RBCInput rhs 
)

Definition at line 12 of file RBCInput.cc.

References 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 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 15 > * input_sec
Definition: RBCInput.h:64
bool input[30]
Definition: RBCInput.h:63