#include <Cabling.h>
|
void | addphi (const std::string &dtc, double phi, int layer, int module) |
|
| Cabling (std::string dtcconfig, std::string moduleconfig, Settings const &settings) |
|
const std::string & | dtc (int layer, int ladder, int module) const |
|
std::vector< std::string > | DTCs () const |
|
void | writephirange () const |
|
| ~Cabling ()=default |
|
Definition at line 16 of file Cabling.h.
◆ Cabling()
Cabling::Cabling |
( |
std::string |
dtcconfig, |
|
|
std::string |
moduleconfig, |
|
|
Settings const & |
settings |
|
) |
| |
Definition at line 13 of file Cabling.cc.
14 ifstream indtc(dtcconfig.c_str());
20 while (indtc.good()) {
32 string dtcbase =
dtc.substr(2,
dtc.size() - 2);
34 dtcbase =
"neg_" +
dtc.substr(6,
dtc.size() - 6);
41 ifstream inmodules(moduleconfig.c_str());
45 while (inmodules.good()) {
46 inmodules >> layer >>
ladder >> module >>
dtc;
50 if (layer > 0 && layer <= (
int)
N_PSLAYER) {
53 module = (module - 300);
57 module = (module - 200);
59 if ((module > 100) && (layer > 0 && layer <= (
int)
N_PSLAYER)) {
62 if (!inmodules.good())
References cms::cuda::assert(), dtc(), dtcranges_, dtcs_, createfilelist::int, PVValHelper::ladder, modules_, trklet::N_MOD_PLANK, trklet::N_PSLAYER, and trklet::N_TILTED_RINGS.
◆ ~Cabling()
trklet::Cabling::~Cabling |
( |
| ) |
|
|
default |
◆ addphi()
void Cabling::addphi |
( |
const std::string & |
dtc, |
|
|
double |
phi, |
|
|
int |
layer, |
|
|
int |
module |
|
) |
| |
Definition at line 81 of file Cabling.cc.
82 unsigned int layerdisk = layer - 1;
85 layerdisk = module +
N_DISK;
89 int isec =
dtc[0] -
'0';
91 string dtcbase =
dtc.substr(2,
dtc.size() - 2);
93 dtcbase =
"neg_" +
dtc.substr(6,
dtc.size() - 6);
101 dtcranges_[dtcbase].addphi(phisec, layerdisk);
References cms::cuda::assert(), trklet::Settings::dphisector(), dtc(), dtcranges_, trklet::N_DISK, trklet::N_LAYER, reco::reduceRange(), and settings_.
◆ dtc()
const string & Cabling::dtc |
( |
int |
layer, |
|
|
int |
ladder, |
|
|
int |
module |
|
) |
| const |
◆ DTCs()
std::vector< string > Cabling::DTCs |
( |
| ) |
const |
◆ writephirange()
void Cabling::writephirange |
( |
| ) |
const |
◆ dtcranges_
std::map<std::string, DTC> trklet::Cabling::dtcranges_ |
|
private |
◆ dtcs_
std::map<std::string, DTC> trklet::Cabling::dtcs_ |
|
private |
◆ links_
std::vector<DTCLink> trklet::Cabling::links_ |
|
private |
◆ modules_
std::map<int, std::map<int, std::map<int, std::string> > > trklet::Cabling::modules_ |
|
private |
◆ settings_
Settings const& trklet::Cabling::settings_ |
|
private |