CMS 3D CMS Logo

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

#include <DataFormats.h>

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

Public Member Functions

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

Private Attributes

double chi_
 
double cot_
 
double r_
 
double zT_
 

Additional Inherited Members

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

Detailed Description

Definition at line 738 of file DataFormats.h.

Constructor & Destructor Documentation

◆ StubZHT() [1/4]

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

◆ StubZHT() [2/4]

trackerTFP::StubZHT::StubZHT ( const StubMHT stub)

Definition at line 279 of file DataFormats.cc.

References chi_, trackerTFP::DataFormats::chosenRofPhi(), tt::Setup::chosenRofZ(), cot_, trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::dataFormats_, trackerTFP::DataFormat::digi(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::format(), trackerTFP::inv2R, trackerTFP::phiT, trackerTFP::r, r(), r_, trackerTFP::sectorEta, trackerTFP::sectorPhi, trackerTFP::DataFormats::setup(), trackerTFP::Stub< Ts >::trackId(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::trackId_, trackerTFP::StubMHT::z(), and zT_.

280  : Stub(stub,
281  stub.r(),
282  stub.phi(),
283  stub.z(),
284  stub.layer(),
285  stub.sectorPhi(),
286  stub.sectorEta(),
287  stub.phiT(),
288  stub.inv2R(),
289  0,
290  0) {
291  cot_ = 0.;
292  zT_ = 0.;
294  chi_ = stub.z();
295  trackId_ = stub.trackId();
296  }
double chosenRofZ() const
Definition: Setup.h:417
double chosenRofPhi() const
Definition: DataFormats.h:508
double r() const
Definition: DataFormats.h:750
const tt::Setup * setup() const
Definition: DataFormats.h:488
double digi(double d) const
Definition: DataFormats.h:98

◆ StubZHT() [3/4]

trackerTFP::StubZHT::StubZHT ( const StubZHT stub,
double  zT,
double  cot,
int  id 
)

Definition at line 299 of file DataFormats.cc.

References chi_, trackerTFP::DataFormats::convertStub(), trackerTFP::cot, cot(), cot_, cotf(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::data_, trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::dataFormats_, trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::format(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::frame_, l1ctLayer2EG_cff::id, trackerTFP::DataFormat::integer(), trackerTFP::inv2R, trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::p_, trackerTFP::phiT, r_, trackerTFP::sectorEta, trackerTFP::sectorPhi, trackerTFP::Stub< Ts >::trackId(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::trackId_, z(), trackerTFP::zht, trackerTFP::zT, zT(), zT_, and ztf().

300  : Stub(stub.frame().first,
301  stub.dataFormats(),
302  Process::zht,
303  stub.r(),
304  stub.phi(),
305  stub.z(),
306  stub.layer(),
307  stub.sectorPhi(),
308  stub.sectorEta(),
309  stub.phiT(),
310  stub.inv2R(),
311  stub.zT(),
312  stub.cot()) {
313  // update track (zT, cot), and phi residuals w.r.t. track, to reflect ZHT cell assignment.
314  r_ = stub.r_;
315  cot_ = stub.cotf() + cot;
316  zT_ = stub.ztf() + zT;
317  chi_ = stub.z() - zT_ + r_ * cot_;
318  get<8>(data_) = format(Variable::zT).integer(zT_);
319  get<9>(data_) = format(Variable::cot).integer(cot_);
321  trackId_ = stub.trackId() * 4 + id;
322  }
void convertStub(Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const
int integer(double d) const
Definition: DataFormats.h:96

◆ StubZHT() [4/4]

trackerTFP::StubZHT::StubZHT ( const StubZHT stub,
int  cot,
int  zT 
)

Definition at line 325 of file DataFormats.cc.

References trackerTFP::DataFormats::convertStub(), trackerTFP::cot, cot(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::data_, trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::dataFormats_, trackerTFP::DataFormat::digi(), fillTrackId(), trackerTFP::DataFormat::floating(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::format(), trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::frame_, trackerTFP::inv2R, trackerTFP::Stub< double, double, double, int, int, int, int, int, int, int >::p_, trackerTFP::phiT, r_, trackerTFP::sectorEta, trackerTFP::sectorPhi, trackerTFP::z, z(), trackerTFP::zht, trackerTFP::zT, and zT().

326  : Stub(stub.frame().first,
327  stub.dataFormats(),
328  Process::zht,
329  stub.r(),
330  stub.phi(),
331  0.,
332  stub.layer(),
333  stub.sectorPhi(),
334  stub.sectorEta(),
335  stub.phiT(),
336  stub.inv2R(),
337  zT,
338  cot) {
339  get<2>(data_) =
341  .digi(stub.z() - (format(Variable::zT).floating(zT) - stub.r_ * format(Variable::cot).floating(cot)));
343  fillTrackId();
344  }
void convertStub(Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const
double floating(int i) const
Definition: DataFormats.h:94
double digi(double d) const
Definition: DataFormats.h:98

◆ ~StubZHT()

trackerTFP::StubZHT::~StubZHT ( )
inline

Definition at line 748 of file DataFormats.h.

748 {}

Member Function Documentation

◆ chi()

double trackerTFP::StubZHT::chi ( ) const
inline

Definition at line 771 of file DataFormats.h.

References chi_.

771 { return chi_; }

◆ cot()

int trackerTFP::StubZHT::cot ( ) const
inline

◆ cotf()

double trackerTFP::StubZHT::cotf ( ) const
inline

Definition at line 769 of file DataFormats.h.

References cot_.

Referenced by StubZHT().

769 { return cot_; }

◆ fillTrackId()

void trackerTFP::StubZHT::fillTrackId ( )
private

◆ inv2R()

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

◆ layer()

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

◆ phi()

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

◆ phiT()

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

◆ r()

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

◆ sectorEta()

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

◆ sectorPhi()

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

◆ z()

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

◆ zT()

int trackerTFP::StubZHT::zT ( ) const
inline

◆ ztf()

double trackerTFP::StubZHT::ztf ( ) const
inline

Definition at line 770 of file DataFormats.h.

References zT_.

Referenced by StubZHT().

770 { return zT_; }

Member Data Documentation

◆ chi_

double trackerTFP::StubZHT::chi_
private

Definition at line 777 of file DataFormats.h.

Referenced by chi(), and StubZHT().

◆ cot_

double trackerTFP::StubZHT::cot_
private

Definition at line 778 of file DataFormats.h.

Referenced by cotf(), and StubZHT().

◆ r_

double trackerTFP::StubZHT::r_
private

Definition at line 776 of file DataFormats.h.

Referenced by StubZHT().

◆ zT_

double trackerTFP::StubZHT::zT_
private

Definition at line 779 of file DataFormats.h.

Referenced by StubZHT(), and ztf().