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::EcalTPGPedestalsHelper Class Reference
Inheritance diagram for cond::EcalTPGPedestalsHelper:
EcalPyWrapperHelper< EcalTPGPedestal >

Public Member Functions

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

Protected Types

typedef EcalTPGPedestal EcalObject
 
- Protected Types inherited from EcalPyWrapperHelper< EcalTPGPedestal >
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< EcalTPGPedestal >
static const unsigned int MEAN
 
static const unsigned int STATUS
 
- Protected Attributes inherited from EcalPyWrapperHelper< EcalTPGPedestal >
std::string names
 
unsigned int status
 
unsigned int total_values
 

Detailed Description

Definition at line 42 of file EcalTPGPedestalsPyWrapper.cc.

Member Typedef Documentation

Definition at line 48 of file EcalTPGPedestalsPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalTPGPedestalsHelper::EcalTPGPedestalsHelper ( )
inline

Member Function Documentation

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

Implements EcalPyWrapperHelper< EcalTPGPedestal >.

Definition at line 50 of file EcalTPGPedestalsPyWrapper.cc.

References EcalPyWrapperHelper< EcalTPGPedestal >::total_values.

51  {
52  type_vValues vValues(total_values);
53 
54  //change us
55  vValues[0].first = "mean_x12";
56  vValues[1].first = "mean_x6";
57  vValues[2].first = "mean_x1";
58 
59  vValues[0].second = .0;
60  vValues[1].second = .0;
61  vValues[2].second = .0;
62 
63  //get info:
64  for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
65  //change us
66  vValues[0].second += iItems->mean_x12;
67  vValues[1].second += iItems->mean_x6;
68  vValues[2].second += iItems->mean_x1;
69  }
70  return vValues;
71  }
std::vector< std::pair< std::string, float > > type_vValues