CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/L1Trigger/RPCTechnicalTrigger/src/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.

                                                          {
  
  for(int i=0; i < 15; ++i) ostr << rhs.input_sec[0][i];
  ostr << '\t';
  for(int i=0; i < 15; ++i) ostr << rhs.input_sec[1][i];
  ostr << '\n';
  
  return ostr;
  
}
std::istream& operator>> ( std::istream &  istr,
RBCInput rhs 
)

Definition at line 13 of file RBCInput.cc.

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

                                                          {
  
  int _ks=0;
  
  for(int i=0 ; i < 30; ++i) { 
    istr >> rhs.input[i];
    if ( i < 15 ) _ks = 0;
    else _ks = 1;
    rhs.input_sec[_ks].set(i-(15*_ks), rhs.input[i]);
  }
  return istr;

}