|
|
#include <Sector.h>
|
void | addMem (std::string memType, std::string memName) |
|
template<typename TV , typename... Args> |
void | addMemToVec (std::vector< std::unique_ptr< TV > > &memvec, const std::string &memName, Args &... args) |
|
void | addProc (std::string procType, std::string procName) |
|
template<typename TV , typename... Args> |
void | addProcToVec (std::vector< std::unique_ptr< TV > > &procvec, const std::string &procName, Args &... args) |
|
bool | addStub (L1TStub stub, std::string dtc) |
|
void | addWire (std::string mem, std::string procinfull, std::string procoutfull) |
|
void | clean () |
|
void | executeFT () |
|
void | executeMC () |
|
void | executeME () |
|
void | executeMP () |
|
void | executePD (std::vector< Track * > &tracks) |
|
void | executePR () |
|
void | executeTC () |
|
void | executeTCD () |
|
void | executeTE () |
|
void | executeTED () |
|
void | executeTP () |
|
void | executeTRE () |
|
void | executeVMR () |
|
std::vector< Tracklet * > | getAllTracklets () const |
|
MemoryBase * | getMem (std::string memName) |
|
ProcessBase * | getProc (std::string procName) |
|
std::vector< const Stub * > | getStubs () const |
|
double | phimax () const |
|
double | phimin () const |
|
| Sector (unsigned int i, Settings const &settings, Globals *globals) |
|
std::unordered_set< int > | seedMatch (int itp) const |
|
void | writeAP (bool first) |
|
void | writeAS (bool first) |
|
void | writeCM (bool first) |
|
void | writeCT (bool first) |
|
void | writeInputStubs (bool first) |
|
void | writeMC (bool first) |
|
void | writeSP (bool first) |
|
void | writeST (bool first) |
|
void | writeTF (bool first) |
|
void | writeTPAR (bool first) |
|
void | writeTPROJ (bool first) |
|
void | writeVMPROJ (bool first) |
|
void | writeVMSME (bool first) |
|
void | writeVMSTE (bool first) |
|
| ~Sector () |
|
Definition at line 57 of file Sector.h.
◆ Sector()
Sector::Sector |
( |
unsigned int |
i, |
|
|
Settings const & |
settings, |
|
|
Globals * |
globals |
|
) |
| |
◆ ~Sector()
◆ addMem()
void Sector::addMem |
( |
std::string |
memType, |
|
|
std::string |
memName |
|
) |
| |
Definition at line 94 of file Sector.cc.
95 if (memType ==
"InputLink:") {
97 }
else if (memType ==
"AllStubs:") {
99 }
else if (memType ==
"VMStubsTE:") {
101 }
else if (memType ==
"VMStubsME:") {
103 }
else if (memType ==
"StubPairs:" || memType ==
"StubPairsDisplaced:") {
105 }
else if (memType ==
"StubTriplets:") {
107 }
else if (memType ==
"TrackletParameters:") {
109 }
else if (memType ==
"TrackletProjections:") {
111 }
else if (memType ==
"AllProj:") {
113 }
else if (memType ==
"VMProjections:") {
115 }
else if (memType ==
"CandidateMatch:") {
117 }
else if (memType ==
"FullMatch:") {
119 }
else if (memType ==
"TrackFit:") {
121 }
else if (memType ==
"CleanTrack:") {
124 edm::LogPrint(
"Tracklet") <<
"Don't know of memory type: " << memType;
References addMemToVec(), AP_, AS_, CM_, CT_, beamvalidation::exit(), FM_, IL_, isector_, phimax_, phimin_, settings_, SP_, ST_, TF_, TPAR_, TPROJ_, VMPROJ_, VMSME_, and VMSTE_.
◆ addMemToVec()
template<typename TV , typename... Args>
void trklet::Sector::addMemToVec |
( |
std::vector< std::unique_ptr< TV > > & |
memvec, |
|
|
const std::string & |
memName, |
|
|
Args &... |
args |
|
) |
| |
|
inline |
◆ addProc()
void Sector::addProc |
( |
std::string |
procType, |
|
|
std::string |
procName |
|
) |
| |
Definition at line 129 of file Sector.cc.
130 if (procType ==
"VMRouter:") {
132 }
else if (procType ==
"VMRouterCM:") {
134 }
else if (procType ==
"TrackletEngine:") {
136 }
else if (procType ==
"TrackletEngineDisplaced:") {
138 }
else if (procType ==
"TripletEngine:") {
140 }
else if (procType ==
"TrackletCalculator:") {
142 }
else if (procType ==
"TrackletProcessor:") {
144 }
else if (procType ==
"TrackletCalculatorDisplaced:") {
146 }
else if (procType ==
"ProjectionRouter:") {
148 }
else if (procType ==
"MatchEngine:") {
150 }
else if (procType ==
"MatchCalculator:" ||
151 procType ==
"DiskMatchCalculator:") {
153 }
else if (procType ==
"MatchProcessor:") {
155 }
else if (procType ==
"FitTrack:") {
157 }
else if (procType ==
"PurgeDuplicate:") {
160 edm::LogPrint(
"Tracklet") <<
"Don't know of processing type: " << procType;
References addProcToVec(), beamvalidation::exit(), FT_, globals_, isector_, MC_, ME_, MP_, PD_, PR_, settings_, TC_, TCD_, TE_, TED_, TP_, TRE_, VMR_, and VMRCM_.
◆ addProcToVec()
template<typename TV , typename... Args>
void trklet::Sector::addProcToVec |
( |
std::vector< std::unique_ptr< TV > > & |
procvec, |
|
|
const std::string & |
procName, |
|
|
Args &... |
args |
|
) |
| |
|
inline |
◆ addStub()
bool Sector::addStub |
( |
L1TStub |
stub, |
|
|
std::string |
dtc |
|
) |
| |
Definition at line 64 of file Sector.cc.
71 std::vector<int>&
tmp = ILindex[dtc];
73 for (
unsigned int i = 0;
i <
IL_.size();
i++) {
74 if (
IL_[
i]->
getName().find(
"_" + dtc) != string::npos) {
83 std::vector<int>&
tmp = ILindex[dtc];
References PVValHelper::add(), cms::cuda::assert(), trklet::Settings::dphisectorHG(), getName(), globals_, mps_fire::i, IL_, trklet::Globals::ILindex(), M_PI, trklet::N_SECTOR, trklet::L1TStub::phi(), phimax_, phimin_, settings_, and createJobs::tmp.
◆ addWire()
void Sector::addWire |
( |
std::string |
mem, |
|
|
std::string |
procinfull, |
|
|
std::string |
procoutfull |
|
) |
| |
Definition at line 165 of file Sector.cc.
166 stringstream ss1(procinfull);
168 getline(ss1, procin,
'.');
171 stringstream ss2(procoutfull);
172 string procout,
input;
173 getline(ss2, procout,
'.');
178 if (!procin.empty()) {
183 if (!procout.empty()) {
References trklet::ProcessBase::addInput(), trklet::ProcessBase::addOutput(), getMem(), getProc(), input, mem, and convertSQLitetoXML_cfg::output.
◆ clean()
Definition at line 293 of file Sector.cc.
299 i->writeMatches(
globals_, matchesL1, matchesL3, matchesL5);
301 globals_->
ofstream(
"nmatchessector.txt") << matchesL1 <<
" " << matchesL3 <<
" " << matchesL5 << endl;
References globals_, mps_fire::i, mem, MemoriesV_, trklet::Globals::ofstream(), settings_, TPAR_, and trklet::Settings::writeMonitorData().
◆ executeFT()
void Sector::executeFT |
( |
| ) |
|
◆ executeMC()
void Sector::executeMC |
( |
| ) |
|
◆ executeME()
void Sector::executeME |
( |
| ) |
|
◆ executeMP()
void Sector::executeMP |
( |
| ) |
|
◆ executePD()
void Sector::executePD |
( |
std::vector< Track * > & |
tracks | ) |
|
◆ executePR()
void Sector::executePR |
( |
| ) |
|
◆ executeTC()
void Sector::executeTC |
( |
| ) |
|
◆ executeTCD()
void Sector::executeTCD |
( |
| ) |
|
◆ executeTE()
void Sector::executeTE |
( |
| ) |
|
◆ executeTED()
void Sector::executeTED |
( |
| ) |
|
◆ executeTP()
void Sector::executeTP |
( |
| ) |
|
◆ executeTRE()
void Sector::executeTRE |
( |
| ) |
|
◆ executeVMR()
void Sector::executeVMR |
( |
| ) |
|
◆ getAllTracklets()
std::vector< Tracklet * > Sector::getAllTracklets |
( |
| ) |
const |
◆ getMem()
MemoryBase * Sector::getMem |
( |
std::string |
memName | ) |
|
◆ getProc()
◆ getStubs()
std::vector< const Stub * > Sector::getStubs |
( |
| ) |
const |
Definition at line 413 of file Sector.cc.
414 std::vector<const Stub*>
tmp;
416 for (
auto& imem :
IL_) {
417 for (
unsigned int istub = 0; istub < imem->nStubs(); istub++) {
418 tmp.push_back(imem->getStub(istub));
References IL_, and createJobs::tmp.
◆ phimax()
double trklet::Sector::phimax |
( |
| ) |
const |
|
inline |
◆ phimin()
double trklet::Sector::phimin |
( |
| ) |
const |
|
inline |
◆ seedMatch()
std::unordered_set< int > Sector::seedMatch |
( |
int |
itp | ) |
const |
Definition at line 425 of file Sector.cc.
426 std::unordered_set<int> tmpSeeds;
428 unsigned int nTracklet =
i->nTracklets();
429 for (
unsigned int j = 0;
j < nTracklet;
j++) {
430 if (
i->getTracklet(
j)->tpseed() == itp) {
431 tmpSeeds.insert(
i->getTracklet(
j)->getISeed());
References mps_fire::i, dqmiolumiharvest::j, and TPAR_.
◆ writeAP()
void Sector::writeAP |
( |
bool |
first | ) |
|
◆ writeAS()
void Sector::writeAS |
( |
bool |
first | ) |
|
◆ writeCM()
void Sector::writeCM |
( |
bool |
first | ) |
|
◆ writeCT()
void Sector::writeCT |
( |
bool |
first | ) |
|
◆ writeInputStubs()
void Sector::writeInputStubs |
( |
bool |
first | ) |
|
◆ writeMC()
void Sector::writeMC |
( |
bool |
first | ) |
|
◆ writeSP()
void Sector::writeSP |
( |
bool |
first | ) |
|
◆ writeST()
void Sector::writeST |
( |
bool |
first | ) |
|
◆ writeTF()
void Sector::writeTF |
( |
bool |
first | ) |
|
◆ writeTPAR()
void Sector::writeTPAR |
( |
bool |
first | ) |
|
◆ writeTPROJ()
void Sector::writeTPROJ |
( |
bool |
first | ) |
|
◆ writeVMPROJ()
void Sector::writeVMPROJ |
( |
bool |
first | ) |
|
◆ writeVMSME()
void Sector::writeVMSME |
( |
bool |
first | ) |
|
◆ writeVMSTE()
void Sector::writeVMSTE |
( |
bool |
first | ) |
|
◆ AP_
◆ AS_
◆ CM_
◆ CT_
◆ FM_
◆ FT_
std::vector<std::unique_ptr<FitTrack> > trklet::Sector::FT_ |
|
private |
◆ globals_
◆ IL_
◆ isector_
int trklet::Sector::isector_ |
|
private |
◆ MC_
◆ ME_
std::vector<std::unique_ptr<MatchEngine> > trklet::Sector::ME_ |
|
private |
◆ Memories_
std::map<std::string, MemoryBase*> trklet::Sector::Memories_ |
|
private |
◆ MemoriesV_
std::vector<MemoryBase*> trklet::Sector::MemoriesV_ |
|
private |
◆ MP_
◆ PD_
◆ phimax_
double trklet::Sector::phimax_ |
|
private |
◆ phimin_
double trklet::Sector::phimin_ |
|
private |
◆ PR_
◆ Processes_
std::map<std::string, ProcessBase*> trklet::Sector::Processes_ |
|
private |
◆ settings_
Settings const& trklet::Sector::settings_ |
|
private |
◆ SP_
◆ ST_
◆ TC_
◆ TCD_
◆ TE_
◆ TED_
◆ TF_
◆ TP_
◆ TPAR_
◆ TPROJ_
◆ TRE_
std::vector<std::unique_ptr<TripletEngine> > trklet::Sector::TRE_ |
|
private |
◆ VMPROJ_
◆ VMR_
std::vector<std::unique_ptr<VMRouter> > trklet::Sector::VMR_ |
|
private |
◆ VMRCM_
std::vector<std::unique_ptr<VMRouterCM> > trklet::Sector::VMRCM_ |
|
private |
◆ VMSME_
◆ VMSTE_
std::vector< std::unique_ptr< AllProjectionsMemory > > AP_
virtual void addOutput(MemoryBase *memory, std::string output)=0
std::vector< std::unique_ptr< ProjectionRouter > > PR_
std::vector< std::unique_ptr< AllStubsMemory > > AS_
void addMemToVec(std::vector< std::unique_ptr< TV > > &memvec, const std::string &memName, Args &... args)
static const std::string input
bool addStub(L1TStub stub, std::string dtc)
std::map< std::string, std::vector< int > > & ILindex()
Log< level::Warning, true > LogPrint
constexpr unsigned int N_SECTOR
std::vector< std::unique_ptr< TrackletEngine > > TE_
std::vector< std::unique_ptr< PurgeDuplicate > > PD_
uint16_t mem[nChs][nEvts]
std::vector< std::unique_ptr< MatchProcessor > > MP_
std::vector< MemoryBase * > MemoriesV_
virtual void addInput(MemoryBase *memory, std::string input)=0
std::vector< std::unique_ptr< TripletEngine > > TRE_
std::vector< std::unique_ptr< InputLinkMemory > > IL_
std::vector< std::unique_ptr< FullMatchMemory > > FM_
std::vector< std::unique_ptr< TrackletProjectionsMemory > > TPROJ_
std::vector< std::unique_ptr< TrackletEngineDisplaced > > TED_
double dphisectorHG() const
std::map< std::string, ProcessBase * > Processes_
TString getName(TString structure, int layer, TString geometry)
ProcessBase * getProc(std::string procName)
Settings const & settings_
std::vector< std::unique_ptr< MatchCalculator > > MC_
std::vector< std::unique_ptr< StubTripletsMemory > > ST_
void addProcToVec(std::vector< std::unique_ptr< TV > > &procvec, const std::string &procName, Args &... args)
std::vector< std::unique_ptr< TrackletCalculatorDisplaced > > TCD_
std::vector< std::unique_ptr< CandidateMatchMemory > > CM_
std::vector< std::unique_ptr< VMStubsMEMemory > > VMSME_
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
std::vector< std::unique_ptr< VMProjectionsMemory > > VMPROJ_
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
std::vector< std::unique_ptr< TrackletParametersMemory > > TPAR_
std::vector< std::unique_ptr< TrackletProcessor > > TP_
std::vector< std::unique_ptr< VMRouterCM > > VMRCM_
bool writeMonitorData(std::string module) const
std::vector< std::unique_ptr< CleanTrackMemory > > CT_
std::ofstream & ofstream(std::string fname)
std::vector< std::unique_ptr< VMStubsTEMemory > > VMSTE_
std::vector< std::unique_ptr< MatchEngine > > ME_
std::vector< std::unique_ptr< StubPairsMemory > > SP_
std::vector< std::unique_ptr< FitTrack > > FT_
std::vector< std::unique_ptr< TrackFitMemory > > TF_
std::map< std::string, MemoryBase * > Memories_
MemoryBase * getMem(std::string memName)
std::vector< std::unique_ptr< TrackletCalculator > > TC_
std::vector< std::unique_ptr< VMRouter > > VMR_
constexpr T reduceRange(T x)