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 239 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().

240  : Stub(stub,
241  stub.r(),
242  stub.phi(),
243  stub.z(),
244  stub.layer(),
245  stub.sectorPhi(),
246  stub.sectorEta(),
247  stub.phiT(),
248  stub.inv2R()) {
249  const Setup* setup = dataFormats_->setup();
250  // update track (phIT, inv2R), and phi residuals w.r.t. track, to reflect MHT cell assignment.
251  get<6>(data_) = this->phiT() * setup->mhtNumBinsPhiT() + phiT;
252  get<7>(data_) = this->inv2R() * setup->mhtNumBinsInv2R() + inv2R;
253  get<1>(data_) -= base(Variable::inv2R) * (inv2R - .5) * r() + base(Variable::phiT) * (phiT - .5);
255  fillTrackId();
256  }
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:446
const tt::Setup * setup() const
Definition: DataFormats.h:488
int inv2R() const
Definition: DataFormats.h:730
int mhtNumBinsPhiT() const
Definition: Setup.h:448
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