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

Public Member Functions

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

Protected Types

typedef EcalPulseSymmCovariance EcalObject
 
- Protected Types inherited from EcalPyWrapperHelper< EcalPulseSymmCovariance >
typedef std::vector< std::pair
< std::string, float > > 
type_vValues
 

Protected Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from EcalPyWrapperHelper< EcalPulseSymmCovariance >
static const unsigned int MEAN
 
static const unsigned int STATUS
 
- Protected Attributes inherited from EcalPyWrapperHelper< EcalPulseSymmCovariance >
std::string names
 
unsigned int status
 
unsigned int total_values
 

Detailed Description

Definition at line 140 of file EcalPulseSymmCovariancesPyWrapper.cc.

Member Typedef Documentation

Definition at line 144 of file EcalPulseSymmCovariancesPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalPulseSymmCovariancesHelper::EcalPulseSymmCovariancesHelper ( )
inline

Member Function Documentation

type_vValues cond::EcalPulseSymmCovariancesHelper::getValues ( const std::vector< EcalPulseSymmCovariance > &  vItems)
inlineoverrideprotectedvirtual

Implements EcalPyWrapperHelper< EcalPulseSymmCovariance >.

Definition at line 145 of file EcalPulseSymmCovariancesPyWrapper.cc.

References plotBeamSpotDB::first, alignCSCRings::s, edm::second(), EcalPulseShape::TEMPLATESAMPLES, THERAW, and EcalPyWrapperHelper< EcalPulseSymmCovariance >::total_values.

146  {
147  type_vValues vValues(total_values);
148 
149  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) vValues[s].first = Form("sample_0.vs.sample_%d",s);
150 
151  //get info:
152  for(std::vector<EcalPulseSymmCovariance>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems) {
153  for(int s = 0; s<EcalPulseShape::TEMPLATESAMPLES; ++s) vValues[s].second = iItems->val(THERAW,s);
154  }
155  return vValues;
156  }
std::vector< std::pair< std::string, float > > type_vValues
static const int TEMPLATESAMPLES
U second(std::pair< T, U > const &p)