CMS 3D CMS Logo

HcalMaterials Class Reference

#include <RecoLocalCalo/CaloTowersCreator/interface/HcalMaterials.h>

List of all members.

Public Types

typedef std::vector< ItemContainer
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


Detailed Description

Definition at line 26 of file HcalMaterials.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

HcalMaterials::HcalMaterials (  ) 

Definition at line 5 of file HcalMaterials.cc.

00005 {}

HcalMaterials::~HcalMaterials (  ) 

Definition at line 7 of file HcalMaterials.cc.

00007 {}


Member Function Documentation

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 
)

Definition at line 21 of file HcalMaterials.cc.

References mItems, and DetId::rawId().

00021                                                                                               {
00022   Item item (fId.rawId (), fArray);
00023   mItems.push_back (item);
00024 }


Member Data Documentation

Container HcalMaterials::mItems [private]

Definition at line 37 of file HcalMaterials.h.

Referenced by getValue(), and putValue().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:23:46 2009 for CMSSW by  doxygen 1.5.4