CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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().

102  {
103  std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
104  for(unsigned int i = 0; i < imon.size(); ++i ){
105  if (which[0] == 0){
106  result.push_back(imon[i].value);
107  }
108  else{
109  if(imon[i].dpid == which[0])
110  result.push_back(imon[i].value);
111  }
112  }
113  }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
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().

76  {
77  std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
78  for(unsigned int i = 0; i < imon.size(); ++i ){
79  if (which[0] == 0){
80  result.push_back(imon[i].day);
81  }
82  else{
83  if(imon[i].dpid == which[0])
84  result.push_back(imon[i].day);
85  }
86  }
87  }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
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().

63  {
64  std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
65  for(unsigned int i = 0; i < imon.size(); ++i ){
66  if (which[0] == 0){
67  result.push_back(imon[i].dpid);
68  }
69  else{
70  if(imon[i].dpid == which[0])
71  result.push_back(imon[i].dpid);
72  }
73  }
74  }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
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().

89  {
90  std::vector<RPCObImon::I_Item> const & imon = pl.ObImon_rpc;
91  for(unsigned int i = 0; i < imon.size(); ++i ){
92  if (which[0] == 0){
93  result.push_back(imon[i].time);
94  }
95  else{
96  if(imon[i].dpid == which[0])
97  result.push_back(imon[i].time);
98  }
99  }
100  }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137