CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
SimpleL1MuGMTCand.cc File Reference
#include "FastSimDataFormats/L1GlobalMuonTrigger/interface/SimpleL1MuGMTCand.h"
#include "SimDataFormats/Track/interface/SimTrack.h"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const SimpleL1MuGMTCand &id)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const SimpleL1MuGMTCand id 
)

Definition at line 314 of file SimpleL1MuGMTCand.cc.

References SimpleL1MuGMTCand::empty(), and alignCSCRings::s.

314  {
315 
316  using namespace std;
317 
318  if ( !id.empty() ) {
319  s << setiosflags(ios::showpoint | ios::fixed)
320  << "pt = " << setw(5) << setprecision(1) << id.ptValue() << " GeV "
321  << "charge = " << setw(2) << id.charge() << " "
322  << "eta = " << setw(5) << setprecision(2) << id.etaValue() << " "
323  << "phi = " << setw(5) << setprecision(3) << id.phiValue() << " rad ";
324 
325  }
326  return s;
327 
328 }