MHierarchyInfo.h
Go to the documentation of this file.
1 #ifndef _mdet_MHierarchyInfo_h_
2 #define _mdet_MHierarchyInfo_h_
3 
4 namespace mdet {
16  struct MHierarchyInfo {
17  /*
18  * These constants are likely to be used from other translation
19  * units. Beware of the so-called "static initialization order
20  * fiasco".
21  * See
22  * http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.16
23  * and Danny Kalev's tip "30 C++ Tips in 30 Days: Tip # 25 overcoming static
24  * initialization dependencies"
25  * http://www.informit.com/blogs/blog.aspx?uk=30-C-Tips-in-30-Days-Tip-25-overcoming-static-initialization-dependencies
26  * where this particular usage was discussed by Kalev and the author.
27  *
28  * XXX Is it better to define here, as well, an enumeration so as to use it to index the arrays?
29  */
30  static const char* const kComponentsIds[13];
31  static const char* const kComponentsNames[13];
32  };
33 
34 }
35 
36 #endif // _mdet_MHierarchyInfo_h_
static const char *const kComponentsNames[13]
static const char *const kComponentsIds[13]
Definition of the information of Muon detection hierarchy.

, generated on Tue Sep 26 2023.