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