Class to calculate and provide dataformats used by Track Trigger emulator. More...
#include <DataFormats.h>
Public Member Functions | |
template<int it, typename... Ts> | |
void | attachStub (Process p, const tuple< Ts... > &data, TTBV &ttBV) const |
template<int it, typename... Ts> | |
void | attachTrack (Process p, const tuple< Ts... > &data, TTBV &ttBV) const |
double | base (Variable v, Process p) const |
double | chosenRofPhi () const |
template<typename... Ts> | |
void | convertStub (Process p, const Frame &bv, tuple< Ts... > &data) const |
template<typename... Ts> | |
void | convertStub (Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const |
template<typename... Ts> | |
void | convertStub (Process p, const std::tuple< Ts... > &data, tt::Frame &bv) const |
template<typename... Ts> | |
void | convertTrack (Process p, const Frame &bv, tuple< Ts... > &data) const |
template<typename... Ts> | |
void | convertTrack (Process p, const tt::Frame &bv, std::tuple< Ts... > &data) const |
template<typename... Ts> | |
void | convertTrack (Process p, const std::tuple< Ts... > &data, tt::Frame &bv) const |
DataFormats () | |
DataFormats (const edm::ParameterSet &iConfig, const tt::Setup *setup) | |
const DataFormat & | format (Variable v, Process p) const |
bool | hybrid () const |
int | numChannel (Process p) const |
int | numStreams (Process p) const |
int | numStreamsStubs (Process p) const |
int | numStreamsTracks (Process p) const |
int | numUnusedBitsStubs (Process p) const |
int | numUnusedBitsTracks (Process p) const |
const tt::Setup * | setup () const |
int | width (Variable v, Process p) const |
~DataFormats () | |
Private Member Functions | |
template<int it = 0, typename... Ts> | |
void | attachStub (Process p, const std::tuple< Ts... > &data, TTBV &ttBV) const |
template<int it = 0, typename... Ts> | |
void | attachTrack (Process p, const std::tuple< Ts... > &data, TTBV &ttBV) const |
template<Variable v = Variable::begin, Process p = Process::begin> | |
void | countFormats () |
template<int it = 0, typename... Ts> | |
void | extractStub (Process p, TTBV &ttBV, std::tuple< Ts... > &data) const |
template<int it = 0, typename... Ts> | |
void | extractTrack (Process p, TTBV &ttBV, std::tuple< Ts... > &data) const |
template<Variable v = Variable::begin, Process p = Process::begin> | |
void | fillDataFormats () |
template<Variable v, Process p, Process it = Process::begin> | |
void | fillFormats () |
Private Attributes | |
std::vector< DataFormat > | dataFormats_ |
std::vector< std::vector< DataFormat * > > | formats_ |
edm::ParameterSet | iConfig_ |
std::vector< int > | numChannel_ |
int | numDataFormats_ |
std::vector< int > | numStreams_ |
std::vector< int > | numStreamsStubs_ |
std::vector< int > | numStreamsTracks_ |
std::vector< int > | numUnusedBitsStubs_ |
std::vector< int > | numUnusedBitsTracks_ |
const tt::Setup * | setup_ |
Static Private Attributes | |
static constexpr std::array< std::array< Process,+Process::end >,+Variable::end > | config_ |
static constexpr std::array< std::initializer_list< Variable >,+Process::end > | stubs_ |
static constexpr std::array< std::initializer_list< Variable >,+Process::end > | tracks_ |
Class to calculate and provide dataformats used by Track Trigger emulator.
Definition at line 216 of file DataFormats.h.
DataFormats::DataFormats | ( | ) |
Definition at line 20 of file DataFormats.cc.
References countFormats(), dataFormats_, trackerTFP::end, numDataFormats_, numStreams_, numStreamsStubs_, numStreamsTracks_, and setup_.
DataFormats::DataFormats | ( | const edm::ParameterSet & | iConfig, |
const tt::Setup * | setup | ||
) |
Definition at line 46 of file DataFormats.cc.
References trackerTFP::dtc, trackerTFP::end, fillDataFormats(), formats_, trackerTFP::gp, trackerTFP::ht, tt::Setup::htNumBinsInv2R(), iConfig_, trackerTFP::kf, trackerTFP::kfin, tt::Setup::kfNumWorker(), trackerTFP::mht, numChannel_, tt::Setup::numDTCsPerRegion(), tt::Setup::numDTCsPerTFP(), tt::Setup::numLayers(), tt::Setup::numRegions(), tt::Setup::numSectors(), numStreams_, numStreamsStubs_, numStreamsTracks_, numUnusedBitsStubs_, numUnusedBitsTracks_, AlCaHLTBitMon_ParallelJobs::p, trackerTFP::pp, trackerTFP::Processes, setup(), setup_, stubs_, tracks_, HcalDetIdTransform::transform(), findQualityFiles::v, and trackerTFP::zht.
|
inline |
Definition at line 472 of file DataFormats.h.
void trackerTFP::DataFormats::attachStub | ( | Process | p, |
const tuple< Ts... > & | data, | ||
TTBV & | ttBV | ||
) | const |
Definition at line 128 of file DataFormats.cc.
References trackerTFP::begin, data, formats_, GetRecoTauVFromDQM_MC_cff::next, AlCaHLTBitMon_ParallelJobs::p, stubs_, and findQualityFiles::v.
|
private |
Referenced by convertStub().
void trackerTFP::DataFormats::attachTrack | ( | Process | p, |
const tuple< Ts... > & | data, | ||
TTBV & | ttBV | ||
) | const |
Definition at line 161 of file DataFormats.cc.
References trackerTFP::begin, data, formats_, GetRecoTauVFromDQM_MC_cff::next, AlCaHLTBitMon_ParallelJobs::p, tracks_, and findQualityFiles::v.
|
private |
Referenced by convertTrack().
Definition at line 492 of file DataFormats.h.
References formats_, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.
Referenced by trackerTFP::Stub< double, double, double, double, double >::base(), trackerTFP::Track< int, int, int, double, double, double, double >::base(), trklet::ProducerKFout::beginRun(), trackerTFP::KalmanFilter::KalmanFilter(), trklet::KFin::KFin(), trklet::ProducerKFout::produce(), and trackerTFP::State::State().
|
inline |
Definition at line 508 of file DataFormats.h.
References tt::Setup::chosenRofPhi(), hybrid(), tt::Setup::hybridChosenRofPhi(), and setup_.
Referenced by trklet::KFin::consume(), trackerTFP::State::H12(), trklet::KFin::produce(), trackerTFP::StubGP::StubGP(), trackerTFP::StubZHT::StubZHT(), trackerTFP::TrackDR::TrackDR(), and trackerTFP::TrackKF::ttTrack().
void trackerTFP::DataFormats::convertStub | ( | Process | p, |
const Frame & | bv, | ||
tuple< Ts... > & | data | ||
) | const |
Definition at line 104 of file DataFormats.cc.
References data, extractStub(), and AlCaHLTBitMon_ParallelJobs::p.
void DataFormats::convertStub | ( | Process | p, |
const std::tuple< Ts... > & | data, | ||
tt::Frame & | bv | ||
) | const |
Definition at line 120 of file DataFormats.cc.
References attachStub(), TTBV::bs(), data, numUnusedBitsStubs_, and AlCaHLTBitMon_ParallelJobs::p.
void trackerTFP::DataFormats::convertTrack | ( | Process | p, |
const Frame & | bv, | ||
tuple< Ts... > & | data | ||
) | const |
Definition at line 137 of file DataFormats.cc.
References data, extractTrack(), and AlCaHLTBitMon_ParallelJobs::p.
void DataFormats::convertTrack | ( | Process | p, |
const std::tuple< Ts... > & | data, | ||
tt::Frame & | bv | ||
) | const |
Definition at line 153 of file DataFormats.cc.
References attachTrack(), TTBV::bs(), data, numUnusedBitsTracks_, and AlCaHLTBitMon_ParallelJobs::p.
|
private |
Definition at line 36 of file DataFormats.cc.
References config_, trackerTFP::end, numDataFormats_, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.
Referenced by DataFormats().
|
private |
Definition at line 111 of file DataFormats.cc.
References trackerTFP::begin, data, formats_, GetRecoTauVFromDQM_MC_cff::next, AlCaHLTBitMon_ParallelJobs::p, stubs_, and findQualityFiles::v.
Referenced by convertStub().
|
private |
Definition at line 144 of file DataFormats.cc.
References trackerTFP::begin, data, formats_, GetRecoTauVFromDQM_MC_cff::next, AlCaHLTBitMon_ParallelJobs::p, tracks_, and findQualityFiles::v.
Referenced by convertTrack().
|
private |
Definition at line 81 of file DataFormats.cc.
References config_, dataFormats_, trackerTFP::end, iConfig_, AlCaHLTBitMon_ParallelJobs::p, setup_, and findQualityFiles::v.
Referenced by DataFormats().
|
private |
Definition at line 94 of file DataFormats.cc.
References config_, dataFormats_, trackerTFP::end, formats_, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.
|
inline |
Definition at line 506 of file DataFormats.h.
References formats_, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.
Referenced by trackerTFP::ZHoughTransform::fill(), trackerTFP::State::finish(), trackerTFP::Stub< double, double, double, double, double >::format(), trackerTFP::Track< int, int, int, double, double, double, double >::format(), trackerTFP::FormatKF< v >::FormatKF(), trklet::KFin::produce(), trackerTFP::ProducerZHTout::produce(), trackerTFP::ProducerKFin::produce(), trackerTFP::TrackDR::TrackDR(), and trackerTFP::TrackKF::TrackKF().
|
inline |
Definition at line 474 of file DataFormats.h.
References edm::ParameterSet::getParameter(), and iConfig_.
Referenced by chosenRofPhi(), trackerTFP::KalmanFilter::consume(), and trackerTFP::StubKF::StubKF().
|
inline |
Definition at line 498 of file DataFormats.h.
References numChannel_, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by trackerTFP::HoughTransform::consume(), trackerTFP::GeometricProcessor::consume(), trackerTFP::ZHoughTransform::consume(), trackerTFP::KalmanFilter::consume(), trackerTFP::HoughTransform::produce(), trackerTFP::ZHoughTransform::produce(), trackerTFP::GeometricProcessor::produce(), trackerTFP::KalmanFilter::produce(), trackerTFP::ProducerZHTout::produce(), and trackerTFP::ProducerKFin::produce().
|
inline |
Definition at line 500 of file DataFormats.h.
References numStreams_, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by trackerTFP::ProducerHT::produce(), trackerTFP::ProducerZHT::produce(), trackerTFP::ProducerMHT::produce(), and trackerTFP::ProducerGP::produce().
|
inline |
Definition at line 502 of file DataFormats.h.
References numStreamsStubs_, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by trackerTFP::ProducerKF::produce(), trackerTFP::ProducerKFin::produce(), and trklet::ProducerKFin::produce().
|
inline |
Definition at line 504 of file DataFormats.h.
References numStreamsTracks_, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by trackerTFP::ProducerTT::produce(), trackerTFP::ProducerKF::produce(), trackerTFP::ProducerKFin::produce(), and trklet::ProducerKFin::produce().
|
inline |
Definition at line 494 of file DataFormats.h.
References numUnusedBitsStubs_, and AlCaHLTBitMon_ParallelJobs::p.
|
inline |
Definition at line 496 of file DataFormats.h.
References numUnusedBitsTracks_, and AlCaHLTBitMon_ParallelJobs::p.
|
inline |
Definition at line 488 of file DataFormats.h.
References setup_.
Referenced by DataFormats(), trackerTFP::FormatKF< v >::FormatKF(), trackerTFP::Track< int, int, int, double, double, double, double >::setup(), trackerTFP::StubGP::StubGP(), trackerTFP::StubKF::StubKF(), trackerTFP::StubMHT::StubMHT(), trackerTFP::StubZHT::StubZHT(), and trackerTFP::TrackKFin::TrackKFin().
Definition at line 490 of file DataFormats.h.
References formats_, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::v.
Referenced by trklet::ProducerKFout::beginRun(), trklet::KFin::produce(), trackerTFP::Stub< double, double, double, double, double >::width(), and trackerTFP::Track< int, int, int, double, double, double, double >::width().
|
staticprivate |
Definition at line 219 of file DataFormats.h.
Referenced by countFormats(), fillDataFormats(), and fillFormats().
|
private |
Definition at line 539 of file DataFormats.h.
Referenced by DataFormats(), fillDataFormats(), and fillFormats().
|
private |
Definition at line 541 of file DataFormats.h.
Referenced by attachStub(), attachTrack(), base(), DataFormats(), extractStub(), extractTrack(), fillFormats(), format(), and width().
|
private |
Definition at line 535 of file DataFormats.h.
Referenced by DataFormats(), fillDataFormats(), and hybrid().
|
private |
Definition at line 547 of file DataFormats.h.
Referenced by DataFormats(), and numChannel().
|
private |
Definition at line 512 of file DataFormats.h.
Referenced by countFormats(), and DataFormats().
|
private |
Definition at line 549 of file DataFormats.h.
Referenced by DataFormats(), and numStreams().
|
private |
Definition at line 551 of file DataFormats.h.
Referenced by DataFormats(), and numStreamsStubs().
|
private |
Definition at line 553 of file DataFormats.h.
Referenced by DataFormats(), and numStreamsTracks().
|
private |
Definition at line 543 of file DataFormats.h.
Referenced by convertStub(), DataFormats(), and numUnusedBitsStubs().
|
private |
Definition at line 545 of file DataFormats.h.
Referenced by convertTrack(), DataFormats(), and numUnusedBitsTracks().
|
private |
Definition at line 537 of file DataFormats.h.
Referenced by chosenRofPhi(), DataFormats(), fillDataFormats(), upgradeWorkflowComponents.UpgradeWorkflow::setup(), and setup().
|
staticprivate |
Definition at line 393 of file DataFormats.h.
Referenced by attachStub(), DataFormats(), and extractStub().
|
staticprivate |
Definition at line 444 of file DataFormats.h.
Referenced by attachTrack(), DataFormats(), and extractTrack().