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 518 of file DataFormats.cc.

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

◆ TrackDR() [2/2]

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

Definition at line 521 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_2023v12_cff::track.

521  : Track(track, 0., 0., 0., 0.) {
522  get<0>(data_) = track.phiT() + track.inv2R() * dataFormats_->chosenRofPhi() +
523  dataFormats_->format(Variable::phi, Process::gp).range() * (track.sectorPhi() - .5);
524  get<1>(data_) = track.inv2R();
525  get<2>(data_) = track.zT() - track.cot() * setup()->chosenRofZ();
526  get<3>(data_) = track.cot() + setup()->sectorCot(track.sectorEta());
528  }
double chosenRofZ() const
Definition: Setup.h:413
Track(const tt::FrameTrack &frame, const DataFormats *dataFormats, Process p)
Definition: DataFormats.cc:388
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:428
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 531 of file DataFormats.cc.

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

531  {
532  const double inv2R = this->inv2R();
533  const double phi0 = this->phi0();
534  const double cot = this->cot();
535  const double z0 = this->z0();
536  static constexpr double d0 = 0.;
537  static constexpr double chi2phi = 0.;
538  static constexpr double chi2z = 0;
539  static constexpr double trkMVA1 = 0.;
540  static constexpr double trkMVA2 = 0.;
541  static constexpr double trkMVA3 = 0.;
542  static constexpr int hitPattern = 0.;
543  static constexpr int nPar = 4;
544  static constexpr double bField = 0.;
545  const int sectorPhi = frame_.first->phiSector();
546  const int sectorEta = frame_.first->etaSector();
548  inv2R, phi0, cot, z0, d0, chi2phi, chi2z, trkMVA1, trkMVA2, trkMVA3, hitPattern, nPar, bField);
549  ttTrack.setPhiSector(sectorPhi);
550  ttTrack.setEtaSector(sectorEta);
551  return ttTrack;
552  }
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:531
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_); }