CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
trackerTFP::StubGP Class Reference

#include <DataFormats.h>

Inheritance diagram for trackerTFP::StubGP:
trackerTFP::Stub< double, double, double, int, int, int >

Public Member Functions

bool inInv2RBin (int inv2RBin) const
 
std::vector< int > inv2RBins () const
 
int inv2RMax () const
 
int inv2RMin () const
 
int layer () const
 
double phi () const
 
double r () const
 
int sectorEta () const
 
int sectorPhi () const
 
 StubGP (const tt::FrameStub &frame, const DataFormats *dataFormats, int sectorPhi, int sectorEta)
 
 StubGP (const StubPP &stub, int sectorPhi, int sectorEta)
 
double z () const
 
 ~StubGP ()
 
- Public Member Functions inherited from trackerTFP::Stub< double, double, double, int, int, int >
tt::Frame bv () const
 
const DataFormatsdataFormats () const
 
tt::FrameStub frame () const
 
 operator bool () const
 
Process p () const
 
 Stub (const tt::FrameStub &frame, const DataFormats *dataFormats, Process p)
 
 Stub (const Stub< Others... > &stub, Ts... data)
 
 Stub (const TTStubRef &ttStubRef, const DataFormats *dataFormats, Process p, Ts... data)
 
 Stub ()
 
int trackId () const
 
TTStubRef ttStubRef () const
 
 ~Stub ()
 

Private Attributes

TTBV inv2RBins_
 
int sectorEta_
 
int sectorPhi_
 

Additional Inherited Members

- Protected Member Functions inherited from trackerTFP::Stub< double, double, double, int, int, int >
double base (Variable v) const
 
DataFormat format (Variable v) const
 
int width (Variable v) const
 
- Protected Attributes inherited from trackerTFP::Stub< double, double, double, int, int, int >
std::tuple< Ts... > data_
 
const DataFormatsdataFormats_
 
tt::FrameStub frame_
 
Process p_
 
int trackId_
 

Detailed Description

Definition at line 638 of file DataFormats.h.

Constructor & Destructor Documentation

◆ StubGP() [1/2]

trackerTFP::StubGP::StubGP ( const tt::FrameStub frame,
const DataFormats dataFormats,
int  sectorPhi,
int  sectorEta 
)

Definition at line 193 of file DataFormats.cc.

References trackerTFP::Stub< double, double, double, int, int, int >::dataFormats_, trackerTFP::inv2R, inv2RBins_, inv2RMax(), inv2RMin(), trackerTFP::sectorEta, trackerTFP::sectorPhi, TTBV::set(), singleTopDQM_cfi::setup, trackerTFP::DataFormats::setup(), and TTBV::size().

195  const Setup* setup = dataFormats_->setup();
196  inv2RBins_ = TTBV(0, setup->htNumBinsInv2R());
197  for (int inv2R = inv2RMin(); inv2R <= inv2RMax(); inv2R++)
199  }
Bit vector used by Track Trigger emulators. Mainly used to convert integers into arbitrary (within ma...
Definition: TTBV.h:20
Class to process and provide run-time constants used by Track Trigger emulators.
Definition: Setup.h:44
int size() const
Definition: TTBV.h:69
TTBV & set()
Definition: TTBV.h:187
int inv2RMin() const
Definition: DataFormats.h:662
int sectorPhi() const
Definition: DataFormats.h:650
int inv2RMax() const
Definition: DataFormats.h:664
const tt::Setup * setup() const
Definition: DataFormats.h:488
int sectorEta() const
Definition: DataFormats.h:652

◆ StubGP() [2/2]

trackerTFP::StubGP::StubGP ( const StubPP stub,
int  sectorPhi,
int  sectorEta 
)

Definition at line 202 of file DataFormats.cc.

References trackerTFP::DataFormats::chosenRofPhi(), trackerTFP::DataFormats::convertStub(), trackerTFP::Stub< double, double, double, int, int, int >::data_, trackerTFP::Stub< double, double, double, int, int, int >::dataFormats_, trackerTFP::Stub< double, double, double, int, int, int >::frame_, trackerTFP::Stub< double, double, double, int, int, int >::p_, r(), trackerTFP::sectorEta, sectorEta_, trackerTFP::sectorPhi, sectorPhi_, singleTopDQM_cfi::setup, and trackerTFP::DataFormats::setup().

203  : Stub(stub, stub.r(), stub.phi(), stub.z(), stub.layer(), stub.inv2RMin(), stub.inv2RMax()),
206  const Setup* setup = dataFormats_->setup();
207  get<1>(data_) -= (sectorPhi_ - .5) * setup->baseSector();
208  get<2>(data_) -= (r() + dataFormats_->chosenRofPhi()) * setup->sectorCot(sectorEta_);
210  }
Class to process and provide run-time constants used by Track Trigger emulators.
Definition: Setup.h:44
void convertStub(Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const
double chosenRofPhi() const
Definition: DataFormats.h:508
int sectorPhi() const
Definition: DataFormats.h:650
const tt::Setup * setup() const
Definition: DataFormats.h:488
double r() const
Definition: DataFormats.h:654
int sectorEta() const
Definition: DataFormats.h:652

◆ ~StubGP()

trackerTFP::StubGP::~StubGP ( )
inline

Definition at line 644 of file DataFormats.h.

644 {}

Member Function Documentation

◆ inInv2RBin()

bool trackerTFP::StubGP::inInv2RBin ( int  inv2RBin) const
inline

Definition at line 646 of file DataFormats.h.

References inv2RBins_.

Referenced by trackerTFP::HoughTransform::consume().

646 { return inv2RBins_[inv2RBin]; }

◆ inv2RBins()

std::vector<int> trackerTFP::StubGP::inv2RBins ( ) const
inline

Definition at line 648 of file DataFormats.h.

References TTBV::ids(), and inv2RBins_.

648 { return inv2RBins_.ids(); }
std::vector< int > ids(bool b=true, bool singed=false) const
Definition: TTBV.h:334

◆ inv2RMax()

int trackerTFP::StubGP::inv2RMax ( ) const
inline

Definition at line 664 of file DataFormats.h.

References trackerTFP::Stub< double, double, double, int, int, int >::data_.

Referenced by StubGP().

664 { return std::get<5>(data_); }

◆ inv2RMin()

int trackerTFP::StubGP::inv2RMin ( ) const
inline

Definition at line 662 of file DataFormats.h.

References trackerTFP::Stub< double, double, double, int, int, int >::data_.

Referenced by StubGP().

662 { return std::get<4>(data_); }

◆ layer()

int trackerTFP::StubGP::layer ( ) const
inline

◆ phi()

double trackerTFP::StubGP::phi ( void  ) const
inline

◆ r()

double trackerTFP::StubGP::r ( ) const
inline

◆ sectorEta()

int trackerTFP::StubGP::sectorEta ( ) const
inline

Definition at line 652 of file DataFormats.h.

References sectorEta_.

652 { return sectorEta_; }

◆ sectorPhi()

int trackerTFP::StubGP::sectorPhi ( ) const
inline

Definition at line 650 of file DataFormats.h.

References sectorPhi_.

650 { return sectorPhi_; }

◆ z()

double trackerTFP::StubGP::z ( ) const
inline

Member Data Documentation

◆ inv2RBins_

TTBV trackerTFP::StubGP::inv2RBins_
private

Definition at line 668 of file DataFormats.h.

Referenced by inInv2RBin(), inv2RBins(), and StubGP().

◆ sectorEta_

int trackerTFP::StubGP::sectorEta_
private

Definition at line 672 of file DataFormats.h.

Referenced by sectorEta(), and StubGP().

◆ sectorPhi_

int trackerTFP::StubGP::sectorPhi_
private

Definition at line 670 of file DataFormats.h.

Referenced by sectorPhi(), and StubGP().