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

Public Member Functions

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

Protected Types

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

Detailed Description

Definition at line 52 of file EcalTPGLinearizationConstPyWrapper.cc.

Member Typedef Documentation

Definition at line 59 of file EcalTPGLinearizationConstPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalTPGLinearizationConstHelper::EcalTPGLinearizationConstHelper ( )
inline

Member Function Documentation

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

Implements EcalPyWrapperHelper< EcalTPGLinearizationConstant >.

Definition at line 61 of file EcalTPGLinearizationConstPyWrapper.cc.

References EcalPyWrapperHelper< EcalTPGLinearizationConstant >::total_values.

62  {
63 
64  type_vValues vValues(total_values);
65 
66  vValues[0].second = .0;
67  vValues[1].second = .0;
68  vValues[2].second = .0;
69  vValues[3].second = .0;
70  vValues[4].second = .0;
71  vValues[5].second = .0;
72 
73 
74  //change us
75  vValues[0].first = "mult_x12";
76  vValues[1].first = "mult_x6";
77  vValues[2].first = "mult_x1";
78  vValues[3].first = "shift_x12";
79  vValues[4].first = "shift_x6";
80  vValues[5].first = "shift_x1";
81 
82 
83 
84 
85  for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
86  //change us
87  vValues[0].second += iItems->mult_x12;
88  vValues[1].second += iItems->mult_x6;
89  vValues[2].second += iItems->mult_x1;
90  vValues[3].second += iItems->shift_x12;
91  vValues[4].second += iItems->shift_x6;
92  vValues[5].second += iItems->shift_x1;
93 
94  }
95  return vValues;
96  }
std::vector< std::pair< std::string, float > > type_vValues