#include <MatchCalculator.h>
Public Member Functions | |
void | addInput (MemoryBase *memory, std::string input) override |
void | addOutput (MemoryBase *memory, std::string output) override |
void | execute () |
MatchCalculator (std::string name, Settings const &settings, Globals *global, unsigned int iSector) | |
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 (std::string name) |
std::string const & | getName () const |
unsigned int | initLayerDisk (unsigned int pos) |
void | initLayerDisk (unsigned int pos, int &layer, int &disk) |
void | initLayerDisk (unsigned int pos, int &layer, int &disk, int &layerdisk) |
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, unsigned int iSector) | |
virtual | ~ProcessBase ()=default |
Private Attributes | |
AllProjectionsMemory * | allprojs_ |
AllStubsMemory * | allstubs_ |
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_ |
unsigned int | phimatchcut_ [N_SEED] |
double | phioffset_ |
unsigned int | phiregion_ |
unsigned int | rcut2S_ [N_SEED] |
unsigned int | rcutPS_ [N_SEED] |
unsigned int | rphicut2S_ [N_SEED] |
unsigned int | rphicutPS_ [N_SEED] |
unsigned int | zmatchcut_ [N_SEED] |
Additional Inherited Members | |
Protected Attributes inherited from trklet::ProcessBase | |
Globals * | globals_ |
unsigned int | iSector_ |
std::string | name_ |
double | phimax_ |
double | phimin_ |
Settings const & | settings_ |
Definition at line 21 of file MatchCalculator.h.
MatchCalculator::MatchCalculator | ( | std::string | name, |
Settings const & | settings, | ||
Globals * | global, | ||
unsigned int | iSector | ||
) |
Definition at line 19 of file MatchCalculator.cc.
References trklet::Settings::alphashift(), fact_, fullMatches_, trklet::ProcessBase::getName(), trklet::Settings::half2SmoduleWidth(), mps_fire::i, ialphafactinner_, ialphafactouter_, icorrshift_, icorzshift_, trklet::ProcessBase::initLayerDisk(), trklet::ProcessBase::iSector_, trklet::Settings::kphi(), trklet::Settings::kphi1(), trklet::Settings::kr(), trklet::Settings::krprojshiftdisk(), trklet::Settings::kz(), layerdisk_, trklet::N_DSS_MOD, trklet::N_LAYER, trklet::N_PSLAYER, trklet::N_SEED, Skims_PA_cff::name, trklet::Settings::nbitsalpha(), trklet::Settings::nrbitsstub(), trklet::Settings::nzbitsstub(), phi0shift_, phimatchcut_, trklet::ProcessBase::phimin_, phioffset_, phiregion_, trklet::Settings::PS_zderL_shift(), trklet::Settings::rcut2S(), rcut2S_, trklet::Settings::rcutPS(), rcutPS_, trklet::Settings::rDSSinner(), trklet::Settings::rDSSouter(), trklet::Settings::rmean(), trklet::Settings::rphicut2S(), rphicut2S_, trklet::Settings::rphicutPS(), rphicutPS_, trklet::Settings::rphimatchcut(), trklet::ProcessBase::settings_, trklet::Settings::SS_zderL_shift(), trklet::Settings::writeTable(), trklet::Settings::zmatchcut(), and zmatchcut_.
|
overridedefault |
|
overridevirtual |
Implements trklet::ProcessBase.
Definition at line 152 of file MatchCalculator.cc.
References allprojs_, allstubs_, cms::cuda::assert(), Exception, input, matches_, trklet::ProcessBase::name_, trklet::ProcessBase::settings_, createJobs::tmp, and trklet::Settings::writetrace().
|
overridevirtual |
Implements trklet::ProcessBase.
Definition at line 137 of file MatchCalculator.cc.
References cms::cuda::assert(), Exception, fullMatches_, trklet::ProcessBase::getISeed(), trklet::ProcessBase::name_, convertSQLitetoXML_cfg::output, trklet::ProcessBase::settings_, createJobs::tmp, and trklet::Settings::writetrace().
void MatchCalculator::execute | ( | void | ) |
Definition at line 178 of file MatchCalculator.cc.
References funct::abs(), trklet::Tracklet::addMatch(), trklet::Tracklet::addMatchDisk(), trklet::L1TStub::alpha(), trklet::Stub::alphanew(), trklet::L1TStub::alphanorm(), trklet::Settings::alphashift(), cms::cuda::assert(), trklet::Settings::bfield(), trklet::Settings::bookHistos(), trklet::Settings::c(), trklet::Settings::debugTracklet(), trklet::Tracklet::disk(), flavorHistoryFilter_cfi::dr, trklet::Settings::drmax(), PVValHelper::dz, trklet::Settings::dzmax(), Exception, fact_, trklet::Tracklet::fpgaphiproj(), trklet::Tracklet::fpgaphiprojder(), trklet::Tracklet::fpgaphiprojderdisk(), trklet::Tracklet::fpgaphiprojdisk(), trklet::Tracklet::fpgarprojderdisk(), trklet::Tracklet::fpgarprojdisk(), trklet::Tracklet::fpgazproj(), trklet::Tracklet::fpgazprojder(), fullMatches_, trklet::Tracklet::getISeed(), trklet::ProcessBase::getName(), trklet::ProcessBase::globals_, trklet::Settings::half2SmoduleWidth(), trklet::Globals::histograms(), compare::hists, ialphafactinner_, ialphafactouter_, icorrshift_, icorzshift_, createfilelist::int, LEDCalibrationChannels::iphi, trklet::ProcessBase::iSector_, 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_, M_PI, match(), matches_, trklet::Settings::maxStep(), mergeMatches(), trklet::N_DSS_MOD, trklet::N_LAYER, trklet::ProcessBase::name_, trklet::Globals::ofstream(), trklet::Stub::phi(), trklet::L1TStub::phi(), trklet::Settings::phi0bitshift(), phi0shift_, trklet::Stub::phiapprox(), phimatchcut_, phioffset_, trklet::Tracklet::phiproj(), trklet::Tracklet::phiprojapprox(), trklet::Tracklet::phiprojapproxdisk(), trklet::Tracklet::phiprojder(), trklet::Tracklet::phiprojderapprox(), trklet::Tracklet::phiprojderapproxdisk(), trklet::Tracklet::phiprojderdisk(), trklet::Tracklet::phiprojdisk(), phiregion_, DiDispStaMuonMonitor_cfi::pt, trklet::Stub::r(), trklet::L1TStub::r(), alignCSCRings::r, trklet::L1TStub::r2(), trklet::Stub::rapprox(), rcut2S_, rcutPS_, trklet::Settings::rDSSinner(), trklet::Settings::rDSSouter(), reco::reduceRange(), trklet::Tracklet::rinv(), trklet::Settings::rmean(), rphicut2S_, rphicutPS_, trklet::Tracklet::rproj(), trklet::Tracklet::rprojapproxdisk(), trklet::Tracklet::rprojderapproxdisk(), trklet::Tracklet::rprojderdisk(), trklet::Tracklet::rprojdisk(), edm::second(), trklet::ProcessBase::settings_, Validation_hcalonly_cfi::sign, trklet::Settings::stripPitch(), trklet::Stub::stubindex(), trklet::Tracklet::stubtruthmatch(), trklet::Tracklet::t(), trklet::Tracklet::TCID(), trklet::Settings::useapprox(), trklet::FPGAWord::value(), trklet::Settings::writeMonitorData(), trklet::Stub::z(), trklet::L1TStub::z(), trklet::Stub::zapprox(), zmatchcut_, trklet::Settings::zmean(), trklet::Tracklet::zproj(), trklet::Tracklet::zprojapprox(), trklet::Tracklet::zprojder(), and trklet::Tracklet::zprojderapprox().
std::vector< std::pair< std::pair< Tracklet *, int >, const Stub * > > MatchCalculator::mergeMatches | ( | std::vector< CandidateMatchMemory * > & | candmatch | ) |
Definition at line 491 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 56 of file MatchCalculator.h.
Referenced by addInput().
|
private |
Definition at line 55 of file MatchCalculator.h.
Referenced by addInput().
|
private |
Definition at line 39 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 59 of file MatchCalculator.h.
Referenced by addOutput(), execute(), and MatchCalculator().
|
private |
Definition at line 52 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 53 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 40 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 36 of file MatchCalculator.h.
Referenced by execute(), MatchCalculator(), and mergeMatches().
|
private |
Definition at line 58 of file MatchCalculator.h.
Referenced by addInput(), and execute().
|
private |
Definition at line 42 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 43 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 37 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 47 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().
|
private |
Definition at line 46 of file MatchCalculator.h.
Referenced by execute(), and MatchCalculator().