CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
trklet::VMStubME Class Reference

#include <VMStubME.h>

Public Member Functions

const FPGAWordbend () const
 
const FPGAWordfinephi () const
 
const FPGAWordfinerz () const
 
bool isPSmodule () const
 
std::string str () const
 
const Stubstub () const
 
const FPGAWordstubindex () const
 
 VMStubME ()
 
 VMStubME (const Stub *stub, FPGAWord finephi, FPGAWord finerz, FPGAWord bend, FPGAWord allstubindex)
 
 ~VMStubME ()=default
 

Private Attributes

FPGAWord allStubIndex_
 
FPGAWord bend_
 
FPGAWord finephi_
 
FPGAWord finerz_
 
const Stubstub_
 

Detailed Description

Definition at line 15 of file VMStubME.h.

Constructor & Destructor Documentation

◆ VMStubME() [1/2]

trklet::VMStubME::VMStubME ( )
inline

Definition at line 17 of file VMStubME.h.

17 {}

◆ VMStubME() [2/2]

VMStubME::VMStubME ( const Stub stub,
FPGAWord  finephi,
FPGAWord  finerz,
FPGAWord  bend,
FPGAWord  allstubindex 
)

Definition at line 6 of file VMStubME.cc.

6  {
7  stub_ = stub;
9  finerz_ = finerz;
10  bend_ = bend;
11  allStubIndex_ = allstubindex;
12 }

References trklet::bend().

◆ ~VMStubME()

trklet::VMStubME::~VMStubME ( )
default

Member Function Documentation

◆ bend()

const FPGAWord& trklet::VMStubME::bend ( ) const
inline

Definition at line 26 of file VMStubME.h.

26 { return bend_; }

References bend_.

Referenced by trklet::MatchEngine::execute(), and trklet::MatchEngineUnit::step().

◆ finephi()

const FPGAWord& trklet::VMStubME::finephi ( ) const
inline

Definition at line 23 of file VMStubME.h.

23 { return finephi_; }

References finephi_.

Referenced by trklet::MatchEngineUnit::step().

◆ finerz()

const FPGAWord& trklet::VMStubME::finerz ( ) const
inline

Definition at line 24 of file VMStubME.h.

24 { return finerz_; }

References finerz_.

Referenced by trklet::MatchEngine::execute(), and trklet::MatchEngineUnit::step().

◆ isPSmodule()

bool trklet::VMStubME::isPSmodule ( ) const
inline

Definition at line 30 of file VMStubME.h.

30 { return stub_->isPSmodule(); }

References trklet::Stub::isPSmodule(), and stub_.

Referenced by trklet::MatchEngine::execute(), and trklet::MatchEngineUnit::step().

◆ str()

std::string VMStubME::str ( ) const

Definition at line 14 of file VMStubME.cc.

14  {
15  string stub = allStubIndex_.str();
16  stub += "|";
17  stub += bend_.str();
18  stub += "|";
19  stub += finephi_.str();
20  stub += "|";
21  stub += finerz_.str();
22 
23  return stub;
24 }

◆ stub()

const Stub* trklet::VMStubME::stub ( ) const
inline

Definition at line 28 of file VMStubME.h.

28 { return stub_; }

References stub_.

Referenced by trklet::MatchEngine::execute(), and trklet::MatchEngineUnit::step().

◆ stubindex()

const FPGAWord& trklet::VMStubME::stubindex ( ) const
inline

Definition at line 32 of file VMStubME.h.

32 { return allStubIndex_; }

References allStubIndex_.

Member Data Documentation

◆ allStubIndex_

FPGAWord trklet::VMStubME::allStubIndex_
private

Definition at line 38 of file VMStubME.h.

Referenced by stubindex().

◆ bend_

FPGAWord trklet::VMStubME::bend_
private

Definition at line 41 of file VMStubME.h.

Referenced by bend().

◆ finephi_

FPGAWord trklet::VMStubME::finephi_
private

Definition at line 39 of file VMStubME.h.

Referenced by finephi().

◆ finerz_

FPGAWord trklet::VMStubME::finerz_
private

Definition at line 40 of file VMStubME.h.

Referenced by finerz().

◆ stub_

const Stub* trklet::VMStubME::stub_
private

Definition at line 42 of file VMStubME.h.

Referenced by isPSmodule(), and stub().

trklet::FPGAWord::str
std::string str() const
Definition: FPGAWord.cc:54
trklet::VMStubME::bend
const FPGAWord & bend() const
Definition: VMStubME.h:26
trklet::VMStubME::stub_
const Stub * stub_
Definition: VMStubME.h:42
trklet::VMStubME::stub
const Stub * stub() const
Definition: VMStubME.h:28
trklet::VMStubME::allStubIndex_
FPGAWord allStubIndex_
Definition: VMStubME.h:38
trklet::VMStubME::finephi_
FPGAWord finephi_
Definition: VMStubME.h:39
trklet::VMStubME::finerz_
FPGAWord finerz_
Definition: VMStubME.h:40
trklet::Stub::isPSmodule
bool isPSmodule() const
Definition: Stub.h:63
trklet::VMStubME::bend_
FPGAWord bend_
Definition: VMStubME.h:41
trklet::VMStubME::finerz
const FPGAWord & finerz() const
Definition: VMStubME.h:24
trklet::VMStubME::finephi
const FPGAWord & finephi() const
Definition: VMStubME.h:23