CMS 3D CMS Logo

List of all members | Public Member Functions
trackerTFP::Format< v, p > Class Template Reference

#include <DataFormats.h>

Inheritance diagram for trackerTFP::Format< v, p >:
trackerTFP::DataFormat

Public Member Functions

 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const tt::Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
template<>
 Format (const edm::ParameterSet &iConfig, const Setup *setup)
 
 ~Format ()
 
- Public Member Functions inherited from trackerTFP::DataFormat
void attach (const int i, TTBV &ttBV) const
 
void attach (const double d, TTBV &ttBV) const
 
void attach (const TTBV bv, TTBV &ttBV) const
 
double base () const
 
 DataFormat (bool twos)
 
double digi (double d) const
 
void extract (TTBV &in, int &out) const
 
void extract (TTBV &in, double &out) const
 
void extract (TTBV &in, TTBV &out) const
 
double floating (int i) const
 
bool inRange (double d, bool digi=false) const
 
bool inRange (int i) const
 
int integer (double d) const
 
double range () const
 
int toSigned (int i) const
 
int toUnsigned (int i) const
 
int toUnsigned (double d) const
 
TTBV ttBV (int i) const
 
TTBV ttBV (double d) const
 
bool twos () const
 
int width () const
 
 ~DataFormat ()
 

Additional Inherited Members

- Protected Attributes inherited from trackerTFP::DataFormat
double base_
 
double range_
 
bool twos_
 
int width_
 

Detailed Description

template<Variable v, Process p>
class trackerTFP::Format< v, p >

Definition at line 134 of file DataFormats.h.

Constructor & Destructor Documentation

◆ Format() [1/71]

template<Variable v, Process p>
trackerTFP::Format< v, p >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ ~Format()

template<Variable v, Process p>
trackerTFP::Format< v, p >::~Format ( )
inline

Definition at line 137 of file DataFormats.h.

137 {}

◆ Format() [2/71]

template<>
trackerTFP::Format< Variable::phiT, Process::ht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [3/71]

template<>
trackerTFP::Format< Variable::phiT, Process::mht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [4/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::ht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [5/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::mht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [6/71]

template<>
trackerTFP::Format< Variable::r, Process::ht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [7/71]

template<>
trackerTFP::Format< Variable::phi, Process::ht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [8/71]

template<>
trackerTFP::Format< Variable::phi, Process::mht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [9/71]

template<>
trackerTFP::Format< Variable::phi, Process::zht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [10/71]

template<>
trackerTFP::Format< Variable::phi, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [11/71]

template<>
trackerTFP::Format< Variable::phi, Process::kf >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [12/71]

template<>
trackerTFP::Format< Variable::phi, Process::gp >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [13/71]

template<>
trackerTFP::Format< Variable::phi, Process::dtc >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [14/71]

template<>
trackerTFP::Format< Variable::z, Process::dtc >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [15/71]

template<>
trackerTFP::Format< Variable::z, Process::gp >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [16/71]

template<>
trackerTFP::Format< Variable::z, Process::zht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [17/71]

template<>
trackerTFP::Format< Variable::z, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [18/71]

template<>
trackerTFP::Format< Variable::z, Process::kf >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [19/71]

template<>
trackerTFP::Format< Variable::zT, Process::zht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [20/71]

template<>
trackerTFP::Format< Variable::cot, Process::zht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [21/71]

template<>
trackerTFP::Format< Variable::layer, Process::ht >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [22/71]

template<>
trackerTFP::Format< Variable::sectorEta, Process::gp >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [23/71]

template<>
trackerTFP::Format< Variable::sectorPhi, Process::gp >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [24/71]

template<>
trackerTFP::Format< Variable::sectorsPhi, Process::gp >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [25/71]

template<>
trackerTFP::Format< Variable::match, Process::kf >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [26/71]

template<>
trackerTFP::Format< Variable::hitPattern, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [27/71]

template<>
trackerTFP::Format< Variable::phi0, Process::dr >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [28/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::dr >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [29/71]

template<>
trackerTFP::Format< Variable::z0, Process::dr >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [30/71]

template<>
trackerTFP::Format< Variable::cot, Process::dr >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [31/71]

template<>
trackerTFP::Format< Variable::phiT, Process::kf >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [32/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::kf >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [33/71]

template<>
trackerTFP::Format< Variable::zT, Process::kf >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [34/71]

template<>
trackerTFP::Format< Variable::cot, Process::kf >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [35/71]

template<>
trackerTFP::Format< Variable::dPhi, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [36/71]

template<>
trackerTFP::Format< Variable::dZ, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const tt::Setup setup 
)

◆ Format() [37/71]

template<>
trackerTFP::Format< Variable::phiT, Process::ht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 561 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), M_PI, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

561  : DataFormat(true) {
562  range_ = 2. * M_PI / (double)(setup->numRegions() * setup->numSectorsPhi());
563  base_ = range_ / (double)setup->htNumBinsPhiT();
564  width_ = ceil(log2(setup->htNumBinsPhiT()));
565  }
constexpr int32_t ceil(float num)
#define M_PI

◆ Format() [38/71]

template<>
trackerTFP::Format< Variable::phiT, Process::mht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 568 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::ht, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

568  : DataFormat(true) {
569  const Format<Variable::phiT, Process::ht> ht(iConfig, setup);
570  range_ = ht.range();
571  base_ = ht.base() / setup->mhtNumBinsPhiT();
572  width_ = ceil(log2(setup->htNumBinsPhiT() * setup->mhtNumBinsPhiT()));
573  }
constexpr int32_t ceil(float num)

◆ Format() [39/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::ht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 576 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), edm::ParameterSet::getParameter(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

576  : DataFormat(true) {
577  const double mintPt = iConfig.getParameter<bool>("UseHybrid") ? setup->hybridMinPtCand() : setup->minPt();
578  range_ = 2. * setup->invPtToDphi() / mintPt;
579  base_ = range_ / (double)setup->htNumBinsInv2R();
580  width_ = ceil(log2(setup->htNumBinsInv2R()));
581  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ Format() [40/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::mht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 584 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::ht, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

584  : DataFormat(true) {
585  const Format<Variable::inv2R, Process::ht> ht(iConfig, setup);
586  range_ = ht.range();
587  base_ = ht.base() / setup->mhtNumBinsInv2R();
588  width_ = ceil(log2(setup->htNumBinsInv2R() * setup->mhtNumBinsInv2R()));
589  }
constexpr int32_t ceil(float num)

◆ Format() [41/71]

template<>
trackerTFP::Format< Variable::r, Process::ht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 592 of file DataFormats.cc.

References funct::abs(), trackerTFP::DataFormat::base_, reco::ceil(), edm::ParameterSet::getParameter(), trackerTFP::inv2R, SiStripPI::max, trackerTFP::phiT, funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, and trackerTFP::DataFormat::width_.

592  : DataFormat(true) {
593  const double chosenRofPhi =
594  iConfig.getParameter<bool>("UseHybrid") ? setup->hybridChosenRofPhi() : setup->chosenRofPhi();
595  width_ = setup->tmttWidthR();
596  range_ = 2. * max(abs(setup->outerRadius() - chosenRofPhi), abs(setup->innerRadius() - chosenRofPhi));
597  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
598  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
599  base_ = phiT.base() / inv2R.base();
600  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
601  base_ *= pow(2., shift);
602  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [42/71]

template<>
trackerTFP::Format< Variable::phi, Process::gp >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 605 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::dtc, trackerTFP::inv2R, trackerTFP::phiT, funct::pow(), trackerTFP::r, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

605  : DataFormat(true) {
606  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
607  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
608  const Format<Variable::r, Process::ht> r(iConfig, setup);
609  range_ = phiT.range() + inv2R.range() * r.base() * pow(2., r.width()) / 4.;
610  const Format<Variable::phi, Process::dtc> dtc(iConfig, setup);
611  base_ = dtc.base();
612  width_ = ceil(log2(range_ / base_));
613  }
constexpr int32_t ceil(float num)
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [43/71]

template<>
trackerTFP::Format< Variable::phi, Process::dtc >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 616 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::inv2R, M_PI, trackerTFP::phiT, funct::pow(), trackerTFP::r, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, and trackerTFP::DataFormat::width_.

616  : DataFormat(true) {
617  width_ = setup->tmttWidthPhi();
618  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
619  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
620  const Format<Variable::r, Process::ht> r(iConfig, setup);
621  range_ = 2. * M_PI / (double)setup->numRegions() + inv2R.range() * r.base() * pow(2., r.width()) / 4.;
622  const int shift = ceil(log2(range_ / phiT.base() / pow(2., width_)));
623  base_ = phiT.base() * pow(2., shift);
624  }
constexpr int32_t ceil(float num)
#define M_PI
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [44/71]

template<>
trackerTFP::Format< Variable::phi, Process::ht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 627 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::gp, trackerTFP::phiT, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

627  : DataFormat(true) {
628  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
629  range_ = 2. * phiT.base();
630  const Format<Variable::phi, Process::gp> gp(iConfig, setup);
631  base_ = gp.base();
632  width_ = ceil(log2(range_ / base_));
633  }
constexpr int32_t ceil(float num)

◆ Format() [45/71]

template<>
trackerTFP::Format< Variable::phi, Process::mht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 636 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::ht, trackerTFP::phiT, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

636  : DataFormat(true) {
637  const Format<Variable::phiT, Process::mht> phiT(iConfig, setup);
638  range_ = 2. * phiT.base();
639  const Format<Variable::phi, Process::ht> ht(iConfig, setup);
640  base_ = ht.base();
641  width_ = ceil(log2(range_ / base_));
642  }
constexpr int32_t ceil(float num)

◆ Format() [46/71]

template<>
trackerTFP::Format< Variable::phi, Process::kf >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 645 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), edm::ParameterSet::getParameter(), trackerTFP::phi, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

645  : DataFormat(true) {
646  const Format<Variable::phi, Process::zht> phi(iConfig, setup);
647  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
648  range_ = rangeFactor * phi.range();
649  base_ = phi.base();
650  width_ = ceil(log2(range_ / base_));
651  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ Format() [47/71]

template<>
trackerTFP::Format< Variable::z, Process::dtc >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 654 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), funct::pow(), trackerTFP::r, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, and trackerTFP::DataFormat::width_.

654  : DataFormat(true) {
655  width_ = setup->tmttWidthZ();
656  range_ = 2. * setup->halfLength();
657  const Format<Variable::r, Process::ht> r(iConfig, setup);
658  const int shift = ceil(log2(range_ / r.base())) - width_;
659  base_ = r.base() * pow(2., shift);
660  }
constexpr int32_t ceil(float num)
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [48/71]

template<>
trackerTFP::Format< Variable::z, Process::gp >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 663 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::dtc, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

663  : DataFormat(true) {
664  range_ = setup->neededRangeChiZ();
665  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
666  base_ = dtc.base();
667  width_ = ceil(log2(range_ / base_));
668  }
constexpr int32_t ceil(float num)

◆ Format() [49/71]

template<>
trackerTFP::Format< Variable::zT, Process::zht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 671 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), PVValHelper::eta, edm::ParameterSet::getParameter(), SiStripPI::max, funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, trackerTFP::DataFormat::width_, and trackerTFP::z.

671  : DataFormat(true) {
672  const int numBinsZT = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumBinsZT");
673  const int numStages = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumStages");
674  width_ = ceil(log2(pow(numBinsZT, numStages)));
675  const Format<Variable::z, Process::dtc> z(iConfig, setup);
676  range_ = -1.;
677  for (int eta = 0; eta < setup->numSectorsEta(); eta++)
678  range_ = max(range_, (sinh(setup->boundarieEta(eta + 1)) - sinh(setup->boundarieEta(eta))));
679  range_ *= setup->chosenRofZ();
680  const int shift = ceil(log2(range_ / z.base() / pow(2., width_)));
681  base_ = z.base() * pow(2., shift);
682  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [50/71]

template<>
trackerTFP::Format< Variable::cot, Process::zht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 685 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), edm::ParameterSet::getParameter(), funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, trackerTFP::DataFormat::width_, and trackerTFP::zT.

685  : DataFormat(true) {
686  const int numBinsCot = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumBinsCot");
687  const int numStages = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumStages");
688  width_ = ceil(log2(pow(numBinsCot, numStages)));
689  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
690  range_ = (zT.range() + 2. * setup->beamWindowZ()) / setup->chosenRofZ();
691  const int shift = ceil(log2(range_)) - width_;
692  base_ = pow(2., shift);
693  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [51/71]

template<>
trackerTFP::Format< Variable::z, Process::zht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 696 of file DataFormats.cc.

References funct::abs(), trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::cot, trackerTFP::dtc, SiStripPI::max, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, trackerTFP::DataFormat::width_, and trackerTFP::zT.

696  : DataFormat(true) {
697  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
698  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
699  const double rangeR =
700  2. * max(abs(setup->outerRadius() - setup->chosenRofZ()), abs(setup->innerRadius() - setup->chosenRofZ()));
701  range_ = zT.base() + cot.base() * rangeR + setup->maxdZ();
702  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
703  base_ = dtc.base();
704  width_ = ceil(log2(range_ / base_));
705  /*const Format<Variable::z, Process::gp> z(iConfig, setup);
706  width_ = z.width();
707  range_ = z.range();
708  base_ = z.base();*/
709  }
constexpr int32_t ceil(float num)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ Format() [52/71]

template<>
trackerTFP::Format< Variable::z, Process::kfin >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 712 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, trackerTFP::DataFormat::width_, and trackerTFP::zht.

712  : DataFormat(true) {
713  const Format<Variable::z, Process::zht> zht(iConfig, setup);
714  range_ = zht.range() * pow(2, setup->kfinShiftRangeZ());
715  base_ = zht.base();
716  width_ = ceil(log2(range_ / base_));
717  }
constexpr int32_t ceil(float num)
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [53/71]

template<>
trackerTFP::Format< Variable::phi, Process::zht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 720 of file DataFormats.cc.

References funct::abs(), trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::dtc, edm::ParameterSet::getParameter(), trackerTFP::inv2R, SiStripPI::max, trackerTFP::phiT, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

720  : DataFormat(true) {
721  const Format<Variable::phiT, Process::mht> phiT(iConfig, setup);
722  const Format<Variable::inv2R, Process::mht> inv2R(iConfig, setup);
723  const double chosenRofPhi =
724  iConfig.getParameter<bool>("UseHybrid") ? setup->hybridChosenRofPhi() : setup->chosenRofPhi();
725  const double rangeR = 2. * max(abs(setup->outerRadius() - chosenRofPhi), abs(setup->innerRadius() - chosenRofPhi));
726  range_ = phiT.base() + inv2R.base() * rangeR + setup->maxdPhi();
727  const Format<Variable::phi, Process::dtc> dtc(iConfig, setup);
728  base_ = dtc.base();
729  width_ = ceil(log2(range_ / base_));
730  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ Format() [54/71]

template<>
trackerTFP::Format< Variable::phi, Process::kfin >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 733 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, trackerTFP::DataFormat::width_, and trackerTFP::zht.

733  : DataFormat(true) {
734  const Format<Variable::phi, Process::zht> zht(iConfig, setup);
735  range_ = zht.range() * pow(2, setup->kfinShiftRangePhi());
736  base_ = zht.base();
737  width_ = ceil(log2(range_ / base_));
738  }
constexpr int32_t ceil(float num)
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [55/71]

template<>
trackerTFP::Format< Variable::z, Process::kf >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 741 of file DataFormats.cc.

References funct::abs(), trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::cot, trackerTFP::dtc, edm::ParameterSet::getParameter(), SiStripPI::max, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, trackerTFP::DataFormat::width_, and trackerTFP::zT.

741  : DataFormat(true) {
742  /*const Format<Variable::z, Process::zht> z(iConfig, setup);
743  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
744  range_ = rangeFactor * z.range();
745  base_ = z.base();
746  width_ = ceil(log2(range_ / base_));*/
747  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
748  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
749  const double rangeR =
750  2. * max(abs(setup->outerRadius() - setup->chosenRofZ()), abs(setup->innerRadius() - setup->chosenRofZ()));
751  range_ = zT.base() + cot.base() * rangeR + setup->maxdZ();
752  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
753  base_ = dtc.base();
754  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
755  range_ *= rangeFactor;
756  width_ = ceil(log2(range_ / base_));
757  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ Format() [56/71]

template<>
trackerTFP::Format< Variable::layer, Process::ht >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 760 of file DataFormats.cc.

References reco::ceil(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

760  : DataFormat(false) {
761  range_ = setup->numLayers();
762  width_ = ceil(log2(range_));
763  }
constexpr int32_t ceil(float num)

◆ Format() [57/71]

template<>
trackerTFP::Format< Variable::sectorEta, Process::gp >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 766 of file DataFormats.cc.

References reco::ceil(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

767  : DataFormat(false) {
768  range_ = setup->numSectorsEta();
769  width_ = ceil(log2(range_));
770  }
constexpr int32_t ceil(float num)

◆ Format() [58/71]

template<>
trackerTFP::Format< Variable::sectorPhi, Process::gp >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 773 of file DataFormats.cc.

References reco::ceil(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

774  : DataFormat(false) {
775  range_ = setup->numSectorsPhi();
776  width_ = ceil(log2(range_));
777  }
constexpr int32_t ceil(float num)

◆ Format() [59/71]

template<>
trackerTFP::Format< Variable::sectorsPhi, Process::dtc >::Format ( const ParameterSet iConfig,
const Setup setup 
)

Definition at line 780 of file DataFormats.cc.

References trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

781  : DataFormat(false) {
782  range_ = setup->numSectorsPhi();
783  width_ = setup->numSectorsPhi();
784  }

◆ Format() [60/71]

template<>
trackerTFP::Format< Variable::match, Process::kf >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 787 of file DataFormats.cc.

References trackerTFP::DataFormat::range_, and trackerTFP::DataFormat::width_.

788  : DataFormat(false) {
789  width_ = 1;
790  range_ = 1.;
791  }

◆ Format() [61/71]

template<>
trackerTFP::Format< Variable::hitPattern, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 794 of file DataFormats.cc.

References singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

795  : DataFormat(false) {
796  width_ = setup->numLayers();
797  }

◆ Format() [62/71]

template<>
trackerTFP::Format< Variable::phi0, Process::dr >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 800 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), edm::ParameterSet::getParameter(), trackerTFP::inv2R, M_PI, trackerTFP::phiT, funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, and trackerTFP::DataFormat::width_.

800  : DataFormat(true) {
801  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
802  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
803  const double chosenRofPhi =
804  iConfig.getParameter<bool>("UseHybrid") ? setup->hybridChosenRofPhi() : setup->chosenRofPhi();
805  width_ = setup->tfpWidthPhi0();
806  range_ = 2. * M_PI / (double)setup->numRegions() + inv2R.range() * chosenRofPhi;
807  base_ = phiT.base();
808  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
809  base_ *= pow(2., shift);
810  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
#define M_PI
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [63/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::dr >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 813 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::inv2R, funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, and trackerTFP::DataFormat::width_.

814  : DataFormat(true) {
815  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
816  width_ = setup->tfpWidthInv2R();
817  range_ = inv2R.range();
818  base_ = inv2R.base();
819  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
820  base_ *= pow(2., shift);
821  }
constexpr int32_t ceil(float num)
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [64/71]

template<>
trackerTFP::Format< Variable::z0, Process::dr >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 824 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, trackerTFP::DataFormat::width_, and trackerTFP::zT.

824  : DataFormat(true) {
825  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
826  width_ = setup->tfpWidthZ0();
827  range_ = 2. * setup->beamWindowZ();
828  base_ = zT.base();
829  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
830  base_ *= pow(2., shift);
831  }
constexpr int32_t ceil(float num)
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [65/71]

template<>
trackerTFP::Format< Variable::cot, Process::dr >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 834 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::cot, funct::pow(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, edm::shift, and trackerTFP::DataFormat::width_.

834  : DataFormat(true) {
835  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
836  width_ = setup->tfpWidthCot();
837  range_ = 2. * setup->maxCot();
838  base_ = cot.base();
839  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
840  base_ *= pow(2., shift);
841  }
constexpr int32_t ceil(float num)
static unsigned int const shift
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ Format() [66/71]

template<>
trackerTFP::Format< Variable::phiT, Process::kf >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 844 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), edm::ParameterSet::getParameter(), trackerTFP::phi0, trackerTFP::phiT, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

844  : DataFormat(true) {
845  const Format<Variable::phi0, Process::dr> phi0(iConfig, setup);
846  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
847  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
848  range_ = rangeFactor * phiT.range();
849  base_ = phi0.base();
850  width_ = ceil(log2(range_ / base_));
851  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ Format() [67/71]

template<>
trackerTFP::Format< Variable::inv2R, Process::kf >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 854 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::dr, edm::ParameterSet::getParameter(), trackerTFP::mht, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

855  : DataFormat(true) {
856  const Format<Variable::inv2R, Process::dr> dr(iConfig, setup);
857  const Format<Variable::inv2R, Process::mht> mht(iConfig, setup);
858  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
859  range_ = mht.range() + rangeFactor * mht.base();
860  base_ = dr.base();
861  width_ = ceil(log2(range_ / base_));
862  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ Format() [68/71]

template<>
trackerTFP::Format< Variable::zT, Process::kf >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 865 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), edm::ParameterSet::getParameter(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, trackerTFP::DataFormat::width_, trackerTFP::z0, and trackerTFP::zT.

865  : DataFormat(true) {
866  const Format<Variable::z0, Process::dr> z0(iConfig, setup);
867  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
868  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
869  range_ = zT.range() + rangeFactor * zT.base();
870  base_ = z0.base();
871  width_ = ceil(log2(range_ / base_));
872  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ Format() [69/71]

template<>
trackerTFP::Format< Variable::cot, Process::kf >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 875 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::dr, edm::ParameterSet::getParameter(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, trackerTFP::DataFormat::width_, and trackerTFP::zht.

875  : DataFormat(true) {
876  const Format<Variable::cot, Process::dr> dr(iConfig, setup);
877  const Format<Variable::cot, Process::zht> zht(iConfig, setup);
878  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
879  range_ = zht.range() + rangeFactor * zht.base();
880  base_ = dr.base();
881  width_ = ceil(log2(range_ / base_));
882  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307

◆ Format() [70/71]

template<>
trackerTFP::Format< Variable::dPhi, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 885 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::phi, trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, and trackerTFP::DataFormat::width_.

886  : DataFormat(false) {
887  const Format<Variable::phi, Process::kfin> phi(iConfig, setup);
888  range_ = setup->maxdPhi();
889  base_ = phi.base();
890  width_ = ceil(log2(range_ / base_));
891  }
constexpr int32_t ceil(float num)

◆ Format() [71/71]

template<>
trackerTFP::Format< Variable::dZ, Process::kfin >::Format ( const edm::ParameterSet iConfig,
const Setup setup 
)

Definition at line 894 of file DataFormats.cc.

References trackerTFP::DataFormat::base_, reco::ceil(), trackerTFP::DataFormat::range_, singleTopDQM_cfi::setup, trackerTFP::DataFormat::width_, and trackerTFP::z.

895  : DataFormat(false) {
896  const Format<Variable::z, Process::kfin> z(iConfig, setup);
897  range_ = setup->maxdZ();
898  base_ = z.base();
899  width_ = ceil(log2(range_ / base_));
900  }
constexpr int32_t ceil(float num)