CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
cond::ValueExtractor< RPCObImon > Class Template Reference
Inheritance diagram for cond::ValueExtractor< RPCObImon >:
cond::BaseValueExtractor< RPCObImon >

Public Types

typedef RPCObImon Class
 
typedef ExtractWhat< ClassWhat
 
- Public Types inherited from cond::BaseValueExtractor< RPCObImon >
typedef RPCObImon Class
 

Public Member Functions

void compute (Class const &it)
 
 ValueExtractor ()
 
 ValueExtractor (What const &what)
 
- Public Member Functions inherited from cond::BaseValueExtractor< RPCObImon >
 BaseValueExtractor ()
 
void computeW (Class const &o)
 
std::vector< float > const & values () const
 
virtual ~BaseValueExtractor ()
 

Static Public Member Functions

static
rpcobimon::RPCObImonExtractor
extractor (rpcobimon::How how)
 
static What what ()
 

Private Attributes

What m_what
 

Additional Inherited Members

- Protected Member Functions inherited from cond::BaseValueExtractor< RPCObImon >
void add (float v)
 
void swap (std::vector< float > &v)
 

Detailed Description

template<>
class cond::ValueExtractor< RPCObImon >

Definition at line 140 of file RPCObImonPyWrapper.cc.

Member Typedef Documentation

Definition at line 153 of file RPCObImonPyWrapper.cc.

Definition at line 154 of file RPCObImonPyWrapper.cc.

Constructor & Destructor Documentation

Definition at line 157 of file RPCObImonPyWrapper.cc.

157 {}
cond::ValueExtractor< RPCObImon >::ValueExtractor ( What const &  what)
inline

Definition at line 158 of file RPCObImonPyWrapper.cc.

159  : m_what(what)
160  {
161  // here one can make stuff really complicated... (select mean rms, 12,6,1)
162  // ask to make average on selected channels...
163  }

Member Function Documentation

void cond::ValueExtractor< RPCObImon >::compute ( Class const &  it)
inlinevirtual

Reimplemented from cond::BaseValueExtractor< RPCObImon >.

Definition at line 165 of file RPCObImonPyWrapper.cc.

References cond::BaseValueExtractor< T >::swap().

165  {
166  std::vector<float> res;
167  extractor(m_what.how())(it,m_what.which(),res,m_what.startTime(),m_what.endTime());
168  swap(res);
169  }
static rpcobimon::RPCObImonExtractor & extractor(rpcobimon::How how)
void swap(std::vector< float > &v)
static rpcobimon::RPCObImonExtractor& cond::ValueExtractor< RPCObImon >::extractor ( rpcobimon::How  how)
inlinestatic

Definition at line 143 of file RPCObImonPyWrapper.cc.

References cond::rpcobimon::extractCurrent(), cond::rpcobimon::extractDay(), cond::rpcobimon::extractDetId(), and cond::rpcobimon::extractTime().

143  {
144  static rpcobimon::RPCObImonExtractor fun[4] = {
149  };
150  return fun[how];
151  }
void extractDay(RPCObImon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
void extractTime(RPCObImon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
boost::function< void(RPCObImon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)> RPCObImonExtractor
void extractCurrent(RPCObImon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
void extractDetId(RPCObImon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
static What cond::ValueExtractor< RPCObImon >::what ( )
inlinestatic

Definition at line 155 of file RPCObImonPyWrapper.cc.

155 { return What();}

Member Data Documentation

What cond::ValueExtractor< RPCObImon >::m_what
private

Definition at line 172 of file RPCObImonPyWrapper.cc.