CMS 3D CMS Logo

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 public:
18 
19  int volume(std::string s) { return theVolumeMap[s]; }
21  // rr
22  const std::vector<float>& x0fraction(std::string s) { return theX0Map[s]; }
23  const std::vector<float>& l0fraction(std::string s) { return theL0Map[s]; }
24  // rr
25  //HGCal
26  const std::vector<float>& HGCalx0fraction(std::string s) { return theHGCalX0Map[s]; }
27  const std::vector<float>& HGCall0fraction(std::string s) { return theHGCalL0Map[s]; }
28 
29 private:
30  void buildMaps();
31  void buildCategoryMap(std::string theMaterialFileName, std::map<std::string, std::vector<float> >& theMap);
32  void buildHGCalCategoryMap(std::string theMaterialFileName, std::map<std::string, std::vector<float> >& theMap);
33  std::map<std::string, int> theVolumeMap, theMaterialMap;
34  // rr
35  std::map<std::string, std::vector<float> > theX0Map;
36  std::map<std::string, std::vector<float> > theL0Map;
37  // rr
38  //HGCal
39  std::map<std::string, std::vector<float> > theHGCalX0Map;
40  std::map<std::string, std::vector<float> > theHGCalL0Map;
41 };
42 
43 #endif
std::map< std::string, std::vector< float > > theHGCalX0Map
const std::vector< float > & x0fraction(std::string s)
const std::vector< float > & l0fraction(std::string s)
const std::vector< float > & HGCalx0fraction(std::string s)
void buildCategoryMap(std::string theMaterialFileName, std::map< std::string, std::vector< float > > &theMap)
std::map< std::string, int > theVolumeMap
const std::vector< float > & HGCall0fraction(std::string s)
std::map< std::string, std::vector< float > > theHGCalL0Map
std::map< std::string, int > theMaterialMap
std::map< std::string, std::vector< float > > theX0Map
std::map< std::string, std::vector< float > > theL0Map
void buildHGCalCategoryMap(std::string theMaterialFileName, std::map< std::string, std::vector< float > > &theMap)