CMS 3D CMS Logo

DTCompactMapWriter.h
Go to the documentation of this file.
1 #ifndef DTCompactMapWriter_H
2 #define DTCompactMapWriter_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
21 class DTROBCardId;
22 class DTROBCardCompare;
23 class DTTDCChannelId;
25 class DTPhysicalWireId;
27 class DTROSChannelId;
29 
30 //---------------
31 // C++ Headers --
32 //---------------
33 #include <string>
34 #include <vector>
35 #include <map>
36 #include <algorithm>
37 #include <iostream>
38 #include <fstream>
39 
41 public:
42  static void buildSteering(std::istream& jobDesc);
43 
44 private:
45  static void fillTDCMap(const std::string& map_file,
46  int wheel,
47  int sector,
48  std::map<DTROBCardId, int, DTROBCardCompare>& tdc_idm,
49  int stationId, // int robId,
50  int map_count,
51  bool& write);
52  static void fillROSMap(const std::string& map_file,
53  int ddu,
54  int ros,
55  int whdef,
56  int secdef,
57  std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ddu_map,
58  std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ros_map,
59  int map_count,
60  bool& write);
61  static void cloneROS(std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ros_m,
62  std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ros_a,
63  int ddu_o,
64  int ros_o,
65  int ddu_f,
66  int ros_f);
67  static void appendROS(std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ros_m,
68  std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ros_a);
69  static void fillReadOutMap(int ros_count,
70  std::map<DTROBCardId, int, DTROBCardCompare>& tdc_idm,
71  std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ddu_map,
72  std::map<DTROSChannelId, DTROBCardId, DTROSChannelCompare>& ros_map);
73 };
74 
75 #endif
static void buildSteering(std::istream &jobDesc)
static void appendROS(std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ros_m, std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ros_a)
static void fillROSMap(const std::string &map_file, int ddu, int ros, int whdef, int secdef, std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ddu_map, std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ros_map, int map_count, bool &write)
static void cloneROS(std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ros_m, std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ros_a, int ddu_o, int ros_o, int ddu_f, int ros_f)
static void fillReadOutMap(int ros_count, std::map< DTROBCardId, int, DTROBCardCompare > &tdc_idm, std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ddu_map, std::map< DTROSChannelId, DTROBCardId, DTROSChannelCompare > &ros_map)
static void fillTDCMap(const std::string &map_file, int wheel, int sector, std::map< DTROBCardId, int, DTROBCardCompare > &tdc_idm, int stationId, int map_count, bool &write)