CMS 3D CMS Logo

Public Member Functions | Protected Types | Protected Member Functions

cond::EcalTPGLinearizationConstHelper Class Reference

Inheritance diagram for cond::EcalTPGLinearizationConstHelper:
EcalPyWrapperHelper< EcalTPGLinearizationConstant >

List of all members.

Public Member Functions

 EcalTPGLinearizationConstHelper ()

Protected Types

typedef
EcalTPGLinearizationConstant 
EcalObject

Protected Member Functions

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

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) [inline, protected, virtual]

Implements EcalPyWrapperHelper< EcalTPGLinearizationConstant >.

Definition at line 61 of file EcalTPGLinearizationConstPyWrapper.cc.

References EcalPyWrapperHelper< EcalTPGLinearizationConstant >::total_values.

    {

                        type_vValues vValues(total_values);

                        vValues[0].second = .0;
                        vValues[1].second = .0;
                        vValues[2].second = .0;
                        vValues[3].second = .0;
                        vValues[4].second = .0;
                        vValues[5].second = .0;


                        //change us
                        vValues[0].first = "mult_x12";
                        vValues[1].first = "mult_x6";
                        vValues[2].first = "mult_x1";
                        vValues[3].first = "shift_x12";
                        vValues[4].first = "shift_x6";
                        vValues[5].first = "shift_x1";

                        

                        
                        for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
                                //change us
                                vValues[0].second += iItems->mult_x12;
                                vValues[1].second += iItems->mult_x6;
                                vValues[2].second += iItems->mult_x1;
                                vValues[3].second += iItems->shift_x12;
                                vValues[4].second += iItems->shift_x6;
                                vValues[5].second += iItems->shift_x1;

                        }
                        return vValues;
                }