CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MaterialBudgetCategorizer.h
Go to the documentation of this file.
1 // File : MaterialBudgetCategorizer.h
3 // Author: T.Boccali 11.12.01
4 // Description:
5 // Modifications:
7 
8 #ifndef MaterialBudgetCategorizer_h
9 #define MaterialBudgetCategorizer_h 1
10 
11 #include<string>
12 #include<map>
13 #include<vector>
14 
16 
17  public:
19 
22  // rr
23  std::vector<float> x0fraction(std::string s){return theX0Map[s];}
24  std::vector<float> l0fraction(std::string s){return theL0Map[s];}
25  // rr
26  private:
27  void buildMaps();
28  void buildCategoryMap(std::string theMaterialFileName, std::map<std::string,std::vector<float> >& theMap);
29  std::map<std::string,int> theVolumeMap, theMaterialMap;
30  // rr
31  std::map<std::string,std::vector<float> > theX0Map;
32  std::map<std::string,std::vector<float> > theL0Map;
33  // rr
34 };
35 
36 #endif
37 
38 
std::vector< float > x0fraction(std::string s)
std::map< std::string, int > theVolumeMap
std::map< std::string, std::vector< float > > theX0Map
dictionary map
Definition: Association.py:205
void buildCategoryMap(std::string theMaterialFileName, std::map< std::string, std::vector< float > > &theMap)
std::map< std::string, std::vector< float > > theL0Map
std::vector< float > l0fraction(std::string s)
std::map< std::string, int > theMaterialMap