CMS 3D CMS Logo

Functions
AlgoMuon.cc File Reference
#include "L1Trigger/L1TMuonOverlap/interface/AlgoMuon.h"
#include <bitset>
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const AlgoMuon &o)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const AlgoMuon o 
)

Definition at line 18 of file AlgoMuon.cc.

References AlgoMuon::getBx(), AlgoMuon::getCharge(), AlgoMuon::getDisc(), AlgoMuon::getEta(), AlgoMuon::getHits(), AlgoMuon::getPhi(), AlgoMuon::getPt(), AlgoMuon::getQ(), AlgoMuon::getRefLayer(), and MillePedeFileConverter_cfg::out.

18  {
19  out <<"AlgoMuon: ";
20  out << " pt: " << o.getPt()
21  << ", phi: " << o.getPhi()
22  << ", eta: " << o.getEta()*2.61/240
23  << ", hits: " << std::bitset<18>(o.getHits()).to_string()
24  << ", q: " << o.getQ()
25  << ", bx: " << o.getBx()
26  << ", charge: "<< o.getCharge()
27  << ", disc: " << o.getDisc() << " refLayer: " << o.getRefLayer();
28 
29  return out;
30 }
int getCharge() const
Definition: AlgoMuon.h:26
int getEta() const
Definition: AlgoMuon.h:20
int getQ() const
Definition: AlgoMuon.h:23
int getDisc() const
Definition: AlgoMuon.h:18
int getBx() const
Definition: AlgoMuon.h:24
int getRefLayer() const
Definition: AlgoMuon.h:21
int getHits() const
Definition: AlgoMuon.h:22
int getPt() const
Definition: AlgoMuon.h:25
int getPhi() const
Definition: AlgoMuon.h:19