CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 306 of file SimpleL1MuGMTCand.cc.

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

306  {
307  using namespace std;
308 
309  if (!id.empty()) {
310  s << setiosflags(ios::showpoint | ios::fixed) << "pt = " << setw(5) << setprecision(1) << id.ptValue() << " GeV "
311  << "charge = " << setw(2) << id.charge() << " "
312  << "eta = " << setw(5) << setprecision(2) << id.etaValue() << " "
313  << "phi = " << setw(5) << setprecision(3) << id.phiValue() << " rad ";
314  }
315  return s;
316 }