CMS 3D CMS Logo

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

#include <DataFormats.h>

Public Member Functions

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)
 
template<typename... Others>
 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 ()
 

Protected Member Functions

double base (Variable v) const
 
DataFormat format (Variable v) const
 
int width (Variable v) const
 

Protected Attributes

std::tuple< Ts... > data_
 
const DataFormatsdataFormats_
 
tt::FrameStub frame_
 
Process p_
 
int trackId_
 

Detailed Description

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

Definition at line 558 of file DataFormats.h.

Constructor & Destructor Documentation

◆ Stub() [1/4]

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

Definition at line 165 of file DataFormats.cc.

167  dataFormats_->convertStub(p, frame.second, data_);
168  }
void convertStub(Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const
Process p() const
Definition: DataFormats.h:574
const DataFormats * dataFormats_
Definition: DataFormats.h:592
const DataFormats * dataFormats() const
Definition: DataFormats.h:572
std::tuple< Ts... > data_
Definition: DataFormats.h:598
tt::FrameStub frame_
Definition: DataFormats.h:596

◆ Stub() [2/4]

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

Definition at line 173 of file DataFormats.cc.

174  : dataFormats_(stub.dataFormats()),
175  p_(++stub.p()),
176  frame_(stub.frame().first, Frame()),
177  data_(data...),
178  trackId_(0) {}
std::bitset< TTBV::S_ > Frame
Definition: TTTypes.h:58
const DataFormats * dataFormats_
Definition: DataFormats.h:592
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::tuple< Ts... > data_
Definition: DataFormats.h:598
tt::FrameStub frame_
Definition: DataFormats.h:596

◆ Stub() [3/4]

template<typename... Ts>
trackerTFP::Stub< Ts >::Stub ( const TTStubRef ttStubRef,
const DataFormats dataFormats,
Process  p,
Ts...  data 
)

Definition at line 182 of file DataFormats.cc.

std::bitset< TTBV::S_ > Frame
Definition: TTTypes.h:58
Process p() const
Definition: DataFormats.h:574
TTStubRef ttStubRef() const
Definition: DataFormats.h:578
const DataFormats * dataFormats_
Definition: DataFormats.h:592
const DataFormats * dataFormats() const
Definition: DataFormats.h:572
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::tuple< Ts... > data_
Definition: DataFormats.h:598
tt::FrameStub frame_
Definition: DataFormats.h:596

◆ Stub() [4/4]

template<typename... Ts>
trackerTFP::Stub< Ts >::Stub ( )
inline

Definition at line 567 of file DataFormats.h.

567 {}

◆ ~Stub()

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

Definition at line 568 of file DataFormats.h.

568 {}

Member Function Documentation

◆ base()

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

Definition at line 588 of file DataFormats.h.

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

◆ bv()

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

Definition at line 580 of file DataFormats.h.

580 { return frame_.second; }
tt::FrameStub frame_
Definition: DataFormats.h:596

◆ dataFormats()

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

Definition at line 572 of file DataFormats.h.

572 { return dataFormats_; }
const DataFormats * dataFormats_
Definition: DataFormats.h:592

◆ format()

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

Definition at line 590 of file DataFormats.h.

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

◆ frame()

template<typename... Ts>
tt::FrameStub trackerTFP::Stub< Ts >::frame ( ) const
inline

Definition at line 576 of file DataFormats.h.

Referenced by trackerTFP::ZHoughTransform::merge().

576 { return frame_; }
tt::FrameStub frame_
Definition: DataFormats.h:596

◆ operator bool()

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

Definition at line 570 of file DataFormats.h.

570 { return frame_.first.isNonnull(); }
tt::FrameStub frame_
Definition: DataFormats.h:596

◆ p()

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

Definition at line 574 of file DataFormats.h.

Referenced by Electron.Electron::ptErr().

574 { return p_; }

◆ trackId()

template<typename... Ts>
int trackerTFP::Stub< Ts >::trackId ( ) const
inline

Definition at line 582 of file DataFormats.h.

Referenced by trackerTFP::StubZHT::StubZHT().

582 { return trackId_; }

◆ ttStubRef()

template<typename... Ts>
TTStubRef trackerTFP::Stub< Ts >::ttStubRef ( ) const
inline

Definition at line 578 of file DataFormats.h.

Referenced by trackerTFP::ProducerZHTout::produce().

578 { return frame_.first; }
tt::FrameStub frame_
Definition: DataFormats.h:596

◆ width()

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

Definition at line 586 of file DataFormats.h.

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

Member Data Documentation

◆ data_

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

Definition at line 598 of file DataFormats.h.

◆ dataFormats_

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

◆ frame_

template<typename... Ts>
tt::FrameStub trackerTFP::Stub< Ts >::frame_
protected

◆ p_

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

◆ trackId_

template<typename... Ts>
int trackerTFP::Stub< Ts >::trackId_
protected