#include <MatchCalculator.h>
Public Member Functions | |
void | addInput (MemoryBase *memory, std::string input) override |
void | addOutput (MemoryBase *memory, std::string output) override |
void | execute (unsigned int iSector, double phioffset) |
MatchCalculator (std::string name, Settings const &settings, Globals *global) | |
std::vector< std::pair< std::pair< Tracklet *, int >, const Stub * > > | mergeMatches (std::vector< CandidateMatchMemory *> &candmatch) |
~MatchCalculator () override=default | |
Public Member Functions inherited from trklet::ProcessBase | |
unsigned int | getISeed (const std::string &name) |
std::string const & | getName () const |
void | initLayerDisk (unsigned int pos, int &layer, int &disk) |
void | initLayerDisk (unsigned int pos, int &layer, int &disk, int &layerdisk) |
unsigned int | initLayerDisk (unsigned int pos) |
void | initLayerDisksandISeed (unsigned int &layerdisk1, unsigned int &layerdisk2, unsigned int &iSeed) |
unsigned int | nbits (unsigned int power) |
ProcessBase (std::string name, Settings const &settings, Globals *global) | |
virtual | ~ProcessBase ()=default |
Private Attributes | |
AllProjectionsMemory * | allprojs_ |
AllStubsMemory * | allstubs_ |
TrackletLUT | alphainner_ |
TrackletLUT | alphaouter_ |
int | fact_ |
std::vector< FullMatchMemory * > | fullMatches_ |
int | ialphafactinner_ [N_DSS_MOD *2] |
int | ialphafactouter_ [N_DSS_MOD *2] |
int | icorrshift_ |
int | icorzshift_ |
unsigned int | layerdisk_ |
std::vector< CandidateMatchMemory * > | matches_ |
int | phi0shift_ |
TrackletLUT | phimatchcuttable_ |
unsigned int | phiregion_ |
TrackletLUT | rcut2Stable_ |
TrackletLUT | rcutPStable_ |
TrackletLUT | rphicut2Stable_ |
TrackletLUT | rphicutPStable_ |
TrackletLUT | rSSinner_ |
TrackletLUT | rSSouter_ |
TrackletLUT | zmatchcuttable_ |
Additional Inherited Members | |
Protected Attributes inherited from trklet::ProcessBase | |
Globals * | globals_ |
std::string | name_ |
Settings const & | settings_ |
Definition at line 22 of file MatchCalculator.h.
Definition at line 32 of file MatchCalculator.cc.
References alphainner_, alphaouter_, trklet::Settings::alphashift(), cms::cuda::assert(), fact_, fullMatches_, trklet::ProcessBase::getName(), trklet::Settings::half2SmoduleWidth(), mps_fire::i, ialphafactinner_, ialphafactouter_, icorrshift_, icorzshift_, trklet::ProcessBase::initLayerDisk(), trklet::TrackletLUT::initmatchcut(), trklet::Settings::kphi(), trklet::Settings::krprojshiftdisk(), layerdisk_, trklet::N_DSS_MOD, trklet::N_LAYER, trklet::N_PSLAYER, trklet::Settings::nallstubs(), Skims_PA_cff::name, trklet::Settings::nbitsalpha(), trklet::Settings::nrbitsstub(), trklet::Settings::nzbitsstub(), phi0shift_, phimatchcuttable_, phiregion_, trklet::Settings::PS_zderL_shift(), rcut2Stable_, rcutPStable_, trklet::Settings::rDSSinner(), trklet::Settings::rDSSouter(), nano_mu_digi_cff::region, rphicut2Stable_, rphicutPStable_, rSSinner_, rSSouter_, trklet::ProcessBase::settings_, trklet::Settings::SS_zderL_shift(), and zmatchcuttable_.
|
overridedefault |
|
overridevirtual |
Implements trklet::ProcessBase.
Definition at line 109 of file MatchCalculator.cc.
References allprojs_, allstubs_, cms::cuda::assert(), Exception, input, matches_, mps_setup::memory, trklet::ProcessBase::name_, trklet::ProcessBase::settings_, createJobs::tmp, and trklet::Settings::writetrace().
|
overridevirtual |
Implements trklet::ProcessBase.
Definition at line 94 of file MatchCalculator.cc.
References cms::cuda::assert(), Exception, fullMatches_, trklet::ProcessBase::getISeed(), mps_setup::memory, trklet::ProcessBase::name_, convertSQLitetoXML_cfg::output, trklet::ProcessBase::settings_, createJobs::tmp, and trklet::Settings::writetrace().
void MatchCalculator::execute | ( | unsigned int | iSector, |
double | phioffset | ||
) |
Definition at line 135 of file MatchCalculator.cc.
References funct::abs(), trklet::Tracklet::addMatch(), trklet::Stub::alpha(), trklet::L1TStub::alphanorm(), trklet::Settings::alphashift(), cms::cuda::assert(), trklet::Settings::bfield(), trklet::Settings::bookHistos(), trklet::Settings::c(), trklet::Settings::debugTracklet(), trklet::Tracklet::disk(), trklet::Settings::dphisectorHG(), trklet::Settings::drmax(), PVValHelper::dz, trklet::Settings::dzmax(), Exception, fact_, fullMatches_, trklet::Tracklet::getISeed(), trklet::ProcessBase::getName(), trklet::ProcessBase::globals_, trklet::Settings::half2SmoduleWidth(), trklet::Globals::histograms(), compare::hists, ialphafactinner_, ialphafactouter_, icorrshift_, icorzshift_, createfilelist::int, hcalRecHitTable_cff::iphi, trklet::L1TStub::isPSmodule(), dqmiolumiharvest::j, trklet::Settings::kphi(), trklet::Settings::kphi1(), trklet::Settings::kr(), trklet::Settings::krprojshiftdisk(), trklet::Settings::kz(), trklet::Stub::l1tstub(), trklet::Tracklet::layer(), layerdisk_, trklet::TrackletLUT::lookup(), M_PI, matches_, trklet::Settings::maxStep(), mergeMatches(), SiStripPI::min, trklet::N_DSS_MOD, trklet::N_LAYER, trklet::ProcessBase::name_, trklet::FPGAWord::nbits(), trklet::Globals::ofstream(), trklet::L1TStub::phi(), trklet::Stub::phi(), trklet::Settings::phi0bitshift(), phi0shift_, trklet::Stub::phiapprox(), phimatchcuttable_, phiregion_, amptDefault_cfi::proj, trklet::Tracklet::proj(), DiDispStaMuonMonitor_cfi::pt, trklet::L1TStub::r(), trklet::Stub::r(), trklet::L1TStub::r2(), trklet::Stub::rapprox(), rcut2Stable_, rcutPStable_, trklet::Settings::rDSSinner(), trklet::Settings::rDSSouter(), reco::reduceRange(), trklet::Tracklet::rinv(), trklet::Settings::rmean(), rphicut2Stable_, rphicutPStable_, edm::second(), trklet::ProcessBase::settings_, Validation_hcalonly_cfi::sign, trklet::Stub::stubindex(), trklet::Tracklet::stubtruthmatch(), trklet::Tracklet::t(), trklet::Tracklet::TCID(), trklet::third, trklet::Settings::useapprox(), trklet::FPGAWord::value(), trklet::Settings::writeMonitorData(), trklet::L1TStub::z(), trklet::Stub::z(), trklet::Stub::zapprox(), zmatchcuttable_, and trklet::Settings::zmean().
std::vector< std::pair< std::pair< Tracklet *, int >, const Stub * > > MatchCalculator::mergeMatches | ( | std::vector< CandidateMatchMemory *> & | candmatch | ) |
Definition at line 500 of file MatchCalculator.cc.
References funct::abs(), cms::cuda::assert(), relativeConstraints::error, dqmdumpme::first, trklet::ProcessBase::getName(), mps_fire::i, layerdisk_, trklet::N_LAYER, trklet::N_SECTOR, and createJobs::tmp.
Referenced by execute().
|
private |
Definition at line 61 of file MatchCalculator.h.
Referenced by addInput().
|
private |
Definition at line 60 of file MatchCalculator.h.
Referenced by addInput().
|
private |
Definition at line 52 of file MatchCalculator.h.
Referenced by MatchCalculator().
|
private |
Definition at line 53 of file MatchCalculator.h.
Referenced by MatchCalculator().
|
private |
Definition at line 40 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 64 of file MatchCalculator.h.
Referenced by addOutput(), execute(), and MatchCalculator().
|
private |
Definition at line 57 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 58 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 41 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 42 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 37 of file MatchCalculator.h.
Referenced by execute(), MatchCalculator(), and mergeMatches().
|
private |
Definition at line 63 of file MatchCalculator.h.
Referenced by addInput(), and execute().
|
private |
Definition at line 43 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 45 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 38 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 51 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 50 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 49 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 48 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 54 of file MatchCalculator.h.
Referenced by MatchCalculator().
|
private |
Definition at line 55 of file MatchCalculator.h.
Referenced by MatchCalculator().
|
private |
Definition at line 46 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().