CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Enumerations | Functions
cond::rpcobvmon Namespace Reference

Typedefs

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

Enumerations

enum  How { detid, day, time, current }
 

Functions

void extractCurrent (RPCObVmon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
 
void extractDay (RPCObVmon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
 
void extractDetId (RPCObVmon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
 
void extractTime (RPCObVmon const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
 

Typedef Documentation

typedef boost::function<void(RPCObVmon const & pl, std::vector<int> const & which,std::vector<float> & result,const float& starttime,const float& endtime)> cond::rpcobvmon::RPCObVmonExtractor

Definition at line 114 of file RPCObVmonPyWrapper.cc.

Enumeration Type Documentation

Function Documentation

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

Definition at line 101 of file RPCObVmonPyWrapper.cc.

References i, RPCObVmon::ObVmon_rpc, and relativeConstraints::value.

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

101  {
102  std::vector<RPCObVmon::V_Item> const & vmon = pl.ObVmon_rpc;
103  for(unsigned int i = 0; i < vmon.size(); ++i ){
104  if (which[0] == 0){
105  result.push_back(vmon[i].value);
106  }
107  else{
108  if(vmon[i].dpid == which[0])
109  result.push_back(vmon[i].value);
110  }
111  }
112  }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
void cond::rpcobvmon::extractDay ( RPCObVmon const &  pl,
std::vector< int > const &  which,
std::vector< float > &  result,
const float &  starttime,
const float &  endtime 
)

Definition at line 75 of file RPCObVmonPyWrapper.cc.

References day, i, and RPCObVmon::ObVmon_rpc.

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

75  {
76  std::vector<RPCObVmon::V_Item> const & vmon = pl.ObVmon_rpc;
77  for(unsigned int i = 0; i < vmon.size(); ++i ){
78  if (which[0] == 0){
79  result.push_back(vmon[i].day);
80  }
81  else{
82  if(vmon[i].dpid == which[0])
83  result.push_back(vmon[i].day);
84  }
85  }
86  }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
void cond::rpcobvmon::extractDetId ( RPCObVmon const &  pl,
std::vector< int > const &  which,
std::vector< float > &  result,
const float &  starttime,
const float &  endtime 
)

Definition at line 62 of file RPCObVmonPyWrapper.cc.

References i, and RPCObVmon::ObVmon_rpc.

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

62  {
63  std::vector<RPCObVmon::V_Item> const & vmon = pl.ObVmon_rpc;
64  for(unsigned int i = 0; i < vmon.size(); ++i ){
65  if (which[0] == 0){
66  result.push_back(vmon[i].dpid);
67  }
68  else{
69  if(vmon[i].dpid == which[0])
70  result.push_back(vmon[i].dpid);
71  }
72  }
73  }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
void cond::rpcobvmon::extractTime ( RPCObVmon const &  pl,
std::vector< int > const &  which,
std::vector< float > &  result,
const float &  starttime,
const float &  endtime 
)

Definition at line 88 of file RPCObVmonPyWrapper.cc.

References i, RPCObVmon::ObVmon_rpc, and time.

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

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