CMS 3D CMS Logo

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