30 #include "TVirtualPad.h"
34 #include "TMultiGraph.h"
49 #include <boost/ref.hpp>
50 #include <boost/bind.hpp>
51 #include <boost/function.hpp>
52 #include <boost/shared_ptr.hpp>
53 #include <boost/iterator/transform_iterator.hpp>
64 std::vector<RPCObGas::Item>
const & gas = pl.
ObGas_rpc;
65 for(
unsigned int i = 0;
i < gas.size(); ++
i ){
67 result.push_back(gas[
i].dpid);
70 if(gas[
i].dpid == which[0])
71 result.push_back(gas[
i].dpid);
77 std::vector<RPCObGas::Item>
const & gas = pl.
ObGas_rpc;
78 for(
unsigned int i = 0;
i < gas.size(); ++
i ){
80 result.push_back(gas[
i].
flowin);
83 if(gas[
i].dpid == which[0])
84 result.push_back(gas[
i].
flowin);
90 std::vector<RPCObGas::Item>
const & gas = pl.
ObGas_rpc;
91 for(
unsigned int i = 0;
i < gas.size(); ++
i ){
96 if(gas[
i].dpid == which[0])
103 std::vector<RPCObGas::Item>
const & gas = pl.
ObGas_rpc;
104 for(
unsigned int i = 0;
i < gas.size(); ++
i ){
106 result.push_back(gas[
i].
day);
109 if(gas[
i].dpid == which[0])
110 result.push_back(gas[
i].
day);
116 std::vector<RPCObGas::Item>
const & gas = pl.
ObGas_rpc;
117 for(
unsigned int i = 0;
i < gas.size(); ++
i ){
119 result.push_back(gas[
i].
time);
122 if(gas[
i].dpid == which[0])
123 result.push_back(gas[
i].
time);
140 std::vector<int>
const &
which()
const {
return m_which;}
142 float const &
endTime()
const {
return m_endtime;}
180 std::vector<float> res;
181 extractor(m_what.how())(it,m_what.which(),res,m_what.startTime(),m_what.endTime());
271 std::vector<int>
const & vInt,
272 std::vector<float>
const& vFlt)
const {
426 std::vector<int>
const& nts,
427 std::vector<float>
const& floats,
428 std::vector<std::string>
const& strings)
const {
549 std::vector<int>
const& nts,
550 std::vector<float>
const& floats,
551 std::vector<std::string>
const& strings)
const {
return filename; }
555 namespace condPython {
558 using namespace boost::python;
559 enum_<cond::rpcobgas::How>(
"How")
568 class_<What>(
"What",init<>())
569 .def(
"set_how",&What::set_how)
570 .def(
"set_which",&What::set_which)
571 .def(
"how",&What::how, return_value_policy<copy_const_reference>())
572 .def(
"which",&
What::which, return_value_policy<copy_const_reference>())
573 .def(
"set_starttime",&What::set_starttime)
574 .def(
"set_endtime",&What::set_endtime)
575 .def(
"startTime",&
What::startTime, return_value_policy<copy_const_reference>())
576 .def(
"endTime",&What::endTime, return_value_policy<copy_const_reference>())
void extractDetId(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
std::string trend_plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &, std::vector< std::string > const &) const
std::string plot(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &) const
void extractFlowout(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
#define PYTHON_WRAPPER(_class, _name)
void extractFlowin(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)
Double_t linearF(Double_t *x, Double_t *par)
std::string summary() const
std::vector< Item > ObGas_rpc
std::string dumpFile(std::string const &, std::string const &, std::vector< int > const &, std::vector< float > const &, std::vector< std::string > const &) const
boost::function< void(RPCObGas const &pl, std::vector< int > const &which, std::vector< float > &result, const float &starttime, const float &endtime)> RPCObGasExtractor
void defineWhat< RPCObGas >()
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)