|
|
#include <Sector.h>
|
void | addMem (std::string memType, std::string memName) |
|
template<typename TV > |
void | addMemToVec (std::vector< TV * > &memvec, TV *mem, const std::string &memName) |
|
void | addProc (std::string procType, std::string procName) |
|
template<typename TV > |
void | addProcToVec (std::vector< TV * > &procvec, TV *proc, const std::string &procName) |
|
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 56 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 93 of file Sector.cc.
94 if (memType ==
"InputLink:") {
96 }
else if (memType ==
"AllStubs:") {
98 }
else if (memType ==
"VMStubsTE:") {
100 }
else if (memType ==
"VMStubsME:") {
102 }
else if (memType ==
"StubPairs:" || memType ==
"StubPairsDisplaced:") {
104 }
else if (memType ==
"StubTriplets:") {
106 }
else if (memType ==
"TrackletParameters:") {
108 }
else if (memType ==
"TrackletProjections:") {
110 }
else if (memType ==
"AllProj:") {
112 }
else if (memType ==
"VMProjections:") {
114 }
else if (memType ==
"CandidateMatch:") {
116 }
else if (memType ==
"FullMatch:") {
118 }
else if (memType ==
"TrackFit:") {
120 }
else if (memType ==
"CleanTrack:") {
123 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 >
void trklet::Sector::addMemToVec |
( |
std::vector< TV * > & |
memvec, |
|
|
TV * |
mem, |
|
|
const std::string & |
memName |
|
) |
| |
|
inline |
◆ addProc()
void Sector::addProc |
( |
std::string |
procType, |
|
|
std::string |
procName |
|
) |
| |
Definition at line 128 of file Sector.cc.
129 if (procType ==
"VMRouter:") {
131 }
else if (procType ==
"TrackletEngine:") {
133 }
else if (procType ==
"TrackletEngineDisplaced:") {
135 }
else if (procType ==
"TripletEngine:") {
137 }
else if (procType ==
"TrackletCalculator:") {
139 }
else if (procType ==
"TrackletProcessor:") {
141 }
else if (procType ==
"TrackletCalculatorDisplaced:") {
143 }
else if (procType ==
"ProjectionRouter:") {
145 }
else if (procType ==
"MatchEngine:") {
147 }
else if (procType ==
"MatchCalculator:" ||
148 procType ==
"DiskMatchCalculator:") {
150 }
else if (procType ==
"MatchProcessor:") {
152 }
else if (procType ==
"FitTrack:") {
154 }
else if (procType ==
"PurgeDuplicate:") {
157 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_, and VMR_.
◆ addProcToVec()
template<typename TV >
void trklet::Sector::addProcToVec |
( |
std::vector< TV * > & |
procvec, |
|
|
TV * |
proc, |
|
|
const std::string & |
procName |
|
) |
| |
|
inline |
◆ addStub()
bool Sector::addStub |
( |
L1TStub |
stub, |
|
|
std::string |
dtc |
|
) |
| |
Definition at line 63 of file Sector.cc.
70 std::vector<int>&
tmp = ILindex[dtc];
72 for (
unsigned int i = 0;
i <
IL_.size();
i++) {
73 if (
IL_[
i]->
getName().find(
"_" + dtc) != string::npos) {
82 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 162 of file Sector.cc.
163 stringstream ss1(procinfull);
165 getline(ss1, procin,
'.');
168 stringstream ss2(procoutfull);
169 string procout,
input;
170 getline(ss2, procout,
'.');
175 if (!procin.empty()) {
180 if (!procout.empty()) {
References trklet::ProcessBase::addInput(), trklet::ProcessBase::addOutput(), getMem(), getProc(), input, mem, and convertSQLitetoXML_cfg::output.
◆ clean()
Definition at line 290 of file Sector.cc.
296 i->writeMatches(
globals_, matchesL1, matchesL3, matchesL5);
298 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 407 of file Sector.cc.
408 std::vector<const Stub*>
tmp;
410 for (
auto imem :
IL_) {
411 for (
unsigned int istub = 0; istub < imem->nStubs(); istub++) {
412 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 419 of file Sector.cc.
420 std::unordered_set<int> tmpSeeds;
422 unsigned int nTracklet =
i->nTracklets();
423 for (
unsigned int j = 0;
j < nTracklet;
j++) {
424 if (
i->getTracklet(
j)->tpseed() == itp) {
425 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<FitTrack*> trklet::Sector::FT_ |
|
private |
◆ globals_
◆ IL_
◆ isector_
int trklet::Sector::isector_ |
|
private |
◆ MC_
◆ ME_
◆ Memories_
std::map<std::string, std::unique_ptr<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, std::unique_ptr<ProcessBase> > trklet::Sector::Processes_ |
|
private |
◆ settings_
Settings const& trklet::Sector::settings_ |
|
private |
◆ SP_
◆ ST_
◆ TC_
◆ TCD_
◆ TE_
◆ TED_
◆ TF_
◆ TP_
◆ TPAR_
◆ TPROJ_
◆ TRE_
◆ VMPROJ_
◆ VMR_
std::vector<VMRouter*> trklet::Sector::VMR_ |
|
private |
◆ VMSME_
◆ VMSTE_
std::vector< VMRouter * > VMR_
virtual void addOutput(MemoryBase *memory, std::string output)=0
std::map< std::string, std::unique_ptr< MemoryBase > > Memories_
static const std::string input
bool addStub(L1TStub stub, std::string dtc)
std::vector< TrackletProcessor * > TP_
std::map< std::string, std::vector< int > > & ILindex()
constexpr unsigned int N_SECTOR
std::vector< MatchEngine * > ME_
std::vector< CandidateMatchMemory * > CM_
std::vector< VMProjectionsMemory * > VMPROJ_
std::vector< AllStubsMemory * > AS_
std::vector< TrackletEngine * > TE_
uint16_t mem[nChs][nEvts]
std::vector< StubTripletsMemory * > ST_
std::vector< MemoryBase * > MemoriesV_
virtual void addInput(MemoryBase *memory, std::string input)=0
void addMemToVec(std::vector< TV * > &memvec, TV *mem, const std::string &memName)
std::vector< VMStubsMEMemory * > VMSME_
double dphisectorHG() const
std::vector< TrackletEngineDisplaced * > TED_
TString getName(TString structure, int layer, TString geometry)
ProcessBase * getProc(std::string procName)
Settings const & settings_
std::vector< TrackletCalculatorDisplaced * > TCD_
std::vector< VMStubsTEMemory * > VMSTE_
std::vector< TrackFitMemory * > TF_
void addProcToVec(std::vector< TV * > &procvec, TV *proc, const std::string &procName)
std::vector< FullMatchMemory * > FM_
std::vector< MatchCalculator * > MC_
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
std::vector< TripletEngine * > TRE_
std::vector< TrackletProjectionsMemory * > TPROJ_
std::vector< TrackletCalculator * > TC_
std::map< std::string, std::unique_ptr< ProcessBase > > Processes_
bool writeMonitorData(std::string module) const
std::ofstream & ofstream(std::string fname)
std::vector< CleanTrackMemory * > CT_
std::vector< AllProjectionsMemory * > AP_
std::vector< MatchProcessor * > MP_
std::vector< TrackletParametersMemory * > TPAR_
std::vector< PurgeDuplicate * > PD_
std::vector< ProjectionRouter * > PR_
std::vector< InputLinkMemory * > IL_
MemoryBase * getMem(std::string memName)
std::vector< StubPairsMemory * > SP_
std::vector< FitTrack * > FT_
constexpr T reduceRange(T x)