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
MaterialBudgetCategorizer::theHGCalL0Map
std::map< std::string, std::vector< float > > theHGCalL0Map
Definition: MaterialBudgetCategorizer.h:40
MaterialBudgetCategorizer
Definition: MaterialBudgetCategorizer.h:15
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
alignCSCRings.s
s
Definition: alignCSCRings.py:92
MaterialBudgetCategorizer::theHGCalX0Map
std::map< std::string, std::vector< float > > theHGCalX0Map
Definition: MaterialBudgetCategorizer.h:39
MaterialBudgetCategorizer::material
int material(std::string s)
Definition: MaterialBudgetCategorizer.h:20
MaterialBudgetCategorizer::HGCall0fraction
const std::vector< float > & HGCall0fraction(std::string s)
Definition: MaterialBudgetCategorizer.h:27
MaterialBudgetCategorizer::MaterialBudgetCategorizer
MaterialBudgetCategorizer(std::string mode)
Definition: MaterialBudgetCategorizer.cc:15
MaterialBudgetCategorizer::x0fraction
const std::vector< float > & x0fraction(std::string s)
Definition: MaterialBudgetCategorizer.h:22
MaterialBudgetCategorizer::theX0Map
std::map< std::string, std::vector< float > > theX0Map
Definition: MaterialBudgetCategorizer.h:35
MaterialBudgetCategorizer::l0fraction
const std::vector< float > & l0fraction(std::string s)
Definition: MaterialBudgetCategorizer.h:23
MaterialBudgetCategorizer::buildHGCalCategoryMap
void buildHGCalCategoryMap(std::string theMaterialFileName, std::map< std::string, std::vector< float > > &theMap)
Definition: MaterialBudgetCategorizer.cc:78
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MaterialBudgetCategorizer::buildCategoryMap
void buildCategoryMap(std::string theMaterialFileName, std::map< std::string, std::vector< float > > &theMap)
Definition: MaterialBudgetCategorizer.cc:42
MaterialBudgetCategorizer::theL0Map
std::map< std::string, std::vector< float > > theL0Map
Definition: MaterialBudgetCategorizer.h:36
MaterialBudgetCategorizer::theVolumeMap
std::map< std::string, int > theVolumeMap
Definition: MaterialBudgetCategorizer.h:33
MaterialBudgetCategorizer::volume
int volume(std::string s)
Definition: MaterialBudgetCategorizer.h:19
MaterialBudgetCategorizer::theMaterialMap
std::map< std::string, int > theMaterialMap
Definition: MaterialBudgetCategorizer.h:33
genParticles_cff.map
map
Definition: genParticles_cff.py:11
MaterialBudgetCategorizer::buildMaps
void buildMaps()
MaterialBudgetCategorizer::HGCalx0fraction
const std::vector< float > & HGCalx0fraction(std::string s)
Definition: MaterialBudgetCategorizer.h:26