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

274  : Stub(stub,
275  stub.r(),
276  stub.phi(),
277  stub.z(),
278  stub.layer(),
279  stub.sectorPhi(),
280  stub.sectorEta(),
281  stub.phiT(),
282  stub.inv2R(),
283  0,
284  0) {
285  cot_ = 0.;
286  zT_ = 0.;
288  chi_ = stub.z();
289  trackId_ = stub.trackId();
290  }
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 293 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().

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

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