CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoLocalCalo/CaloTowersCreator/src/HcalMaterials.cc

Go to the documentation of this file.
00001 #include <iostream>
00002 
00003 #include "RecoLocalCalo/CaloTowersCreator/interface/HcalMaterials.h"
00004 
00005 HcalMaterials::HcalMaterials() {}
00006 
00007 HcalMaterials::~HcalMaterials(){}
00008 
00009 float HcalMaterials::getValue (DetId fId, float energy) {
00010   // a real function should be added
00011   float value = 0.;
00012   for(unsigned int iItem=0; iItem<mItems.size();iItem++){
00013     if(fId.rawId()==mItems[iItem].mmId()){
00014       value = mItems[iItem].getValue(energy);
00015       continue;
00016     }
00017   }
00018   return value;
00019 }
00020 
00021 void HcalMaterials::putValue (DetId fId, std::pair< std::vector <float>,std::vector <float> > fArray) {
00022   Item item (fId.rawId (), fArray);
00023   mItems.push_back (item);
00024 }
00025 
00026