CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
HcalMaterials.h
Go to the documentation of this file.
1 #ifndef HcalMaterials_h
2 #define HcalMaterials_h
3 
5 #include <vector>
6 // place to implement a real working class for material corrections
7 
8 class HcalMaterial {
9 public:
10  float getValue(float Energy) { return 1.; }
11  // void putValue (unsigned long fId, std::pair<std::vector <float>, std::vector <float> > fArray);
12 
13  HcalMaterial(unsigned long fId, const std::pair<std::vector<float>, std::vector<float> >& fCorrs) //:
14  // mId (fId),
15  // mCorrs (fCorrs)
16  {
17  mId = fId;
18  mCorrs = fCorrs;
19  }
20 
21  unsigned long mmId(void) { return mId; }
22 
23 private:
24  unsigned long mId;
25  std::pair<std::vector<float>, std::vector<float> > mCorrs;
26 };
27 
29 public:
30  HcalMaterials();
32 
33  float getValue(DetId fId, float energy);
34  void putValue(DetId fId, const std::pair<std::vector<float>, std::vector<float> >& fArray);
35 
36  typedef HcalMaterial Item;
37  typedef std::vector<Item> Container;
38 
39 private:
41 };
42 
43 #endif
std::pair< std::vector< float >, std::vector< float > > mCorrs
Definition: HcalMaterials.h:25
HcalMaterial Item
Definition: HcalMaterials.h:36
std::vector< Item > Container
Definition: HcalMaterials.h:37
unsigned long mId
Definition: HcalMaterials.h:24
unsigned long mmId(void)
Definition: HcalMaterials.h:21
float getValue(DetId fId, float energy)
Definition: HcalMaterials.cc:9
Container mItems
Definition: HcalMaterials.h:40
HcalMaterial(unsigned long fId, const std::pair< std::vector< float >, std::vector< float > > &fCorrs)
Definition: HcalMaterials.h:13
Definition: DetId.h:17
void putValue(DetId fId, const std::pair< std::vector< float >, std::vector< float > > &fArray)
float getValue(float Energy)
Definition: HcalMaterials.h:10