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

Public Member Functions

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

Protected Types

typedef EcalDAQStatusCode EcalObject
 
- Protected Types inherited from EcalPyWrapperHelper< EcalDAQStatusCode >
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< EcalDAQStatusCode >
static const unsigned int MEAN
 
static const unsigned int STATUS
 
- Protected Attributes inherited from EcalPyWrapperHelper< EcalDAQStatusCode >
std::string names
 
unsigned int status
 
unsigned int total_values
 

Detailed Description

Definition at line 130 of file EcalDAQTowerStatusPyWrapper.cc.

Member Typedef Documentation

Definition at line 137 of file EcalDAQTowerStatusPyWrapper.cc.

Constructor & Destructor Documentation

cond::EcalDAQTowerStatusHelper::EcalDAQTowerStatusHelper ( )
inline

Member Function Documentation

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

Implements EcalPyWrapperHelper< EcalDAQStatusCode >.

Definition at line 139 of file EcalDAQTowerStatusPyWrapper.cc.

References EcalPyWrapperHelper< EcalDAQStatusCode >::total_values.

140  {
141  type_vValues vValues(total_values);
142 
143  //change us
144  vValues[0].first = "bit 0 -> towers excluded from the DAQ";
145 
146  vValues[0].second = .0;
147 
148  //get info:
149  for(std::vector<EcalObject>::const_iterator iItems = vItems.begin(); iItems != vItems.end(); ++iItems){
150  //change us
151  vValues[0].second += iItems->getStatusCode();
152  }
153  return vValues;
154  }
std::vector< std::pair< std::string, float > > type_vValues