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 278 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_.

279  : Stub(stub,
280  stub.r(),
281  stub.phi(),
282  stub.z(),
283  stub.layer(),
284  stub.sectorPhi(),
285  stub.sectorEta(),
286  stub.phiT(),
287  stub.inv2R(),
288  0,
289  0) {
290  cot_ = 0.;
291  zT_ = 0.;
293  chi_ = stub.z();
294  trackId_ = stub.trackId();
295  }
double chosenRofZ() const
Definition: Setup.h:413
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 298 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().

299  : Stub(stub.frame().first,
300  stub.dataFormats(),
301  Process::zht,
302  stub.r(),
303  stub.phi(),
304  stub.z(),
305  stub.layer(),
306  stub.sectorPhi(),
307  stub.sectorEta(),
308  stub.phiT(),
309  stub.inv2R(),
310  stub.zT(),
311  stub.cot()) {
312  // update track (zT, cot), and phi residuals w.r.t. track, to reflect ZHT cell assignment.
313  r_ = stub.r_;
314  cot_ = stub.cotf() + cot;
315  zT_ = stub.ztf() + zT;
316  chi_ = stub.z() - zT_ + r_ * cot_;
317  get<8>(data_) = format(Variable::zT).integer(zT_);
318  get<9>(data_) = format(Variable::cot).integer(cot_);
320  trackId_ = stub.trackId() * 4 + id;
321  }
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 324 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().

325  : Stub(stub.frame().first,
326  stub.dataFormats(),
327  Process::zht,
328  stub.r(),
329  stub.phi(),
330  0.,
331  stub.layer(),
332  stub.sectorPhi(),
333  stub.sectorEta(),
334  stub.phiT(),
335  stub.inv2R(),
336  zT,
337  cot) {
338  get<2>(data_) =
340  .digi(stub.z() - (format(Variable::zT).floating(zT) - stub.r_ * format(Variable::cot).floating(cot)));
342  fillTrackId();
343  }
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().