CMS 3D CMS Logo

Cabling.h
Go to the documentation of this file.
1 // This class holds a list of stubs that are in a given layer and DCT region
2 #ifndef L1Trigger_TrackFindingTracklet_interface_Cabling_h
3 #define L1Trigger_TrackFindingTracklet_interface_Cabling_h
4 
8 
9 #include <vector>
10 #include <map>
11 
12 namespace trklet {
13 
14  class Settings;
15 
16  class Cabling {
17  public:
18  Cabling(std::string dtcconfig, std::string moduleconfig, Settings const& settings);
19 
20  ~Cabling() = default;
21 
22  const std::string& dtc(int layer, int ladder, int module) const;
23 
24  void addphi(const std::string& dtc, double phi, int layer, int module);
25 
26  void writephirange() const;
27 
28  std::vector<std::string> DTCs() const;
29 
30  private:
32  std::vector<DTCLink> links_;
33  std::map<std::string, DTC> dtcranges_;
34  std::map<std::string, DTC> dtcs_;
35  std::map<int, std::map<int, std::map<int, std::string> > > modules_;
36  };
37 
38 }; // namespace trklet
39 #endif
trklet::Cabling
Definition: Cabling.h:16
trklet::Cabling::writephirange
void writephirange() const
Definition: Cabling.cc:104
trklet::Settings
Definition: Settings.h:26
trklet::Cabling::settings_
Settings const & settings_
Definition: Cabling.h:31
trklet::Cabling::DTCs
std::vector< std::string > DTCs() const
Definition: Cabling.cc:118
trklet::Cabling::dtcs_
std::map< std::string, DTC > dtcs_
Definition: Cabling.h:34
DTC.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::Cabling::dtc
const std::string & dtc(int layer, int ladder, int module) const
Definition: Cabling.cc:68
trklet::Cabling::links_
std::vector< DTCLink > links_
Definition: Cabling.h:32
module
Definition: vlib.h:198
trklet
Definition: AllProjectionsMemory.h:9
trklet::Cabling::dtcranges_
std::map< std::string, DTC > dtcranges_
Definition: Cabling.h:33
trklet::Cabling::Cabling
Cabling(std::string dtcconfig, std::string moduleconfig, Settings const &settings)
Definition: Cabling.cc:13
trklet::Cabling::addphi
void addphi(const std::string &dtc, double phi, int layer, int module)
Definition: Cabling.cc:81
PVValHelper::ladder
Definition: PVValidationHelpers.h:72
MemoryBase.h
trklet::Cabling::modules_
std::map< int, std::map< int, std::map< int, std::string > > > modules_
Definition: Cabling.h:35
trklet::Cabling::~Cabling
~Cabling()=default