Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MicromegasMapping.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MicromegasMapping.h
1 #ifndef MICROMEGAS_MICROMEGASMAPPING_H
2 #define MICROMEGAS_MICROMEGASMAPPING_H
3 
9 #include "MicromegasDefs.h"
10 
11 #include <trackbase/TrkrDefs.h>
12 
13 #include <array>
14 #include <map>
15 #include <string>
16 #include <vector>
17 
20 {
21  public:
22 
25 
27  std::vector<int> get_fee_id_list() const;
28 
30  TrkrDefs::hitsetkey get_hitsetkey( int /*fee_id*/ ) const;
31 
33 
34  std::string get_detname_saclay( int /*fee_id*/) const;
35 
37 
38  std::string get_detname_sphenix( int /*fee_id*/) const;
39 
41 
46  int get_physical_strip( int /*fee_id*/, int /*channel_id*/) const;
47 
50 
53 
54  private:
55 
58 
60 
63  class DetectorId
64  {
65  public:
66 
69  int fee_id, TrkrDefs::hitsetkey hitsetkey,
70  const std::string &fibername, const std::string &breakoutname,
71  const std::string& detname_saclay, const std::string& detname_sphenix ):
72  m_fee_id( fee_id ),
73  m_hitsetkey( hitsetkey ),
74  m_fibername( fibername ),
75  m_breakoutname( breakoutname ),
76  m_detname_saclay( detname_saclay ),
77  m_detname_sphenix( detname_sphenix )
78  {}
79 
81  int m_fee_id = 0;
82 
85 
88 
91 
94 
97  };
98 
100  std::vector<DetectorId> m_detectors;
101 
103  std::map<int, DetectorId> m_detector_map;
104 
106  std::array<int, MicromegasDefs::m_nchannels_fee> m_fee_to_strip_mapping_z = {{0}};
107 
109  std::array<int, MicromegasDefs::m_nchannels_fee> m_fee_to_strip_mapping_phi = {{0}};
110 
111 };
112 
113 #endif