CMS 3D CMS Logo

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
EcalCondDBWriter_cfi.Energy
Energy
Definition: EcalCondDBWriter_cfi.py:152
HcalMaterials::getValue
float getValue(DetId fId, float energy)
Definition: HcalMaterials.cc:9
HcalMaterial::mmId
unsigned long mmId(void)
Definition: HcalMaterials.h:21
HcalMaterials
Definition: HcalMaterials.h:28
HcalMaterial::mId
unsigned long mId
Definition: HcalMaterials.h:24
DetId
Definition: DetId.h:17
HcalMaterial::getValue
float getValue(float Energy)
Definition: HcalMaterials.h:10
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
HcalMaterial::HcalMaterial
HcalMaterial(unsigned long fId, const std::pair< std::vector< float >, std::vector< float > > &fCorrs)
Definition: HcalMaterials.h:13
HcalMaterials::Container
std::vector< Item > Container
Definition: HcalMaterials.h:37
HcalMaterial::mCorrs
std::pair< std::vector< float >, std::vector< float > > mCorrs
Definition: HcalMaterials.h:25
HcalMaterials::~HcalMaterials
~HcalMaterials()
Definition: HcalMaterials.cc:7
HcalMaterials::mItems
Container mItems
Definition: HcalMaterials.h:40
HcalMaterials::Item
HcalMaterial Item
Definition: HcalMaterials.h:36
HcalMaterial
Definition: HcalMaterials.h:8
DetId.h
HcalMaterials::putValue
void putValue(DetId fId, const std::pair< std::vector< float >, std::vector< float > > &fArray)
Definition: HcalMaterials.cc:21
HcalMaterials::HcalMaterials
HcalMaterials()
Definition: HcalMaterials.cc:5