CMS 3D CMS Logo

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

#include <DataFormats.h>

Inheritance diagram for trackerTFP::StubKF:
trackerTFP::Stub< double, double, double, double, double >

Public Member Functions

double dPhi () const
 
double dZ () const
 
int layer () const
 
double phi () const
 
double r () const
 
 StubKF (const tt::FrameStub &frame, const DataFormats *dataFormats, int layer)
 
 StubKF (const StubKFin &stub, double inv2R, double phiT, double cot, double zT)
 
double z () const
 
 ~StubKF ()
 
- Public Member Functions inherited from trackerTFP::Stub< double, double, double, double, double >
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

int layer_
 

Additional Inherited Members

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

Detailed Description

Definition at line 818 of file DataFormats.h.

Constructor & Destructor Documentation

◆ StubKF() [1/2]

trackerTFP::StubKF::StubKF ( const tt::FrameStub frame,
const DataFormats dataFormats,
int  layer 
)

◆ StubKF() [2/2]

trackerTFP::StubKF::StubKF ( const StubKFin stub,
double  inv2R,
double  phiT,
double  cot,
double  zT 
)

Definition at line 380 of file DataFormats.cc.

References trackerTFP::DataFormats::convertStub(), trackerTFP::cot, ztail::d, trackerTFP::Stub< double, double, double, double, double >::data_, trackerTFP::Stub< double, double, double, double, double >::dataFormats_, trackerTFP::DataFormat::digi(), trackerTFP::Stub< double, double, double, double, double >::format(), trackerTFP::Stub< double, double, double, double, double >::frame_, trackerTFP::DataFormats::hybrid(), tt::Setup::hybridChosenRofPhi(), trackerTFP::inv2R, trackerTFP::Stub< double, double, double, double, double >::p_, trackerTFP::phi, trackerTFP::StubKFin::phi(), trackerTFP::phiT, trackerTFP::r, r(), singleTopDQM_cfi::setup, trackerTFP::DataFormats::setup(), trackerTFP::z, trackerTFP::StubKFin::z(), and trackerTFP::zT.

381  : Stub(stub, stub.r(), 0., 0., stub.dPhi(), stub.dZ()), layer_(stub.layer()) {
382  const Setup* setup = dataFormats_->setup();
383  get<1>(data_) = format(Variable::phi).digi(stub.phi() - (phiT + this->r() * inv2R));
384  const double d =
385  (dataFormats_->hybrid() ? setup->hybridChosenRofPhi() : setup->chosenRofPhi()) - setup->chosenRofZ();
386  const double rz = format(Variable::r).digi(this->r() + d);
387  get<2>(data_) = format(Variable::z).digi(stub.z() - (zT + rz * cot));
389  }
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
d
Definition: ztail.py:151
double hybridChosenRofPhi() const
Definition: Setup.h:266
double r() const
Definition: DataFormats.h:828
const tt::Setup * setup() const
Definition: DataFormats.h:488
double digi(double d) const
Definition: DataFormats.h:98

◆ ~StubKF()

trackerTFP::StubKF::~StubKF ( )
inline

Definition at line 824 of file DataFormats.h.

824 {}

Member Function Documentation

◆ dPhi()

double trackerTFP::StubKF::dPhi ( ) const
inline

◆ dZ()

double trackerTFP::StubKF::dZ ( ) const
inline

◆ layer()

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

Definition at line 826 of file DataFormats.h.

References layer_.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

826 { return layer_; }

◆ phi()

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

◆ r()

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

Definition at line 828 of file DataFormats.h.

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

Referenced by StubKF().

828 { return std::get<0>(data_); }

◆ z()

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

Member Data Documentation

◆ layer_

int trackerTFP::StubKF::layer_
private

Definition at line 840 of file DataFormats.h.

Referenced by layer().