CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions
cond::EcalGainRatiosHelper Class Reference
Inheritance diagram for cond::EcalGainRatiosHelper:
EcalPyWrapperHelper< EcalMGPAGainRatio >

Public Member Functions

 EcalGainRatiosHelper ()
 
- Public Member Functions inherited from EcalPyWrapperHelper< EcalMGPAGainRatio >
 EcalPyWrapperHelper (unsigned int totalValues, unsigned int status=0, std::string names="-Means: ")
 
std::string printBarrelsEndcaps (const std::vector< EcalMGPAGainRatio > &barrelItems, const std::vector< EcalMGPAGainRatio > &endcapItems)
 

Protected Types

typedef EcalMGPAGainRatio EcalObject
 
- Protected Types inherited from EcalPyWrapperHelper< EcalMGPAGainRatio >
typedef std::vector< std::pair
< std::string, float > > 
type_vValues
 

Protected Member Functions

type_vValues getValues (const std::vector< EcalObject > &vItems)
 

Additional Inherited Members

- Static Public Attributes inherited from EcalPyWrapperHelper< EcalMGPAGainRatio >
static const unsigned int MEAN
 
static const unsigned int STATUS
 
- Protected Attributes inherited from EcalPyWrapperHelper< EcalMGPAGainRatio >
std::string names
 
unsigned int status
 
unsigned int total_values
 

Detailed Description

Definition at line 55 of file EcalGainRatiosPyWrapper.cc.

Member Typedef Documentation

Definition at line 61 of file EcalGainRatiosPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalGainRatiosHelper::EcalGainRatiosHelper ( )
inline

Member Function Documentation

type_vValues cond::EcalGainRatiosHelper::getValues ( const std::vector< EcalObject > &  vItems)
inlineprotectedvirtual

Implements EcalPyWrapperHelper< EcalMGPAGainRatio >.

Definition at line 63 of file EcalGainRatiosPyWrapper.cc.

References EcalPyWrapperHelper< EcalMGPAGainRatio >::total_values.

64  {
65  //change me
66  //unsigned int totalValues = 2;
67 
68  type_vValues vValues(total_values);
69 
70  //change us
71  vValues[0].first = "gain12Over6";
72  vValues[1].first = "gain6Over1";
73 
74  vValues[0].second = .0;
75  vValues[1].second = .0;
76 
77  //get info:
78  for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
79  //change us
80  vValues[0].second += iItems->gain12Over6();
81  vValues[1].second += iItems->gain6Over1();
82  }
83  return vValues;
84  }
std::vector< std::pair< std::string, float > > type_vValues