CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Phase2L1GMT::ConvertedTTTrack Class Reference

#include <ConvertedTTTrack.h>

Public Member Functions

const ap_uint< BITSETA - 1 > abseta () const
 
const ap_uint< 1 > charge () const
 
 ConvertedTTTrack (const ap_uint< 1 > &charge, const ap_int< BITSTTCURV > &curvature, const ap_int< BITSETA - 1 > &abseta, const ap_uint< BITSPT > &pt, const ap_int< BITSETA > &eta, const ap_int< BITSPHI > &phi, const ap_int< BITSZ0 > &z0, const ap_int< BITSD0 > &d0, const ap_uint< 1 > &quality, const ap_uint< 96 > &word)
 
const ap_int< BITSTTCURVcurvature () const
 
const ap_int< BITSD0d0 () const
 
const ap_int< BITSETAeta () const
 
const float offline_eta () const
 
const float offline_phi () const
 
const float offline_pt () const
 
const ap_int< BITSPHIphi () const
 
void print () const
 
void printWord () const
 
const ap_uint< BITSPTpt () const
 
const ap_uint< 1 > quality () const
 
void setOfflineQuantities (float pt, float eta, float phi)
 
void setPhi (ap_int< BITSPHI > phi)
 
void setTrkPtr (const edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > &trkPtr)
 
const edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > trkPtr () const
 
const ap_uint< 96 > & word () const
 
const ap_int< BITSZ0z0 () const
 

Private Attributes

ap_uint< BITSETA - 1 > abseta_
 
ap_uint< 1 > charge_
 
ap_int< BITSTTCURVcurvature_
 
ap_int< BITSD0d0_
 
ap_int< BITSETAeta_
 
float offline_eta_
 
float offline_phi_
 
float offline_pt_
 
ap_int< BITSPHIphi_
 
ap_uint< BITSPTpt_
 
ap_uint< 1 > quality_
 
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > trkPtr_
 
ap_uint< 96 > word_
 
ap_int< BITSZ0z0_
 

Detailed Description

Definition at line 10 of file ConvertedTTTrack.h.

Constructor & Destructor Documentation

◆ ConvertedTTTrack()

Phase2L1GMT::ConvertedTTTrack::ConvertedTTTrack ( const ap_uint< 1 > &  charge,
const ap_int< BITSTTCURV > &  curvature,
const ap_int< BITSETA - 1 > &  abseta,
const ap_uint< BITSPT > &  pt,
const ap_int< BITSETA > &  eta,
const ap_int< BITSPHI > &  phi,
const ap_int< BITSZ0 > &  z0,
const ap_int< BITSD0 > &  d0,
const ap_uint< 1 > &  quality,
const ap_uint< 96 > &  word 
)
inline

Definition at line 12 of file ConvertedTTTrack.h.

22  : charge_(charge),
24  abseta_(abseta),
25  pt_(pt),
26  eta_(eta),
27  phi_(phi),
28  z0_(z0),
29  d0_(d0),
31  word_(word) {}
const ap_uint< BITSPT > pt() const
const ap_int< BITSZ0 > z0() const
ap_int< BITSTTCURV > curvature_
const ap_int< BITSPHI > phi() const
const ap_uint< BITSETA - 1 > abseta() const
const ap_uint< 1 > quality() const
const ap_uint< 1 > charge() const
uint64_t word
const ap_int< BITSETA > eta() const
ap_uint< BITSETA - 1 > abseta_
const ap_int< BITSD0 > d0() const
const ap_int< BITSTTCURV > curvature() const

Member Function Documentation

◆ abseta()

const ap_uint<BITSETA - 1> Phase2L1GMT::ConvertedTTTrack::abseta ( ) const
inline

Definition at line 36 of file ConvertedTTTrack.h.

References abseta_.

36 { return abseta_; }
ap_uint< BITSETA - 1 > abseta_

◆ charge()

const ap_uint<1> Phase2L1GMT::ConvertedTTTrack::charge ( void  ) const
inline

Definition at line 33 of file ConvertedTTTrack.h.

References charge_.

33 { return charge_; }

◆ curvature()

const ap_int<BITSTTCURV> Phase2L1GMT::ConvertedTTTrack::curvature ( ) const
inline

Definition at line 35 of file ConvertedTTTrack.h.

References curvature_.

35 { return curvature_; }
ap_int< BITSTTCURV > curvature_

◆ d0()

const ap_int<BITSD0> Phase2L1GMT::ConvertedTTTrack::d0 ( ) const
inline

Definition at line 46 of file ConvertedTTTrack.h.

References d0_.

46 { return d0_; }

◆ eta()

const ap_int<BITSETA> Phase2L1GMT::ConvertedTTTrack::eta ( void  ) const
inline

◆ offline_eta()

const float Phase2L1GMT::ConvertedTTTrack::offline_eta ( ) const
inline

Definition at line 49 of file ConvertedTTTrack.h.

References offline_eta_.

◆ offline_phi()

const float Phase2L1GMT::ConvertedTTTrack::offline_phi ( ) const
inline

Definition at line 50 of file ConvertedTTTrack.h.

References offline_phi_.

◆ offline_pt()

const float Phase2L1GMT::ConvertedTTTrack::offline_pt ( ) const
inline

Definition at line 48 of file ConvertedTTTrack.h.

References offline_pt_.

◆ phi()

const ap_int<BITSPHI> Phase2L1GMT::ConvertedTTTrack::phi ( void  ) const
inline

◆ print()

void Phase2L1GMT::ConvertedTTTrack::print ( void  ) const
inline

Definition at line 59 of file ConvertedTTTrack.h.

References charge_, curvature_, d0_, eta_, LogDebug, offline_eta_, offline_phi_, offline_pt_, phi_, pt_, quality_, and z0_.

Referenced by Phase2L1GMT::TrackConverter::convert().

59  {
60  LogDebug("ConvertedTTTrack") << "converted track : charge=" << charge_ << " curvature=" << curvature_
61  << " pt=" << offline_pt_ << "," << pt_ << " eta=" << offline_eta_ << "," << eta_
62  << " phi=" << offline_phi_ << "," << phi_ << " z0=" << z0_ << " d0=" << d0_
63  << " quality=" << quality_;
64  }
ap_int< BITSTTCURV > curvature_
#define LogDebug(id)

◆ printWord()

void Phase2L1GMT::ConvertedTTTrack::printWord ( ) const
inline

Definition at line 66 of file ConvertedTTTrack.h.

References createfilelist::int, LogDebug, and word_.

66  {
67  LogDebug("ConvertedTTTrack") << "converted track : word=" << std::setfill('0') << std::setw(8) << std::hex
68  << (long long unsigned int)((word_ >> 64).to_uint64()) << std::setfill('0')
69  << std::setw(16) << std::hex
70  << (long long unsigned int)((word_ & 0xffffffffffffffff).to_uint64());
71  }
#define LogDebug(id)

◆ pt()

const ap_uint<BITSPT> Phase2L1GMT::ConvertedTTTrack::pt ( ) const
inline

◆ quality()

const ap_uint<1> Phase2L1GMT::ConvertedTTTrack::quality ( void  ) const
inline

Definition at line 47 of file ConvertedTTTrack.h.

References quality_.

47 { return quality_; }

◆ setOfflineQuantities()

void Phase2L1GMT::ConvertedTTTrack::setOfflineQuantities ( float  pt,
float  eta,
float  phi 
)
inline

Definition at line 53 of file ConvertedTTTrack.h.

References eta(), offline_eta_, offline_phi_, offline_pt_, phi(), and pt().

Referenced by Phase2L1GMT::TrackConverter::convert().

53  {
54  offline_pt_ = pt;
55  offline_eta_ = eta;
56  offline_phi_ = phi;
57  }
const ap_uint< BITSPT > pt() const
const ap_int< BITSPHI > phi() const
const ap_int< BITSETA > eta() const

◆ setPhi()

void Phase2L1GMT::ConvertedTTTrack::setPhi ( ap_int< BITSPHI phi)
inline

Definition at line 43 of file ConvertedTTTrack.h.

References phi(), and phi_.

43 { phi_ = phi; }
const ap_int< BITSPHI > phi() const

◆ setTrkPtr()

void Phase2L1GMT::ConvertedTTTrack::setTrkPtr ( const edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > &  trkPtr)
inline

Definition at line 73 of file ConvertedTTTrack.h.

References trkPtr(), and trkPtr_.

Referenced by Phase2L1GMT::TrackConverter::convert().

73 { trkPtr_ = trkPtr; }
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > trkPtr_
const edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > trkPtr() const

◆ trkPtr()

const edm::Ptr<TTTrack<Ref_Phase2TrackerDigi_> > Phase2L1GMT::ConvertedTTTrack::trkPtr ( ) const
inline

Definition at line 75 of file ConvertedTTTrack.h.

References trkPtr_.

Referenced by setTrkPtr().

75 { return trkPtr_; }
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > trkPtr_

◆ word()

const ap_uint<96>& Phase2L1GMT::ConvertedTTTrack::word ( ) const
inline

Definition at line 52 of file ConvertedTTTrack.h.

References word_.

52 { return word_; }

◆ z0()

const ap_int<BITSZ0> Phase2L1GMT::ConvertedTTTrack::z0 ( ) const
inline

Definition at line 45 of file ConvertedTTTrack.h.

References z0_.

Referenced by Phase2L1GMT::Isolation::compute_trk_iso().

45 { return z0_; }

Member Data Documentation

◆ abseta_

ap_uint<BITSETA - 1> Phase2L1GMT::ConvertedTTTrack::abseta_
private

Definition at line 80 of file ConvertedTTTrack.h.

Referenced by abseta().

◆ charge_

ap_uint<1> Phase2L1GMT::ConvertedTTTrack::charge_
private

Definition at line 78 of file ConvertedTTTrack.h.

Referenced by charge(), and print().

◆ curvature_

ap_int<BITSTTCURV> Phase2L1GMT::ConvertedTTTrack::curvature_
private

Definition at line 79 of file ConvertedTTTrack.h.

Referenced by curvature(), and print().

◆ d0_

ap_int<BITSD0> Phase2L1GMT::ConvertedTTTrack::d0_
private

Definition at line 85 of file ConvertedTTTrack.h.

Referenced by d0(), and print().

◆ eta_

ap_int<BITSETA> Phase2L1GMT::ConvertedTTTrack::eta_
private

Definition at line 82 of file ConvertedTTTrack.h.

Referenced by eta(), and print().

◆ offline_eta_

float Phase2L1GMT::ConvertedTTTrack::offline_eta_
private

Definition at line 88 of file ConvertedTTTrack.h.

Referenced by offline_eta(), print(), and setOfflineQuantities().

◆ offline_phi_

float Phase2L1GMT::ConvertedTTTrack::offline_phi_
private

Definition at line 89 of file ConvertedTTTrack.h.

Referenced by offline_phi(), print(), and setOfflineQuantities().

◆ offline_pt_

float Phase2L1GMT::ConvertedTTTrack::offline_pt_
private

Definition at line 87 of file ConvertedTTTrack.h.

Referenced by offline_pt(), print(), and setOfflineQuantities().

◆ phi_

ap_int<BITSPHI> Phase2L1GMT::ConvertedTTTrack::phi_
private

Definition at line 83 of file ConvertedTTTrack.h.

Referenced by phi(), print(), and setPhi().

◆ pt_

ap_uint<BITSPT> Phase2L1GMT::ConvertedTTTrack::pt_
private

Definition at line 81 of file ConvertedTTTrack.h.

Referenced by print(), and pt().

◆ quality_

ap_uint<1> Phase2L1GMT::ConvertedTTTrack::quality_
private

Definition at line 86 of file ConvertedTTTrack.h.

Referenced by print(), and quality().

◆ trkPtr_

edm::Ptr<TTTrack<Ref_Phase2TrackerDigi_> > Phase2L1GMT::ConvertedTTTrack::trkPtr_
private

Definition at line 92 of file ConvertedTTTrack.h.

Referenced by setTrkPtr(), and trkPtr().

◆ word_

ap_uint<96> Phase2L1GMT::ConvertedTTTrack::word_
private

Definition at line 90 of file ConvertedTTTrack.h.

Referenced by printWord(), and word().

◆ z0_

ap_int<BITSZ0> Phase2L1GMT::ConvertedTTTrack::z0_
private

Definition at line 84 of file ConvertedTTTrack.h.

Referenced by print(), and z0().