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

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

560  : DataFormat(true) {
561  range_ = 2. * M_PI / (double)(setup->numRegions() * setup->numSectorsPhi());
562  base_ = range_ / (double)setup->htNumBinsPhiT();
563  width_ = ceil(log2(setup->htNumBinsPhiT()));
564  }
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 567 of file DataFormats.cc.

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

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

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

575  : DataFormat(true) {
576  const double mintPt = iConfig.getParameter<bool>("UseHybrid") ? setup->hybridMinPtCand() : setup->minPt();
577  range_ = 2. * setup->invPtToDphi() / mintPt;
578  base_ = range_ / (double)setup->htNumBinsInv2R();
579  width_ = ceil(log2(setup->htNumBinsInv2R()));
580  }
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 583 of file DataFormats.cc.

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

583  : DataFormat(true) {
584  const Format<Variable::inv2R, Process::ht> ht(iConfig, setup);
585  range_ = ht.range();
586  base_ = ht.base() / setup->mhtNumBinsInv2R();
587  width_ = ceil(log2(setup->htNumBinsInv2R() * setup->mhtNumBinsInv2R()));
588  }
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 591 of file DataFormats.cc.

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

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

◆ Format() [42/71]

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

Definition at line 604 of file DataFormats.cc.

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

604  : DataFormat(true) {
605  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
606  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
607  const Format<Variable::r, Process::ht> r(iConfig, setup);
608  range_ = phiT.range() + inv2R.range() * r.base() * pow(2., r.width()) / 4.;
609  const Format<Variable::phi, Process::dtc> dtc(iConfig, setup);
610  base_ = dtc.base();
611  width_ = ceil(log2(range_ / base_));
612  }
constexpr int32_t ceil(float num)
constexpr int pow(int x)
Definition: conifer.h:24

◆ Format() [43/71]

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

Definition at line 615 of file DataFormats.cc.

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

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

◆ Format() [44/71]

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

Definition at line 626 of file DataFormats.cc.

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

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

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

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

644  : DataFormat(true) {
645  const Format<Variable::phi, Process::zht> phi(iConfig, setup);
646  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
647  range_ = rangeFactor * phi.range();
648  base_ = phi.base();
649  width_ = ceil(log2(range_ / base_));
650  }
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 653 of file DataFormats.cc.

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

653  : DataFormat(true) {
654  width_ = setup->tmttWidthZ();
655  range_ = 2. * setup->halfLength();
656  const Format<Variable::r, Process::ht> r(iConfig, setup);
657  const int shift = ceil(log2(range_ / r.base())) - width_;
658  base_ = r.base() * pow(2., shift);
659  }
constexpr int32_t ceil(float num)
constexpr int pow(int x)
Definition: conifer.h:24
static unsigned int const shift

◆ Format() [48/71]

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

Definition at line 662 of file DataFormats.cc.

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

662  : DataFormat(true) {
663  range_ = setup->neededRangeChiZ();
664  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
665  base_ = dtc.base();
666  width_ = ceil(log2(range_ / base_));
667  }
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 670 of file DataFormats.cc.

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

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

◆ Format() [50/71]

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

Definition at line 684 of file DataFormats.cc.

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

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

◆ Format() [51/71]

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

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

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

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

711  : DataFormat(true) {
712  const Format<Variable::z, Process::zht> zht(iConfig, setup);
713  range_ = zht.range() * pow(2, setup->kfinShiftRangeZ());
714  base_ = zht.base();
715  width_ = ceil(log2(range_ / base_));
716  }
constexpr int32_t ceil(float num)
constexpr int pow(int x)
Definition: conifer.h:24

◆ Format() [53/71]

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

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

719  : DataFormat(true) {
720  const Format<Variable::phiT, Process::mht> phiT(iConfig, setup);
721  const Format<Variable::inv2R, Process::mht> inv2R(iConfig, setup);
722  const double chosenRofPhi =
723  iConfig.getParameter<bool>("UseHybrid") ? setup->hybridChosenRofPhi() : setup->chosenRofPhi();
724  const double rangeR = 2. * max(abs(setup->outerRadius() - chosenRofPhi), abs(setup->innerRadius() - chosenRofPhi));
725  range_ = phiT.base() + inv2R.base() * rangeR + setup->maxdPhi();
726  const Format<Variable::phi, Process::dtc> dtc(iConfig, setup);
727  base_ = dtc.base();
728  width_ = ceil(log2(range_ / base_));
729  }
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 732 of file DataFormats.cc.

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

732  : DataFormat(true) {
733  const Format<Variable::phi, Process::zht> zht(iConfig, setup);
734  range_ = zht.range() * pow(2, setup->kfinShiftRangePhi());
735  base_ = zht.base();
736  width_ = ceil(log2(range_ / base_));
737  }
constexpr int32_t ceil(float num)
constexpr int pow(int x)
Definition: conifer.h:24

◆ Format() [55/71]

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

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

740  : DataFormat(true) {
741  /*const Format<Variable::z, Process::zht> z(iConfig, setup);
742  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
743  range_ = rangeFactor * z.range();
744  base_ = z.base();
745  width_ = ceil(log2(range_ / base_));*/
746  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
747  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
748  const double rangeR =
749  2. * max(abs(setup->outerRadius() - setup->chosenRofZ()), abs(setup->innerRadius() - setup->chosenRofZ()));
750  range_ = zT.base() + cot.base() * rangeR + setup->maxdZ();
751  const Format<Variable::z, Process::dtc> dtc(iConfig, setup);
752  base_ = dtc.base();
753  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
754  range_ *= rangeFactor;
755  width_ = ceil(log2(range_ / base_));
756  }
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 759 of file DataFormats.cc.

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

759  : DataFormat(false) {
760  range_ = setup->numLayers();
761  width_ = ceil(log2(range_));
762  }
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 765 of file DataFormats.cc.

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

766  : DataFormat(false) {
767  range_ = setup->numSectorsEta();
768  width_ = ceil(log2(range_));
769  }
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 772 of file DataFormats.cc.

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

773  : DataFormat(false) {
774  range_ = setup->numSectorsPhi();
775  width_ = ceil(log2(range_));
776  }
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 779 of file DataFormats.cc.

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

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

◆ Format() [60/71]

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

Definition at line 786 of file DataFormats.cc.

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

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

◆ Format() [61/71]

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

Definition at line 793 of file DataFormats.cc.

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

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

◆ Format() [62/71]

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

Definition at line 799 of file DataFormats.cc.

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

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

◆ Format() [63/71]

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

Definition at line 812 of file DataFormats.cc.

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

813  : DataFormat(true) {
814  const Format<Variable::inv2R, Process::ht> inv2R(iConfig, setup);
815  width_ = setup->tfpWidthInv2R();
816  range_ = inv2R.range();
817  base_ = inv2R.base();
818  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
819  base_ *= pow(2., shift);
820  }
constexpr int32_t ceil(float num)
constexpr int pow(int x)
Definition: conifer.h:24
static unsigned int const shift

◆ Format() [64/71]

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

Definition at line 823 of file DataFormats.cc.

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

823  : DataFormat(true) {
824  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
825  width_ = setup->tfpWidthZ0();
826  range_ = 2. * setup->beamWindowZ();
827  base_ = zT.base();
828  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
829  base_ *= pow(2., shift);
830  }
constexpr int32_t ceil(float num)
constexpr int pow(int x)
Definition: conifer.h:24
static unsigned int const shift

◆ Format() [65/71]

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

Definition at line 833 of file DataFormats.cc.

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

833  : DataFormat(true) {
834  const Format<Variable::cot, Process::zht> cot(iConfig, setup);
835  width_ = setup->tfpWidthCot();
836  range_ = 2. * setup->maxCot();
837  base_ = cot.base();
838  const int shift = ceil(log2(range_ / base_ / pow(2., width_)));
839  base_ *= pow(2., shift);
840  }
constexpr int32_t ceil(float num)
constexpr int pow(int x)
Definition: conifer.h:24
static unsigned int const shift

◆ Format() [66/71]

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

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

843  : DataFormat(true) {
844  const Format<Variable::phi0, Process::dr> phi0(iConfig, setup);
845  const Format<Variable::phiT, Process::ht> phiT(iConfig, setup);
846  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
847  range_ = rangeFactor * phiT.range();
848  base_ = phi0.base();
849  width_ = ceil(log2(range_ / base_));
850  }
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 853 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_.

854  : DataFormat(true) {
855  const Format<Variable::inv2R, Process::dr> dr(iConfig, setup);
856  const Format<Variable::inv2R, Process::mht> mht(iConfig, setup);
857  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
858  range_ = mht.range() + rangeFactor * mht.base();
859  base_ = dr.base();
860  width_ = ceil(log2(range_ / base_));
861  }
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 864 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.

864  : DataFormat(true) {
865  const Format<Variable::z0, Process::dr> z0(iConfig, setup);
866  const Format<Variable::zT, Process::zht> zT(iConfig, setup);
867  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
868  range_ = zT.range() + rangeFactor * zT.base();
869  base_ = z0.base();
870  width_ = ceil(log2(range_ / base_));
871  }
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 874 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.

874  : DataFormat(true) {
875  const Format<Variable::cot, Process::dr> dr(iConfig, setup);
876  const Format<Variable::cot, Process::zht> zht(iConfig, setup);
877  const double rangeFactor = iConfig.getParameter<ParameterSet>("KalmanFilter").getParameter<double>("RangeFactor");
878  range_ = zht.range() + rangeFactor * zht.base();
879  base_ = dr.base();
880  width_ = ceil(log2(range_ / base_));
881  }
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 884 of file DataFormats.cc.

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

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

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

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