CMS 3D CMS Logo

Public Member Functions | Protected Types | Protected Member Functions

cond::EcalTPGPedestalsHelper Class Reference

Inheritance diagram for cond::EcalTPGPedestalsHelper:
EcalPyWrapperHelper< EcalTPGPedestal >

List of all members.

Public Member Functions

 EcalTPGPedestalsHelper ()

Protected Types

typedef EcalTPGPedestal EcalObject

Protected Member Functions

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

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

Implements EcalPyWrapperHelper< EcalTPGPedestal >.

Definition at line 50 of file EcalTPGPedestalsPyWrapper.cc.

References EcalPyWrapperHelper< EcalTPGPedestal >::total_values.

                {
                        type_vValues vValues(total_values);

                        //change us
                        vValues[0].first = "mean_x12";
                        vValues[1].first = "mean_x6";
                        vValues[2].first = "mean_x1";   

                        vValues[0].second = .0;
                        vValues[1].second = .0;
                        vValues[2].second = .0;
                        
                        //get info:
                        for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
                                //change us
                                vValues[0].second += iItems->mean_x12;
                                vValues[1].second += iItems->mean_x6;
                                vValues[2].second += iItems->mean_x1;
                        }
                        return vValues;
                }