6 #ifndef L1Trigger_TrackFindingTracklet_interface_TrackletConfigBuilder_h
7 #define L1Trigger_TrackFindingTracklet_interface_TrackletConfigBuilder_h
52 std::string TPROJName(
unsigned int iSeed,
unsigned int iTC,
unsigned int ilayer,
unsigned int ireg);
86 std::pair<unsigned int, unsigned int>
seedLayers(
unsigned int iSeed);
91 std::pair<double, double>
seedRadii(
unsigned int iseed);
96 std::pair<double, double>
seedPhiRange(
double rproj,
unsigned int iSeed,
unsigned int iTC);
102 double phi(
double r1,
double phi1,
double r2,
double phi2,
double r);
107 double rinv(
double r1,
double phi1,
double r2,
double phi2);
170 std::string TCDName(
unsigned int l1,
unsigned int l2,
unsigned int l3,
unsigned int itc);
177 unsigned int projlay,
178 unsigned int projreg);
191 void writeSPMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
193 void writeSPDMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
195 void writeAPMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
197 void writeCMMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
201 void writeFMMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
203 void writeASMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
205 void writeVMSMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
207 void writeTPARMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
209 void writeTFMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
211 void writeCTMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
213 void writeILMemories(std::ostream& os, std::ostream& memories, std::ostream& modules);
246 std::pair<std::vector<std::pair<double, double> >, std::vector<std::pair<double, double> > >
260 int matchport_[
N_SEED_PROMPT][
N_LAYER +
N_DISK] = {{-1, -1, 1, 2, 3, 4, 4, 3, 2, 1, -1},
261 {1, -1, -1, 2, 3, -1, 4, 3, 2, 1, -1},
262 {1, 2, -1, -1, 3, 4, 4, 3, -1, -1, -1},
263 {1, 2, 3, 4, -1, -1, -1, -1, -1, -1, -1},
264 {1, 2, -1, -1, -1, -1, -1, -1, 2, 3, 4},
265 {1, -1, -1, -1, -1, -1, 2, 3, -1, -1, 4},
266 {-1, -1, -1, -1, -1, -1, -1, 1, 2, 3, 4},
267 {1, -1, -1, -1, -1, -1, -1, 2, 3, 4, -1}};
void writeProjectionMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::vector< std::vector< std::pair< unsigned int, unsigned int > > > projections_[N_LAYER+N_DISK]
std::string SPName(unsigned int l1, unsigned int ireg1, unsigned int ivm1, unsigned int l2, unsigned int ireg2, unsigned int ivm2, unsigned int iseed)
std::string iTCStr(unsigned int iTC)
static std::string numStr(unsigned int i)
std::string TParName(unsigned int l1, unsigned int l2, unsigned int l3, unsigned int itc)
std::string TEDName(unsigned int l1, unsigned int ireg1, unsigned int ivm1, unsigned int l2, unsigned int ireg2, unsigned int ivm2, unsigned int iseed)
void writeAll(std::ostream &wires, std::ostream &memories, std::ostream &modules)
static std::string LayerName(unsigned int ilayer)
void writeASMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::string TEName(unsigned int l1, unsigned int ireg1, unsigned int ivm1, unsigned int l2, unsigned int ireg2, unsigned int ivm2, unsigned int iseed)
void writeILMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
void writeFMMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::vector< std::pair< double, double > > VMStubsME_[N_LAYER+N_DISK]
std::vector< std::pair< unsigned int, unsigned int > > TE_[N_SEED_PROMPT]
std::string TPROJName(unsigned int iSeed, unsigned int iTC, unsigned int ilayer, unsigned int ireg)
std::string STName(unsigned int l1, unsigned int ireg1, unsigned int l2, unsigned int ireg2, unsigned int l3, unsigned int ireg3, unsigned int iseed, unsigned int count)
std::string TCName(unsigned int iSeed, unsigned int iTC)
std::string TREName(unsigned int l1, unsigned int ireg1, unsigned int l2, unsigned int ireg2, unsigned int iseed, unsigned int count)
unsigned int NTC_[N_SEED_PROMPT]
void writeTPARMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::string PRName(unsigned int ilayer, unsigned int ireg)
TrackletConfigBuilder(const Settings &settings)
std::vector< std::vector< unsigned int > > TC_[N_SEED_PROMPT]
const Settings & settings_
void writeSPMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::pair< std::vector< std::pair< double, double > >, std::vector< std::pair< double, double > > > VMStubsTE_[N_SEED_PROMPT]
unsigned int NVMME_[N_LAYER+N_DISK]
double rinv(double r1, double phi1, double r2, double phi2)
std::pair< double, double > seedRadii(unsigned int iseed)
void writeCMMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
unsigned int NRegions_[N_LAYER+N_DISK]
bool validTEPair(unsigned int iseed, unsigned int iTE1, unsigned int iTE2)
void writeVMPROJMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::string SPDName(unsigned int l1, unsigned int ireg1, unsigned int ivm1, unsigned int l2, unsigned int ireg2, unsigned int ivm2, unsigned int l3, unsigned int ireg3, unsigned int ivm3, unsigned int iseed)
void writeTFMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::string TCDName(unsigned int l1, unsigned int l2, unsigned int l3, unsigned int itc)
std::string iRegStr(unsigned int iReg, unsigned int iSeed)
std::string FTName(unsigned int l1, unsigned int l2, unsigned int l3)
std::vector< std::pair< double, double > > allStubs_[N_LAYER+N_DISK]
void writeCTMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
std::pair< unsigned int, unsigned int > seedLayers(unsigned int iSeed)
int matchport_[N_SEED_PROMPT][N_LAYER+N_DISK]
std::string TCNAme(unsigned int iseed, unsigned int iTC)
std::pair< double, double > seedPhiRange(double rproj, unsigned int iSeed, unsigned int iTC)
std::string iSeedStr(unsigned int iSeed)
void writeAPMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
void writeSPDMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
void writeVMSMemories(std::ostream &os, std::ostream &memories, std::ostream &modules)
double phi(double r1, double phi1, double r2, double phi2, double r)
constexpr unsigned int N_SEED_PROMPT
std::pair< unsigned int, unsigned int > NVMTE_[N_SEED_PROMPT]