CMS 3D CMS Logo

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

#include <DataFormats.h>

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

Public Member Functions

int inv2R () const
 
int layer () const
 
double phi () const
 
int phiT () const
 
double r () const
 
int sectorEta () const
 
int sectorPhi () const
 
 StubMHT (const tt::FrameStub &frame, const DataFormats *dataFormats)
 
 StubMHT (const StubHT &stub, int phiT, int inv2R)
 
double z () const
 
 ~StubMHT ()
 
- Public Member Functions inherited from trackerTFP::Stub< double, double, double, int, int, 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 Member Functions

void fillTrackId ()
 

Additional Inherited Members

- Protected Member Functions inherited from trackerTFP::Stub< double, double, double, int, int, 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, int, int >
std::tuple< Ts... > data_
 
const DataFormatsdataFormats_
 
tt::FrameStub frame_
 
Process p_
 
int trackId_
 

Detailed Description

Definition at line 708 of file DataFormats.h.

Constructor & Destructor Documentation

◆ StubMHT() [1/2]

trackerTFP::StubMHT::StubMHT ( const tt::FrameStub frame,
const DataFormats dataFormats 
)

◆ StubMHT() [2/2]

trackerTFP::StubMHT::StubMHT ( const StubHT stub,
int  phiT,
int  inv2R 
)

Definition at line 245 of file DataFormats.cc.

References trackerTFP::Stub< double, double, double, int, int, int, int, int >::base(), trackerTFP::DataFormats::convertStub(), trackerTFP::Stub< double, double, double, int, int, int, int, int >::data_, trackerTFP::Stub< double, double, double, int, int, int, int, int >::dataFormats_, fillTrackId(), trackerTFP::Stub< double, double, double, int, int, int, int, int >::frame_, trackerTFP::inv2R, inv2R(), tt::Setup::mhtNumBinsInv2R(), tt::Setup::mhtNumBinsPhiT(), trackerTFP::Stub< double, double, double, int, int, int, int, int >::p_, trackerTFP::phiT, phiT(), r(), trackerTFP::sectorEta, trackerTFP::sectorPhi, singleTopDQM_cfi::setup, and trackerTFP::DataFormats::setup().

246  : Stub(stub,
247  stub.r(),
248  stub.phi(),
249  stub.z(),
250  stub.layer(),
251  stub.sectorPhi(),
252  stub.sectorEta(),
253  stub.phiT(),
254  stub.inv2R()) {
255  const Setup* setup = dataFormats_->setup();
256  // update track (phIT, inv2R), and phi residuals w.r.t. track, to reflect MHT cell assignment.
257  get<6>(data_) = this->phiT() * setup->mhtNumBinsPhiT() + phiT;
258  get<7>(data_) = this->inv2R() * setup->mhtNumBinsInv2R() + inv2R;
259  get<1>(data_) -= base(Variable::inv2R) * (inv2R - .5) * r() + base(Variable::phiT) * (phiT - .5);
261  fillTrackId();
262  }
Class to process and provide run-time constants used by Track Trigger emulators.
Definition: Setup.h:44
double r() const
Definition: DataFormats.h:716
void convertStub(Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const
int mhtNumBinsInv2R() const
Definition: Setup.h:450
const tt::Setup * setup() const
Definition: DataFormats.h:488
int inv2R() const
Definition: DataFormats.h:730
int mhtNumBinsPhiT() const
Definition: Setup.h:452
int phiT() const
Definition: DataFormats.h:728

◆ ~StubMHT()

trackerTFP::StubMHT::~StubMHT ( )
inline

Definition at line 714 of file DataFormats.h.

714 {}

Member Function Documentation

◆ fillTrackId()

void trackerTFP::StubMHT::fillTrackId ( )
private

◆ inv2R()

int trackerTFP::StubMHT::inv2R ( ) const
inline

◆ layer()

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

◆ phi()

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

◆ phiT()

int trackerTFP::StubMHT::phiT ( ) const
inline

◆ r()

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

◆ sectorEta()

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

◆ sectorPhi()

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

◆ z()

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