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 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
22 class DTROBCardId;
23 class DTROBCardCompare;
24 class DTTDCChannelId;
26 class DTPhysicalWireId;
28 class DTROSChannelId;
30 
31 //---------------
32 // C++ Headers --
33 //---------------
34 #include <string>
35 #include <vector>
36 #include <map>
37 #include <algorithm>
38 #include <iostream>
39 #include <fstream>
40 
41 
43  public:
44  static void buildSteering( std::istream& jobDesc );
45  private:
46  static void fillTDCMap( const std::string& map_file,
47  int wheel, int sector,
49  int,
50  DTROBCardCompare>& tdc_idm,
51  int stationId, // int robId,
52  int map_count, bool& write );
53  static void fillROSMap( const std::string& map_file,
54  int ddu, int ros,
55  int whdef, int secdef,
58  DTROSChannelCompare>& ddu_map,
61  DTROSChannelCompare>& ros_map,
62  int map_count,
63  bool& write );
64  static void cloneROS( std::map<DTROSChannelId,
66  DTROSChannelCompare>& ros_m,
69  DTROSChannelCompare>& ros_a,
70  int ddu_o, int ros_o,
71  int ddu_f, int ros_f );
72  static void appendROS( std::map<DTROSChannelId,
74  DTROSChannelCompare>& ros_m,
77  DTROSChannelCompare>& ros_a );
78  static void fillReadOutMap( int ros_count,
80  int,
81  DTROBCardCompare>& tdc_idm,
84  DTROSChannelCompare>& ddu_map,
87  DTROSChannelCompare>& ros_map );
88 };
89 
90 #endif
91 
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)
def write(self, setup)
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)