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< RPCObGas > Class Template Reference
Inheritance diagram for cond::ValueExtractor< RPCObGas >:
cond::BaseValueExtractor< RPCObGas >

Public Types

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

Public Member Functions

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

Static Public Member Functions

static
rpcobgas::RPCObGasExtractor
extractor (rpcobgas::How how)
 
static What what ()
 

Private Attributes

What m_what
 

Additional Inherited Members

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

Detailed Description

template<>
class cond::ValueExtractor< RPCObGas >

Definition at line 153 of file RPCObGasPyWrapper.cc.

Member Typedef Documentation

Definition at line 167 of file RPCObGasPyWrapper.cc.

Definition at line 168 of file RPCObGasPyWrapper.cc.

Constructor & Destructor Documentation

Definition at line 171 of file RPCObGasPyWrapper.cc.

171 {}
cond::ValueExtractor< RPCObGas >::ValueExtractor ( What const &  what)
inline

Definition at line 172 of file RPCObGasPyWrapper.cc.

173  : m_what(what)
174  {
175  // here one can make stuff really complicated... (select mean rms, 12,6,1)
176  // ask to make average on selected channels...
177  }

Member Function Documentation

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

Reimplemented from cond::BaseValueExtractor< RPCObGas >.

Definition at line 179 of file RPCObGasPyWrapper.cc.

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

179  {
180  std::vector<float> res;
181  extractor(m_what.how())(it,m_what.which(),res,m_what.startTime(),m_what.endTime());
182  swap(res);
183  // this->add(it.dpid);
184  // this->add(it.flowin);
185  // this->add(it.flowout);
186  // this->add(it.day);
187  // this->add(it.time);
188  }
static rpcobgas::RPCObGasExtractor & extractor(rpcobgas::How how)
void swap(std::vector< float > &v)
static rpcobgas::RPCObGasExtractor& cond::ValueExtractor< RPCObGas >::extractor ( rpcobgas::How  how)
inlinestatic

Definition at line 156 of file RPCObGasPyWrapper.cc.

References cond::rpcobgas::extractDay(), cond::rpcobgas::extractDetId(), cond::rpcobgas::extractFlowin(), cond::rpcobgas::extractFlowout(), and cond::rpcobgas::extractTime().

156  {
157  static rpcobgas::RPCObGasExtractor fun[5] = {
163  };
164  return fun[how];
165  }
void extractDetId(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
void extractFlowout(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
void extractFlowin(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
boost::function< void(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)> RPCObGasExtractor
void extractTime(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
void extractDay(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
static What cond::ValueExtractor< RPCObGas >::what ( )
inlinestatic

Definition at line 169 of file RPCObGasPyWrapper.cc.

169 { return What();}

Member Data Documentation

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

Definition at line 191 of file RPCObGasPyWrapper.cc.