#include <RecoLocalCalo/CaloTowersCreator/interface/HcalMaterials.h>
Public Types | |
typedef std::vector< Item > | Container |
typedef HcalMaterial | Item |
Public Member Functions | |
float | getValue (DetId fId, float energy) |
HcalMaterials () | |
void | putValue (DetId fId, std::pair< std::vector< float >, std::vector< float > > fArray) |
~HcalMaterials () | |
Private Attributes | |
Container | mItems |
Definition at line 26 of file HcalMaterials.h.
typedef std::vector<Item> HcalMaterials::Container |
Definition at line 35 of file HcalMaterials.h.
typedef HcalMaterial HcalMaterials::Item |
Definition at line 34 of file HcalMaterials.h.
HcalMaterials::HcalMaterials | ( | ) |
HcalMaterials::~HcalMaterials | ( | ) |
float HcalMaterials::getValue | ( | DetId | fId, | |
float | energy | |||
) |
Definition at line 9 of file HcalMaterials.cc.
References mItems, DetId::rawId(), and value.
00009 { 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 }
void HcalMaterials::putValue | ( | DetId | fId, | |
std::pair< std::vector< float >, std::vector< float > > | fArray | |||
) |
Container HcalMaterials::mItems [private] |