CMS 3D CMS Logo

Typedefs | Enumerations | Functions

cond::rpcobimon Namespace Reference

Typedefs

typedef boost::function< void(RPCObImon
const &pl, std::vector< int >
const &which, std::vector
< float > &result, const float
&starttime, const float
&endtime)> 
RPCObImonExtractor

Enumerations

enum  How { detid, day, time, current }

Functions

void extractCurrent (RPCObImon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
void extractDay (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)
void extractTime (RPCObImon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)

Typedef Documentation

typedef boost::function<void(RPCObImon const & pl, std::vector<int> const & which,std::vector<float> & result,const float& starttime,const float& endtime)> cond::rpcobimon::RPCObImonExtractor

Definition at line 115 of file RPCObImonPyWrapper.cc.


Enumeration Type Documentation

Enumerator:
detid 
day 
time 
current 

Definition at line 61 of file RPCObImonPyWrapper.cc.


Function Documentation

void cond::rpcobimon::extractCurrent ( RPCObImon const &  pl,
std::vector< int > const &  which,
std::vector< float > &  result,
const float &  starttime,
const float &  endtime 
)

Definition at line 102 of file RPCObImonPyWrapper.cc.

References i, RPCObImon::ObImon_rpc, and relativeConstraints::value.

Referenced by cond::ValueExtractor< RPCObImon >::extractor().

                                                                                                                                                  {
      std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
      for(unsigned int i = 0; i < imon.size(); ++i ){
        if (which[0] == 0){
          result.push_back(imon[i].value);
        }
        else{
          if(imon[i].dpid == which[0])
            result.push_back(imon[i].value);
        }
      }
    }
void cond::rpcobimon::extractDay ( RPCObImon const &  pl,
std::vector< int > const &  which,
std::vector< float > &  result,
const float &  starttime,
const float &  endtime 
)

Definition at line 76 of file RPCObImonPyWrapper.cc.

References day, i, and RPCObImon::ObImon_rpc.

Referenced by cond::ValueExtractor< RPCObImon >::extractor().

                                                                                                                                               {
      std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
      for(unsigned int i = 0; i < imon.size(); ++i ){
        if (which[0] == 0){
          result.push_back(imon[i].day);
        }
        else{
          if(imon[i].dpid == which[0])
            result.push_back(imon[i].day);
        }
      }
    }
void cond::rpcobimon::extractDetId ( RPCObImon const &  pl,
std::vector< int > const &  which,
std::vector< float > &  result,
const float &  starttime,
const float &  endtime 
)

Definition at line 63 of file RPCObImonPyWrapper.cc.

References i, and RPCObImon::ObImon_rpc.

Referenced by cond::ValueExtractor< RPCObImon >::extractor().

                                                                                                                                                 {
      std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
      for(unsigned int i = 0; i < imon.size(); ++i ){
        if (which[0] == 0){
          result.push_back(imon[i].dpid);
        }
        else{
          if(imon[i].dpid == which[0])
            result.push_back(imon[i].dpid);
        }
      }
    }
void cond::rpcobimon::extractTime ( RPCObImon const &  pl,
std::vector< int > const &  which,
std::vector< float > &  result,
const float &  starttime,
const float &  endtime 
)

Definition at line 89 of file RPCObImonPyWrapper.cc.

References i, RPCObImon::ObImon_rpc, and time.

Referenced by cond::ValueExtractor< RPCObImon >::extractor().

                                                                                                                                                {
      std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
      for(unsigned int i = 0; i < imon.size(); ++i ){
        if (which[0] == 0){
          result.push_back(imon[i].time);
        }
        else{
          if(imon[i].dpid == which[0])
            result.push_back(imon[i].time);
        }
      }
    }