#include <TrackletProcessor.h>
Public Member Functions | |
void | addInput (MemoryBase *memory, std::string input) override |
void | addOutput (MemoryBase *memory, std::string output) override |
void | addOutputProjection (TrackletProjectionsMemory *&outputProj, MemoryBase *memory) |
void | execute () |
void | setVMPhiBin () |
TrackletProcessor (std::string name, Settings const &settings, Globals *globals, unsigned int iSector) | |
void | writeTETable () |
~TrackletProcessor () override=default | |
Public Member Functions inherited from trklet::TrackletCalculatorBase | |
void | addDiskProj (Tracklet *tracklet, int disk) |
bool | addLayerProj (Tracklet *tracklet, int layer) |
void | addProjection (int layer, int iphi, TrackletProjectionsMemory *trackletprojs, Tracklet *tracklet) |
void | addProjectionDisk (int disk, int iphi, TrackletProjectionsMemory *trackletprojs, Tracklet *tracklet) |
bool | barrelSeeding (const Stub *innerFPGAStub, const L1TStub *innerStub, const Stub *outerFPGAStub, const L1TStub *outerStub) |
bool | diskSeeding (const Stub *innerFPGAStub, const L1TStub *innerStub, const Stub *outerFPGAStub, const L1TStub *outerStub) |
void | exactproj (double rproj, double rinv, double phi0, double t, double z0, double &phiproj, double &zproj, double &phider, double &zder) |
void | exactprojdisk (double zproj, double rinv, double phi0, double t, double z0, double &phiproj, double &rproj, double &phider, double &rder) |
void | exacttracklet (double r1, double z1, double phi1, double r2, double z2, double phi2, double, double &rinv, double &phi0, double &t, double &z0, double phiproj[N_LAYER - 2], double zproj[N_LAYER - 2], double phider[N_LAYER - 2], double zder[N_LAYER - 2], double phiprojdisk[N_DISK], double rprojdisk[N_DISK], double phiderdisk[N_DISK], double rderdisk[N_DISK]) |
void | exacttrackletdisk (double r1, double z1, double phi1, double r2, double z2, double phi2, double, double &rinv, double &phi0, double &t, double &z0, double phiprojLayer[N_PSLAYER], double zprojLayer[N_PSLAYER], double phiderLayer[N_PSLAYER], double zderLayer[N_PSLAYER], double phiproj[N_DISK - 2], double rproj[N_DISK - 2], double phider[N_DISK - 2], double rder[N_DISK - 2]) |
void | exacttrackletOverlap (double r1, double z1, double phi1, double r2, double z2, double phi2, double, double &rinv, double &phi0, double &t, double &z0, double phiprojLayer[N_PSLAYER], double zprojLayer[N_PSLAYER], double phiderLayer[N_PSLAYER], double zderLayer[N_PSLAYER], double phiproj[N_DISK - 2], double rproj[N_DISK - 2], double phider[N_DISK - 2], double rder[N_DISK - 2]) |
bool | goodTrackPars (bool goodrinv, bool goodz0) |
bool | inSector (int iphi0, int irinv, double phi0approx, double rinvapprox) |
bool | overlapSeeding (const Stub *innerFPGAStub, const L1TStub *innerStub, const Stub *outerFPGAStub, const L1TStub *outerStub) |
TrackletCalculatorBase (std::string name, Settings const &settings, Globals *global, unsigned int iSector) | |
~TrackletCalculatorBase () 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 | |
bool | extra_ |
std::vector< AllStubsMemory * > | innerallstubs_ |
int | innerphibits_ |
std::vector< VMStubsTEMemory * > | innervmstubs_ |
int | iTC_ |
std::vector< AllStubsMemory * > | outerallstubs_ |
int | outerphibits_ |
std::vector< VMStubsTEMemory * > | outervmstubs_ |
std::map< unsigned int, std::vector< bool > > | phitable_ |
std::map< unsigned int, std::vector< bool > > | pttableinner_ |
std::map< unsigned int, std::vector< bool > > | pttableouter_ |
Additional Inherited Members | |
Protected Attributes inherited from trklet::TrackletCalculatorBase | |
int | disk_ |
unsigned int | iSeed_ |
int | layer_ |
unsigned int | layerdisk1_ |
unsigned int | layerdisk2_ |
double | phioffset_ |
int | TCIndex_ |
TrackletParametersMemory * | trackletpars_ |
std::vector< std::vector< TrackletProjectionsMemory * > > | trackletprojdisks_ |
std::vector< std::vector< TrackletProjectionsMemory * > > | trackletprojlayers_ |
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 TrackletProcessor.h.
TrackletProcessor::TrackletProcessor | ( | std::string | name, |
Settings const & | settings, | ||
Globals * | globals, | ||
unsigned int | iSector | ||
) |
Definition at line 14 of file TrackletProcessor.cc.
References funct::abs(), cms::cuda::assert(), trklet::TrackletCalculatorBase::disk_, trklet::Settings::dphisectorHG(), extra_, trklet::ProcessBase::globals_, trklet::ProcessBase::initLayerDisksandISeed(), trklet::ProcessBase::iSector_, trklet::TrackletCalculatorBase::iSeed_, iTC_, trklet::Globals::ITC_L1L2(), trklet::VarBase::K(), trklet::TrackletCalculatorBase::layer_, trklet::TrackletCalculatorBase::layerdisk1_, trklet::TrackletCalculatorBase::layerdisk2_, M_PI, trklet::N_DISK, trklet::N_LAYER, trklet::N_SECTOR, trklet::Settings::nallstubs(), trklet::ProcessBase::name_, trklet::Settings::ntrackletmax(), trklet::IMATH_TrackletCalculator::phi0_final, trklet::ProcessBase::phimax_, trklet::ProcessBase::phimin_, trklet::TrackletCalculatorBase::phioffset_, trklet::Settings::rcrit(), reco::reduceRange(), trklet::IMATH_TrackletCalculator::rinv_final, trklet::ProcessBase::settings_, trklet::TrackletCalculatorBase::TCIndex_, createJobs::tmp, trklet::TrackletCalculatorBase::trackletprojdisks_, trklet::TrackletCalculatorBase::trackletprojlayers_, and trklet::Settings::usephicritapprox().
|
overridedefault |
|
overridevirtual |
Implements trklet::ProcessBase.
Definition at line 172 of file TrackletProcessor.cc.
References cms::cuda::assert(), Exception, innerallstubs_, innervmstubs_, input, trklet::ProcessBase::name_, outerallstubs_, outervmstubs_, trklet::ProcessBase::settings_, setVMPhiBin(), createJobs::tmp, and trklet::Settings::writetrace().
|
overridevirtual |
Implements trklet::ProcessBase.
Definition at line 130 of file TrackletProcessor.cc.
References cms::cuda::assert(), Exception, trklet::N_DISK, trklet::N_LAYER, trklet::ProcessBase::name_, convertSQLitetoXML_cfg::output, trklet::ProcessBase::settings_, findQualityFiles::size, createJobs::tmp, trklet::TrackletCalculatorBase::trackletpars_, trklet::TrackletCalculatorBase::trackletprojdisks_, trklet::TrackletCalculatorBase::trackletprojlayers_, and trklet::Settings::writetrace().
void TrackletProcessor::addOutputProjection | ( | TrackletProjectionsMemory *& | outputProj, |
MemoryBase * | memory | ||
) |
void TrackletProcessor::execute | ( | void | ) |
Definition at line 207 of file TrackletProcessor.cc.
References accept(), trklet::StubPairsMemory::addStubPair(), cms::cuda::assert(), trklet::TrackletCalculatorBase::barrelSeeding(), trklet::VMStubTE::bend(), trklet::benddecode(), newFWLiteAna::bin, trklet::FPGAWord::bits(), trklet::Settings::debugTracklet(), trklet::Stub::disk(), trklet::TrackletCalculatorBase::disk_, trklet::TrackletCalculatorBase::diskSeeding(), Exception, trklet::VMStubTE::finephi(), groupFilesInBlocks::fout, trklet::ProcessBase::getName(), trklet::StubPairsMemory::getTEDName(), trklet::StubPairsMemory::getVMStub1(), trklet::StubPairsMemory::getVMStub2(), trklet::ProcessBase::globals_, mps_fire::i, innerphibits_, innervmstubs_, createfilelist::int, trklet::Stub::isBarrel(), trklet::Stub::isDisk(), trklet::ProcessBase::iSector_, trklet::TrackletCalculatorBase::iSeed_, trklet::VMStubTE::isPSmodule(), dqmiolumiharvest::j, trklet::Stub::l1tstub(), dqmdumpme::last, trklet::TrackletCalculatorBase::layer_, trklet::Settings::maxStep(), trklet::ProcessBase::name_, trklet::FPGAWord::nbits(), trklet::StubPairsMemory::nStubPairs(), trklet::Settings::ntrackletmax(), trklet::TrackletParametersMemory::nTracklets(), trklet::Globals::ofstream(), outerphibits_, outervmstubs_, trklet::TrackletCalculatorBase::overlapSeeding(), phitable_, edm::print(), pttableinner_, pttableouter_, trklet::ProcessBase::settings_, findQualityFiles::size, trklet::VMStubTE::stub(), trklet::TrackletCalculatorBase::trackletpars_, trklet::Settings::useSeed(), trklet::FPGAWord::value(), trklet::VMStubTE::vmbits(), and trklet::Settings::writeMonitorData().
void TrackletProcessor::setVMPhiBin | ( | ) |
Definition at line 586 of file TrackletProcessor.cc.
References funct::abs(), trklet::bend(), trklet::Settings::bendcutte(), trklet::benddecode(), trklet::TrackletCalculatorBase::disk_, flavorHistoryFilter_cfi::dr, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, innerphibits_, innervmstubs_, trklet::ProcessBase::iSector_, trklet::TrackletCalculatorBase::iSeed_, trklet::TrackletCalculatorBase::layer_, trklet::Settings::nfinephi(), outerphibits_, outervmstubs_, phitable_, pttableinner_, pttableouter_, trklet::Settings::rcrit(), trklet::rinv(), trklet::Settings::rinvcutte(), trklet::Settings::rmaxdiskvm(), trklet::Settings::rmean(), trklet::Settings::rmindiskvm(), trklet::ProcessBase::settings_, trklet::Settings::stripPitch(), trklet::Settings::writeTable(), writeTETable(), and trklet::Settings::zmean().
Referenced by addInput().
void TrackletProcessor::writeTETable | ( | ) |
Definition at line 917 of file TrackletProcessor.cc.
References trklet::ProcessBase::getName().
Referenced by setVMPhiBin().
|
private |
Definition at line 48 of file TrackletProcessor.h.
Referenced by TrackletProcessor().
|
private |
Definition at line 45 of file TrackletProcessor.h.
Referenced by addInput().
|
private |
Definition at line 54 of file TrackletProcessor.h.
Referenced by execute(), and setVMPhiBin().
|
private |
Definition at line 42 of file TrackletProcessor.h.
Referenced by addInput(), execute(), and setVMPhiBin().
|
private |
Definition at line 40 of file TrackletProcessor.h.
Referenced by TrackletProcessor().
|
private |
Definition at line 46 of file TrackletProcessor.h.
Referenced by addInput().
|
private |
Definition at line 55 of file TrackletProcessor.h.
Referenced by execute(), and setVMPhiBin().
|
private |
Definition at line 43 of file TrackletProcessor.h.
Referenced by addInput(), execute(), and setVMPhiBin().
|
private |
Definition at line 50 of file TrackletProcessor.h.
Referenced by execute(), and setVMPhiBin().
|
private |
Definition at line 51 of file TrackletProcessor.h.
Referenced by execute(), and setVMPhiBin().
|
private |
Definition at line 52 of file TrackletProcessor.h.
Referenced by execute(), and setVMPhiBin().