CMS 3D CMS Logo

Public Member Functions | Protected Types | Protected Member Functions

cond::EcalLaserAPDPNRatiosHelper Class Reference

Inheritance diagram for cond::EcalLaserAPDPNRatiosHelper:
EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >

List of all members.

Public Member Functions

 EcalLaserAPDPNRatiosHelper ()

Protected Types

typedef
EcalLaserAPDPNRatios::EcalLaserAPDPNpair 
EcalObject

Protected Member Functions

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

Detailed Description

Definition at line 62 of file EcalLaserAPDPNRatiosPyWrapper.cc.


Member Typedef Documentation

Definition at line 66 of file EcalLaserAPDPNRatiosPyWrapper.cc.


Constructor & Destructor Documentation

cond::EcalLaserAPDPNRatiosHelper::EcalLaserAPDPNRatiosHelper ( ) [inline]

Member Function Documentation

type_vValues cond::EcalLaserAPDPNRatiosHelper::getValues ( const std::vector< EcalLaserAPDPNRatios::EcalLaserAPDPNpair > &  vItems) [inline, protected, virtual]

Implements EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >.

Definition at line 67 of file EcalLaserAPDPNRatiosPyWrapper.cc.

References EcalPyWrapperHelper< EcalLaserAPDPNRatios::EcalLaserAPDPNpair >::total_values.

                {
                        //unsigned int totalValues = 6; 
                        type_vValues vValues(total_values);

                        vValues[0].first = "p1";
                        vValues[1].first = "p2";
                        vValues[2].first = "p3";
                        
                        vValues[0].second = .0;
                        vValues[1].second = .0;
                        vValues[2].second = .0;

                        
                        //get info:
                        for(std::vector<EcalLaserAPDPNRatios::EcalLaserAPDPNpair>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
                                vValues[0].second += iItems->p1;
                                vValues[1].second += iItems->p2;
                                vValues[2].second += iItems->p3;

                        }
                        return vValues;
                }