CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
omtf::MuonDataWord64 Class Reference

#include <OmtfMuonDataWord64.h>

Public Member Functions

unsigned int bxNum () const
 
unsigned int ch () const
 
int eta () const
 
unsigned int layers () const
 
 MuonDataWord64 (Word64 data=0)
 
int phi () const
 
unsigned int pT () const
 
unsigned int quality () const
 
unsigned int type () const
 
unsigned int vch () const
 
unsigned int weight_lowBits () const
 

Private Attributes

union {
   struct {
      uint64_t   bc0_: 1
 
      uint64_t   bxNum_: 3
 
      uint64_t   ch_: 1
 
      uint64_t   empty_: 1
 
      int64_t   eta_: 9
 
      uint64_t   layers_: 18
 
      int64_t   phi_: 8
 
      uint64_t   pT_: 9
 
      uint64_t   quality_: 4
 
      uint64_t   type_: 4
 
      uint64_t   vch_: 1
 
      uint64_t   weight_: 5
 
   } 
 
   uint64_t   rawData
 
}; 
 

Friends

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

Detailed Description

Definition at line 8 of file OmtfMuonDataWord64.h.

Constructor & Destructor Documentation

◆ MuonDataWord64()

omtf::MuonDataWord64::MuonDataWord64 ( Word64  data = 0)
inline

Definition at line 10 of file OmtfMuonDataWord64.h.

10 : rawData(data) {}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

Member Function Documentation

◆ bxNum()

unsigned int omtf::MuonDataWord64::bxNum ( ) const
inline

Definition at line 19 of file OmtfMuonDataWord64.h.

References bxNum_.

19 { return bxNum_; }

◆ ch()

unsigned int omtf::MuonDataWord64::ch ( ) const
inline

Definition at line 13 of file OmtfMuonDataWord64.h.

References ch_.

13 { return ch_; }

◆ eta()

int omtf::MuonDataWord64::eta ( void  ) const
inline

Definition at line 16 of file OmtfMuonDataWord64.h.

References eta_.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

16 { return eta_; }

◆ layers()

unsigned int omtf::MuonDataWord64::layers ( ) const
inline

Definition at line 12 of file OmtfMuonDataWord64.h.

References layers_.

12 { return layers_; }

◆ phi()

int omtf::MuonDataWord64::phi ( void  ) const
inline

Definition at line 15 of file OmtfMuonDataWord64.h.

References phi_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

15 { return phi_; }

◆ pT()

unsigned int omtf::MuonDataWord64::pT ( ) const
inline

Definition at line 17 of file OmtfMuonDataWord64.h.

References pT_.

17 { return pT_; }

◆ quality()

unsigned int omtf::MuonDataWord64::quality ( void  ) const
inline

Definition at line 18 of file OmtfMuonDataWord64.h.

References quality_.

18 { return quality_; }

◆ type()

unsigned int omtf::MuonDataWord64::type ( ) const
inline

Definition at line 20 of file OmtfMuonDataWord64.h.

References type_.

20 { return type_; }

◆ vch()

unsigned int omtf::MuonDataWord64::vch ( ) const
inline

Definition at line 14 of file OmtfMuonDataWord64.h.

References vch_.

14 { return vch_; }

◆ weight_lowBits()

unsigned int omtf::MuonDataWord64::weight_lowBits ( ) const
inline

Definition at line 11 of file OmtfMuonDataWord64.h.

References weight_.

11 { return weight_; }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 6 of file OmtfMuonDataWord64.cc.

6  {
7  out << "MuonDataWord64: "
8  << " type: " << DataWord64::type(o.type()) << " bx: " << o.bxNum() << " pT: " << o.pT() << " eta: " << o.eta()
9  << " phi: " << o.phi() << " quality: " << o.quality() << " layers: " << std::bitset<18>(o.layers()) << "";
10  return out;
11  }
Type type(const T &)

Member Data Documentation

◆ @513

union { ... }

◆ bc0_

uint64_t omtf::MuonDataWord64::bc0_

Definition at line 32 of file OmtfMuonDataWord64.h.

◆ bxNum_

uint64_t omtf::MuonDataWord64::bxNum_

Definition at line 37 of file OmtfMuonDataWord64.h.

Referenced by bxNum().

◆ ch_

uint64_t omtf::MuonDataWord64::ch_

Definition at line 33 of file OmtfMuonDataWord64.h.

Referenced by ch().

◆ empty_

uint64_t omtf::MuonDataWord64::empty_

Definition at line 30 of file OmtfMuonDataWord64.h.

◆ eta_

int64_t omtf::MuonDataWord64::eta_

Definition at line 29 of file OmtfMuonDataWord64.h.

Referenced by eta().

◆ layers_

uint64_t omtf::MuonDataWord64::layers_

Definition at line 35 of file OmtfMuonDataWord64.h.

Referenced by layers().

◆ phi_

int64_t omtf::MuonDataWord64::phi_

Definition at line 31 of file OmtfMuonDataWord64.h.

Referenced by phi().

◆ pT_

uint64_t omtf::MuonDataWord64::pT_

Definition at line 27 of file OmtfMuonDataWord64.h.

Referenced by pT().

◆ quality_

uint64_t omtf::MuonDataWord64::quality_

Definition at line 28 of file OmtfMuonDataWord64.h.

Referenced by quality().

◆ rawData

uint64_t omtf::MuonDataWord64::rawData

Definition at line 25 of file OmtfMuonDataWord64.h.

◆ type_

uint64_t omtf::MuonDataWord64::type_

◆ vch_

uint64_t omtf::MuonDataWord64::vch_

Definition at line 34 of file OmtfMuonDataWord64.h.

Referenced by vch().

◆ weight_

uint64_t omtf::MuonDataWord64::weight_

Definition at line 36 of file OmtfMuonDataWord64.h.

Referenced by weight_lowBits().