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 43 of file EcalTPGLinearizationConstPyWrapper.cc.

Member Typedef Documentation

Definition at line 50 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 52 of file EcalTPGLinearizationConstPyWrapper.cc.

References EcalPyWrapperHelper< EcalTPGLinearizationConstant >::total_values.

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