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

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

555  : DataFormat(true) {
556  range_ = 2. * M_PI / (double)(setup->numRegions() * setup->numSectorsPhi());
557  base_ = range_ / (double)setup->htNumBinsPhiT();
558  width_ = ceil(log2(setup->htNumBinsPhiT()));
559  }
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 562 of file DataFormats.cc.

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

562  : DataFormat(true) {
563  const Format<Variable::phiT, Process::ht> ht(iConfig, setup);
564  range_ = ht.range();
565  base_ = ht.base() / setup->mhtNumBinsPhiT();
566  width_ = ceil(log2(setup->htNumBinsPhiT() * setup->mhtNumBinsPhiT()));
567  }
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 570 of file DataFormats.cc.

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

570  : DataFormat(true) {
571  const double mintPt = iConfig.getParameter<bool>("UseHybrid") ? setup->hybridMinPtCand() : setup->minPt();
572  range_ = 2. * setup->invPtToDphi() / mintPt;
573  base_ = range_ / (double)setup->htNumBinsInv2R();
574  width_ = ceil(log2(setup->htNumBinsInv2R()));
575  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

◆ Format() [40/71]

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

Definition at line 578 of file DataFormats.cc.

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

578  : DataFormat(true) {
579  const Format<Variable::inv2R, Process::ht> ht(iConfig, setup);
580  range_ = ht.range();
581  base_ = ht.base() / setup->mhtNumBinsInv2R();
582  width_ = ceil(log2(setup->htNumBinsInv2R() * setup->mhtNumBinsInv2R()));
583  }
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 586 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_.

586  : DataFormat(true) {
587  const double chosenRofPhi =
588  iConfig.getParameter<bool>("UseHybrid") ? setup->hybridChosenRofPhi() : setup->chosenRofPhi();
589  width_ = setup->tmttWidthR();
590  range_ = 2. * max(abs(setup->outerRadius() - chosenRofPhi), abs(setup->innerRadius() - chosenRofPhi));
591  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
592  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
593  base_ = phiT.base() / inv2R.base();
594  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
595  base_ *= pow(2., shift);
596  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 599 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_.

599  : DataFormat(true) {
600  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
601  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
602  const Format<Variable::r, Process::ht> r(iConfig, setup);
603  range_ = phiT.range() + inv2R.range() * r.base() * pow(2., r.width()) / 4.;
604  const Format<Variable::phi, Process::dtc> dtc(iConfig, setup);
605  base_ = dtc.base();
606  width_ = ceil(log2(range_ / base_));
607  }
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 610 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_.

610  : DataFormat(true) {
611  width_ = setup->tmttWidthPhi();
612  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
613  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
614  const Format<Variable::r, Process::ht> r(iConfig, setup);
615  range_ = 2. * M_PI / (double)setup->numRegions() + inv2R.range() * r.base() * pow(2., r.width()) / 4.;
616  const int shift = ceil(log2(range_ / phiT.base() / pow(2., width_)));
617  base_ = phiT.base() * pow(2., shift);
618  }
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 621 of file DataFormats.cc.

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

621  : DataFormat(true) {
622  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
623  range_ = 2. * phiT.base();
624  const Format<Variable::phi, Process::gp> gp(iConfig, setup);
625  base_ = gp.base();
626  width_ = ceil(log2(range_ / base_));
627  }
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 630 of file DataFormats.cc.

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

630  : DataFormat(true) {
631  const Format<Variable::phiT, Process::mht> phiT(iConfig, setup);
632  range_ = 2. * phiT.base();
633  const Format<Variable::phi, Process::ht> ht(iConfig, setup);
634  base_ = ht.base();
635  width_ = ceil(log2(range_ / base_));
636  }
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 639 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_.

639  : DataFormat(true) {
640  const Format<Variable::phi, Process::zht> phi(iConfig, setup);
641  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
642  range_ = rangeFactor * phi.range();
643  base_ = phi.base();
644  width_ = ceil(log2(range_ / base_));
645  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

◆ Format() [47/71]

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

Definition at line 648 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_.

648  : DataFormat(true) {
649  width_ = setup->tmttWidthZ();
650  range_ = 2. * setup->halfLength();
651  const Format<Variable::r, Process::ht> r(iConfig, setup);
652  const int shift = ceil(log2(range_ / r.base())) - width_;
653  base_ = r.base() * pow(2., shift);
654  }
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 657 of file DataFormats.cc.

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

657  : DataFormat(true) {
658  range_ = setup->neededRangeChiZ();
659  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
660  base_ = dtc.base();
661  width_ = ceil(log2(range_ / base_));
662  }
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 665 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.

665  : DataFormat(true) {
666  const int numBinsZT = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumBinsZT");
667  const int numStages = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumStages");
668  width_ = ceil(log2(pow(numBinsZT, numStages)));
669  const Format<Variable::z, Process::dtc> z(iConfig, setup);
670  range_ = -1.;
671  for (int eta = 0; eta < setup->numSectorsEta(); eta++)
672  range_ = max(range_, (sinh(setup->boundarieEta(eta + 1)) - sinh(setup->boundarieEta(eta))));
673  range_ *= setup->chosenRofZ();
674  const int shift = ceil(log2(range_ / z.base() / pow(2., width_)));
675  base_ = z.base() * pow(2., shift);
676  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 679 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.

679  : DataFormat(true) {
680  const int numBinsCot = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumBinsCot");
681  const int numStages = iConfig.getParameter<ParameterSet>("ZHoughTransform").getParameter<int>("NumStages");
682  width_ = ceil(log2(pow(numBinsCot, numStages)));
683  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
684  range_ = (zT.range() + 2. * setup->beamWindowZ()) / setup->chosenRofZ();
685  const int shift = ceil(log2(range_)) - width_;
686  base_ = pow(2., shift);
687  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 690 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.

690  : DataFormat(true) {
691  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
692  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
693  const double rangeR =
694  2. * max(abs(setup->outerRadius() - setup->chosenRofZ()), abs(setup->innerRadius() - setup->chosenRofZ()));
695  range_ = zT.base() + cot.base() * rangeR + setup->maxdZ();
696  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
697  base_ = dtc.base();
698  width_ = ceil(log2(range_ / base_));
699  /*const Format<Variable::z, Process::gp> z(iConfig, setup);
700  width_ = z.width();
701  range_ = z.range();
702  base_ = z.base();*/
703  }
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 706 of file DataFormats.cc.

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

706  : DataFormat(true) {
707  const Format<Variable::z, Process::zht> zht(iConfig, setup);
708  range_ = zht.range() * pow(2, setup->kfinShiftRangeZ());
709  base_ = zht.base();
710  width_ = ceil(log2(range_ / base_));
711  }
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 714 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_.

714  : DataFormat(true) {
715  const Format<Variable::phiT, Process::mht> phiT(iConfig, setup);
716  const Format<Variable::inv2R, Process::mht> inv2R(iConfig, setup);
717  const double chosenRofPhi =
718  iConfig.getParameter<bool>("UseHybrid") ? setup->hybridChosenRofPhi() : setup->chosenRofPhi();
719  const double rangeR = 2. * max(abs(setup->outerRadius() - chosenRofPhi), abs(setup->innerRadius() - chosenRofPhi));
720  range_ = phiT.base() + inv2R.base() * rangeR + setup->maxdPhi();
721  const Format<Variable::phi, Process::dtc> dtc(iConfig, setup);
722  base_ = dtc.base();
723  width_ = ceil(log2(range_ / base_));
724  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 727 of file DataFormats.cc.

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

727  : DataFormat(true) {
728  const Format<Variable::phi, Process::zht> zht(iConfig, setup);
729  range_ = zht.range() * pow(2, setup->kfinShiftRangePhi());
730  base_ = zht.base();
731  width_ = ceil(log2(range_ / base_));
732  }
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 735 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.

735  : DataFormat(true) {
736  /*const Format<Variable::z, Process::zht> z(iConfig, setup);
737  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
738  range_ = rangeFactor * z.range();
739  base_ = z.base();
740  width_ = ceil(log2(range_ / base_));*/
741  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
742  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
743  const double rangeR =
744  2. * max(abs(setup->outerRadius() - setup->chosenRofZ()), abs(setup->innerRadius() - setup->chosenRofZ()));
745  range_ = zT.base() + cot.base() * rangeR + setup->maxdZ();
746  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
747  base_ = dtc.base();
748  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
749  range_ *= rangeFactor;
750  width_ = ceil(log2(range_ / base_));
751  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 754 of file DataFormats.cc.

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

754  : DataFormat(false) {
755  range_ = setup->numLayers();
756  width_ = ceil(log2(range_));
757  }
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 760 of file DataFormats.cc.

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

761  : DataFormat(false) {
762  range_ = setup->numSectorsEta();
763  width_ = ceil(log2(range_));
764  }
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 767 of file DataFormats.cc.

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

768  : DataFormat(false) {
769  range_ = setup->numSectorsPhi();
770  width_ = ceil(log2(range_));
771  }
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 774 of file DataFormats.cc.

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

775  : DataFormat(false) {
776  range_ = setup->numSectorsPhi();
777  width_ = setup->numSectorsPhi();
778  }

◆ Format() [60/71]

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

Definition at line 781 of file DataFormats.cc.

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

782  : DataFormat(false) {
783  width_ = 1;
784  range_ = 1.;
785  }

◆ Format() [61/71]

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

Definition at line 788 of file DataFormats.cc.

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

789  : DataFormat(false) {
790  width_ = setup->numLayers();
791  }

◆ Format() [62/71]

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

Definition at line 794 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_.

794  : DataFormat(true) {
795  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
796  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
797  const double chosenRofPhi =
798  iConfig.getParameter<bool>("UseHybrid") ? setup->hybridChosenRofPhi() : setup->chosenRofPhi();
799  width_ = setup->tfpWidthPhi0();
800  range_ = 2. * M_PI / (double)setup->numRegions() + inv2R.range() * chosenRofPhi;
801  base_ = phiT.base();
802  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
803  base_ *= pow(2., shift);
804  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
#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 807 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_.

808  : DataFormat(true) {
809  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
810  width_ = setup->tfpWidthInv2R();
811  range_ = inv2R.range();
812  base_ = inv2R.base();
813  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
814  base_ *= pow(2., shift);
815  }
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 818 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.

818  : DataFormat(true) {
819  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
820  width_ = setup->tfpWidthZ0();
821  range_ = 2. * setup->beamWindowZ();
822  base_ = zT.base();
823  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
824  base_ *= pow(2., shift);
825  }
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 828 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_.

828  : DataFormat(true) {
829  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
830  width_ = setup->tfpWidthCot();
831  range_ = 2. * setup->maxCot();
832  base_ = cot.base();
833  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
834  base_ *= pow(2., shift);
835  }
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 838 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_.

838  : DataFormat(true) {
839  const Format<Variable::phi0, Process::dr> phi0(iConfig, setup);
840  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
841  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
842  range_ = rangeFactor * phiT.range();
843  base_ = phi0.base();
844  width_ = ceil(log2(range_ / base_));
845  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

◆ Format() [67/71]

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

Definition at line 848 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_.

849  : DataFormat(true) {
850  const Format<Variable::inv2R, Process::dr> dr(iConfig, setup);
851  const Format<Variable::inv2R, Process::mht> mht(iConfig, setup);
852  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
853  range_ = mht.range() + rangeFactor * mht.base();
854  base_ = dr.base();
855  width_ = ceil(log2(range_ / base_));
856  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

◆ Format() [68/71]

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

Definition at line 859 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.

859  : DataFormat(true) {
860  const Format<Variable::z0, Process::dr> z0(iConfig, setup);
861  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
862  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
863  range_ = zT.range() + rangeFactor * zT.base();
864  base_ = z0.base();
865  width_ = ceil(log2(range_ / base_));
866  }
constexpr int32_t ceil(float num)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

◆ Format() [69/71]

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

Definition at line 869 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.

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

◆ Format() [70/71]

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

Definition at line 879 of file DataFormats.cc.

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

880  : DataFormat(false) {
881  const Format<Variable::phi, Process::kfin> phi(iConfig, setup);
882  range_ = setup->maxdPhi();
883  base_ = phi.base();
884  width_ = ceil(log2(range_ / base_));
885  }
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 888 of file DataFormats.cc.

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

889  : DataFormat(false) {
890  const Format<Variable::z, Process::kfin> z(iConfig, setup);
891  range_ = setup->maxdZ();
892  base_ = z.base();
893  width_ = ceil(log2(range_ / base_));
894  }
constexpr int32_t ceil(float num)