CMS 3D CMS Logo

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

#include <DataFormats.h>

Inheritance diagram for trackerTFP::TrackDR:
trackerTFP::Track< double, double, double, double >

Public Member Functions

double cot () const
 
double inv2R () const
 
double phi0 () const
 
 TrackDR (const tt::FrameTrack &frame, const DataFormats *dataFormats)
 
 TrackDR (const TrackKF &track)
 
TTTrack< Ref_Phase2TrackerDigi_ttTrack () const
 
double z0 () const
 
 ~TrackDR ()
 
- Public Member Functions inherited from trackerTFP::Track< double, double, double, double >
tt::Frame bv () const
 
std::tuple< Ts... > data () const
 
const DataFormatsdataFormats () const
 
tt::FrameTrack frame () const
 
 operator bool () const
 
Process p () const
 
 Track (const tt::FrameTrack &frame, const DataFormats *dataFormats, Process p)
 
 Track (const Track< Others... > &track, Ts... data)
 
 Track (const Stub< Others... > &stub, const TTTrackRef &ttTrackRef, Ts... data)
 
 Track (const TTTrackRef &ttTrackRef, const DataFormats *dataFormats, Process p, Ts... data)
 
TTTrackRef ttTrackRef () const
 
 ~Track ()
 

Additional Inherited Members

- Protected Member Functions inherited from trackerTFP::Track< double, double, double, double >
double base (Variable v) const
 
DataFormat format (Variable v) const
 
DataFormat format (Variable v, Process p) const
 
const tt::Setupsetup () const
 
int width (Variable v) const
 
- Protected Attributes inherited from trackerTFP::Track< double, double, double, double >
std::tuple< Ts... > data_
 
const DataFormatsdataFormats_
 
tt::FrameTrack frame_
 
Process p_
 

Detailed Description

Definition at line 1033 of file DataFormats.h.

Constructor & Destructor Documentation

◆ TrackDR() [1/2]

trackerTFP::TrackDR::TrackDR ( const tt::FrameTrack frame,
const DataFormats dataFormats 
)

Definition at line 524 of file DataFormats.cc.

Track(const tt::FrameTrack &frame, const DataFormats *dataFormats, Process p)
Definition: DataFormats.cc:394

◆ TrackDR() [2/2]

trackerTFP::TrackDR::TrackDR ( const TrackKF track)

Definition at line 527 of file DataFormats.cc.

References trackerTFP::DataFormats::chosenRofPhi(), tt::Setup::chosenRofZ(), trackerTFP::DataFormats::convertTrack(), trackerTFP::Track< double, double, double, double >::data_, trackerTFP::Track< double, double, double, double >::dataFormats_, trackerTFP::DataFormats::format(), trackerTFP::Track< double, double, double, double >::frame_, trackerTFP::gp, trackerTFP::Track< double, double, double, double >::p_, trackerTFP::phi, trackerTFP::DataFormat::range(), tt::Setup::sectorCot(), trackerTFP::Track< double, double, double, double >::setup(), and HLT_2024v14_cff::track.

527  : Track(track, 0., 0., 0., 0.) {
528  get<0>(data_) = track.phiT() + track.inv2R() * dataFormats_->chosenRofPhi() +
529  dataFormats_->format(Variable::phi, Process::gp).range() * (track.sectorPhi() - .5);
530  get<1>(data_) = track.inv2R();
531  get<2>(data_) = track.zT() - track.cot() * setup()->chosenRofZ();
532  get<3>(data_) = track.cot() + setup()->sectorCot(track.sectorEta());
534  }
double chosenRofZ() const
Definition: Setup.h:417
Track(const tt::FrameTrack &frame, const DataFormats *dataFormats, Process p)
Definition: DataFormats.cc:394
double chosenRofPhi() const
Definition: DataFormats.h:508
double range() const
Definition: DataFormats.h:119
void convertTrack(Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const
double sectorCot(int eta) const
Definition: Setup.h:432
const DataFormat & format(Variable v, Process p) const
Definition: DataFormats.h:506

◆ ~TrackDR()

trackerTFP::TrackDR::~TrackDR ( )
inline

Definition at line 1039 of file DataFormats.h.

1039 {}

Member Function Documentation

◆ cot()

double trackerTFP::TrackDR::cot ( ) const
inline

Definition at line 1047 of file DataFormats.h.

References trackerTFP::Track< double, double, double, double >::data_.

Referenced by ttTrack().

1047 { return std::get<3>(data_); }

◆ inv2R()

double trackerTFP::TrackDR::inv2R ( ) const
inline

Definition at line 1043 of file DataFormats.h.

References trackerTFP::Track< double, double, double, double >::data_.

Referenced by ttTrack().

1043 { return std::get<1>(data_); }

◆ phi0()

double trackerTFP::TrackDR::phi0 ( ) const
inline

Definition at line 1041 of file DataFormats.h.

References trackerTFP::Track< double, double, double, double >::data_.

Referenced by ttTrack().

1041 { return std::get<0>(data_); }

◆ ttTrack()

TTTrack< Ref_Phase2TrackerDigi_ > trackerTFP::TrackDR::ttTrack ( ) const

Definition at line 537 of file DataFormats.cc.

References Calorimetry_cff::bField, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), cot(), d0, trackerTFP::Track< double, double, double, double >::frame_, trackerTFP::hitPattern, inv2R(), HcalResponse_cfi::nPar, phi0(), trackerTFP::sectorEta, trackerTFP::sectorPhi, and z0().

537  {
538  const double inv2R = this->inv2R();
539  const double phi0 = this->phi0();
540  const double cot = this->cot();
541  const double z0 = this->z0();
542  static constexpr double d0 = 0.;
543  static constexpr double chi2phi = 0.;
544  static constexpr double chi2z = 0;
545  static constexpr double trkMVA1 = 0.;
546  static constexpr double trkMVA2 = 0.;
547  static constexpr double trkMVA3 = 0.;
548  static constexpr int hitPattern = 0.;
549  static constexpr int nPar = 4;
550  static constexpr double bField = 0.;
551  const int sectorPhi = frame_.first->phiSector();
552  const int sectorEta = frame_.first->etaSector();
554  inv2R, phi0, cot, z0, d0, chi2phi, chi2z, trkMVA1, trkMVA2, trkMVA3, hitPattern, nPar, bField);
555  ttTrack.setPhiSector(sectorPhi);
556  ttTrack.setEtaSector(sectorEta);
557  return ttTrack;
558  }
double inv2R() const
Definition: DataFormats.h:1043
double phi0() const
Definition: DataFormats.h:1041
static constexpr float d0
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
TTTrack< Ref_Phase2TrackerDigi_ > ttTrack() const
Definition: DataFormats.cc:537
double z0() const
Definition: DataFormats.h:1045
double cot() const
Definition: DataFormats.h:1047

◆ z0()

double trackerTFP::TrackDR::z0 ( ) const
inline

Definition at line 1045 of file DataFormats.h.

References trackerTFP::Track< double, double, double, double >::data_.

Referenced by ttTrack().

1045 { return std::get<2>(data_); }