CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
trackerTFP::Track< Ts > Class Template Reference

#include <DataFormats.h>

Public Member Functions

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)
 
template<typename... Others>
 Track (const Track< Others... > &track, Ts... data)
 
template<typename... Others>
 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 ()
 

Protected Member Functions

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

std::tuple< Ts... > data_
 
const DataFormatsdataFormats_
 
tt::FrameTrack frame_
 
Process p_
 

Detailed Description

template<typename... Ts>
class trackerTFP::Track< Ts >

Definition at line 845 of file DataFormats.h.

Constructor & Destructor Documentation

◆ Track() [1/4]

template<typename... Ts>
trackerTFP::Track< Ts >::Track ( const tt::FrameTrack< Ts > &  frame,
const DataFormats dataFormats,
Process  p 
)

Definition at line 393 of file DataFormats.cc.

396  }
Process p() const
Definition: DataFormats.h:863
tt::FrameTrack frame_
Definition: DataFormats.h:889
const DataFormats * dataFormats_
Definition: DataFormats.h:885
const DataFormats * dataFormats() const
Definition: DataFormats.h:861
void convertTrack(Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const
std::tuple< Ts... > data_
Definition: DataFormats.h:891

◆ Track() [2/4]

template<typename... Ts>
template<typename... Others>
trackerTFP::Track< Ts >::Track ( const Track< Others... > &  track,
Ts...  data 
)

Definition at line 401 of file DataFormats.cc.

402  : dataFormats_(track.dataFormats()), p_(++track.p()), frame_(track.frame().first, Frame()), data_(data...) {}
std::bitset< TTBV::S_ > Frame
Definition: TTTypes.h:58
tt::FrameTrack frame_
Definition: DataFormats.h:889
const DataFormats * dataFormats_
Definition: DataFormats.h:885
std::tuple< Ts... > data() const
Definition: DataFormats.h:871
std::tuple< Ts... > data_
Definition: DataFormats.h:891

◆ Track() [3/4]

template<typename... Ts>
template<typename... Others>
trackerTFP::Track< Ts >::Track ( const Stub< Others... > &  stub,
const TTTrackRef ttTrackRef,
Ts...  data 
)

Definition at line 407 of file DataFormats.cc.

408  : dataFormats_(stub.dataFormats()), p_(++stub.p()), frame_(ttTrackRef, Frame()), data_(data...) {}
std::bitset< TTBV::S_ > Frame
Definition: TTTypes.h:58
tt::FrameTrack frame_
Definition: DataFormats.h:889
const DataFormats * dataFormats_
Definition: DataFormats.h:885
std::tuple< Ts... > data() const
Definition: DataFormats.h:871
TTTrackRef ttTrackRef() const
Definition: DataFormats.h:867
std::tuple< Ts... > data_
Definition: DataFormats.h:891

◆ Track() [4/4]

template<typename... Ts>
trackerTFP::Track< Ts >::Track ( const TTTrackRef ttTrackRef,
const DataFormats dataFormats,
Process  p,
Ts...  data 
)

Definition at line 412 of file DataFormats.cc.

Process p() const
Definition: DataFormats.h:863
std::bitset< TTBV::S_ > Frame
Definition: TTTypes.h:58
tt::FrameTrack frame_
Definition: DataFormats.h:889
const DataFormats * dataFormats_
Definition: DataFormats.h:885
std::tuple< Ts... > data() const
Definition: DataFormats.h:871
TTTrackRef ttTrackRef() const
Definition: DataFormats.h:867
const DataFormats * dataFormats() const
Definition: DataFormats.h:861
std::tuple< Ts... > data_
Definition: DataFormats.h:891

◆ ~Track()

template<typename... Ts>
trackerTFP::Track< Ts >::~Track ( )
inline

Definition at line 857 of file DataFormats.h.

857 {}

Member Function Documentation

◆ base()

template<typename... Ts>
double trackerTFP::Track< Ts >::base ( Variable  v) const
inlineprotected

Definition at line 877 of file DataFormats.h.

877 { return dataFormats_->base(v, p_); }
double base(Variable v, Process p) const
Definition: DataFormats.h:492
const DataFormats * dataFormats_
Definition: DataFormats.h:885

◆ bv()

template<typename... Ts>
tt::Frame trackerTFP::Track< Ts >::bv ( ) const
inline

Definition at line 869 of file DataFormats.h.

869 { return frame_.second; }
tt::FrameTrack frame_
Definition: DataFormats.h:889

◆ data()

template<typename... Ts>
std::tuple<Ts...> trackerTFP::Track< Ts >::data ( ) const
inline

Definition at line 871 of file DataFormats.h.

871 { return data_; }
std::tuple< Ts... > data_
Definition: DataFormats.h:891

◆ dataFormats()

template<typename... Ts>
const DataFormats* trackerTFP::Track< Ts >::dataFormats ( ) const
inline

Definition at line 861 of file DataFormats.h.

861 { return dataFormats_; }
const DataFormats * dataFormats_
Definition: DataFormats.h:885

◆ format() [1/2]

template<typename... Ts>
DataFormat trackerTFP::Track< Ts >::format ( Variable  v) const
inlineprotected

Definition at line 881 of file DataFormats.h.

881 { return dataFormats_->format(v, p_); }
const DataFormats * dataFormats_
Definition: DataFormats.h:885
const DataFormat & format(Variable v, Process p) const
Definition: DataFormats.h:506

◆ format() [2/2]

template<typename... Ts>
DataFormat trackerTFP::Track< Ts >::format ( Variable  v,
Process  p 
) const
inlineprotected

Definition at line 883 of file DataFormats.h.

883 { return dataFormats_->format(v, p); }
Process p() const
Definition: DataFormats.h:863
const DataFormats * dataFormats_
Definition: DataFormats.h:885
const DataFormat & format(Variable v, Process p) const
Definition: DataFormats.h:506

◆ frame()

template<typename... Ts>
tt::FrameTrack trackerTFP::Track< Ts >::frame ( ) const
inline

Definition at line 865 of file DataFormats.h.

Referenced by trackerTFP::State::frame().

865 { return frame_; }
tt::FrameTrack frame_
Definition: DataFormats.h:889

◆ operator bool()

template<typename... Ts>
trackerTFP::Track< Ts >::operator bool ( ) const
inlineexplicit

Definition at line 859 of file DataFormats.h.

859 { return frame_.first.isNonnull(); }
tt::FrameTrack frame_
Definition: DataFormats.h:889

◆ p()

template<typename... Ts>
Process trackerTFP::Track< Ts >::p ( ) const
inline

◆ setup()

template<typename... Ts>
const tt::Setup* trackerTFP::Track< Ts >::setup ( ) const
inlineprotected

Definition at line 879 of file DataFormats.h.

879 { return dataFormats_->setup(); }
const DataFormats * dataFormats_
Definition: DataFormats.h:885
const tt::Setup * setup() const
Definition: DataFormats.h:488

◆ ttTrackRef()

template<typename... Ts>
TTTrackRef trackerTFP::Track< Ts >::ttTrackRef ( ) const
inline

Definition at line 867 of file DataFormats.h.

867 { return frame_.first; }
tt::FrameTrack frame_
Definition: DataFormats.h:889

◆ width()

template<typename... Ts>
int trackerTFP::Track< Ts >::width ( Variable  v) const
inlineprotected

Definition at line 875 of file DataFormats.h.

875 { return dataFormats_->width(v, p_); }
int width(Variable v, Process p) const
Definition: DataFormats.h:490
const DataFormats * dataFormats_
Definition: DataFormats.h:885

Member Data Documentation

◆ data_

template<typename... Ts>
std::tuple<Ts...> trackerTFP::Track< Ts >::data_
protected

◆ dataFormats_

template<typename... Ts>
const DataFormats* trackerTFP::Track< Ts >::dataFormats_
protected

◆ frame_

template<typename... Ts>
tt::FrameTrack trackerTFP::Track< Ts >::frame_
protected

◆ p_

template<typename... Ts>
Process trackerTFP::Track< Ts >::p_
protected