ATLAS Offline Software
Loading...
Searching...
No Matches
MuonFeatureDetails.cxx File Reference
#include <math.h>
#include <sstream>
#include <iomanip>
#include "TrigMuonEvent/MuonFeatureDetails.h"
Include dependency graph for MuonFeatureDetails.cxx:

Go to the source code of this file.

Functions

std::string str_bit (const uint32_t w, const unsigned int n)
MsgStream & operator<< (MsgStream &m, const MuonFeatureDetails &d)
std::ostream & operator<< (std::ostream &s, const MuonFeatureDetails &d)

Function Documentation

◆ operator<<() [1/2]

MsgStream & operator<< ( MsgStream & m,
const MuonFeatureDetails & d )

Definition at line 1774 of file MuonFeatureDetails.cxx.

1774 {
1775 m << d.str();
1776 return m;
1777}

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream & s,
const MuonFeatureDetails & d )

Definition at line 1779 of file MuonFeatureDetails.cxx.

1779 {
1780 s << d.str();
1781 return s;
1782}

◆ str_bit()

std::string str_bit ( const uint32_t w,
const unsigned int n )

Definition at line 1336 of file MuonFeatureDetails.cxx.

1336 {
1337
1338 int nbit = (n<=32)? n : 32;
1339 std::stringstream ss;
1340
1341 for(int i=nbit-1;i>=0;--i) ss << ( ((w>>i)&0x1)? 1 : 0 );
1342 //ss << std::endl;
1343
1344 return ss.str();
1345}
static Double_t ss