|
@@ -131,6 +131,9 @@ namespace fv_root {
|
|
|
this->container->SetYTitle(params.label_y.c_str());
|
|
|
}
|
|
|
|
|
|
+ ContainerTH1(const std::string &name, const TH1Params ¶ms)
|
|
|
+ : ContainerTH1<V>(name, name, params) { }
|
|
|
+
|
|
|
void fill(const V &v) {
|
|
|
this->container->Fill(v);
|
|
|
}
|
|
@@ -152,10 +155,6 @@ namespace fv_root {
|
|
|
fv_root_util::save_as(this->get_container(), fname, option);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- GenContainer *clone_as(const std::string &new_name) {
|
|
|
- return new ContainerTH1<V>(new_name, this->title, this->params);
|
|
|
- }
|
|
|
};
|
|
|
|
|
|
struct TH2Params {
|
|
@@ -205,6 +204,9 @@ namespace fv_root {
|
|
|
this->container->SetYTitle(params.label_y.c_str());
|
|
|
}
|
|
|
|
|
|
+ ContainerTH2(const std::string &name, const TH2Params ¶ms)
|
|
|
+ : ContainerTH2<V>(name, name, params) { }
|
|
|
+
|
|
|
void fill(const V& x, const V& y) {
|
|
|
this->container->Fill(x, y);
|
|
|
}
|
|
@@ -245,10 +247,6 @@ namespace fv_root {
|
|
|
return this->container;
|
|
|
}
|
|
|
|
|
|
- GenContainer *clone_as(const std::string &new_name) {
|
|
|
- return new ContainerTGraph<V>(new_name, this->title);
|
|
|
- }
|
|
|
-
|
|
|
void save_as(const std::string &fname, const SaveOption &option = SaveOption::PNG) {
|
|
|
fv_root_util::save_as(get_container(), fname, option);
|
|
|
}
|
|
@@ -272,10 +270,6 @@ namespace fv_root {
|
|
|
this->container->push_back(v);
|
|
|
}
|
|
|
|
|
|
- GenContainer *clone_as(const std::string &new_name) {
|
|
|
- return new Vector<V>(new_name);
|
|
|
- }
|
|
|
-
|
|
|
void save_as(const std::string &fname, const SaveOption &option = SaveOption::PNG) {
|
|
|
std::string type_name = "std::vector<" + fv::util::get_type_name(typeid(V)) + ">";
|
|
|
fv_root_util::save_as_stl(this->get_container(), type_name, this->get_name(), option);
|
|
@@ -302,10 +296,6 @@ namespace fv_root {
|
|
|
void fill(const V& v) {
|
|
|
(*this->container)[v]++;
|
|
|
}
|
|
|
-
|
|
|
- GenContainer *clone_as(const std::string &new_name) {
|
|
|
- return new Counter<V>(new_name);
|
|
|
- }
|
|
|
};
|
|
|
|
|
|
|
|
@@ -349,10 +339,6 @@ namespace fv_root {
|
|
|
den.Fill(v);
|
|
|
if (pass) num.Fill(v);
|
|
|
}
|
|
|
-
|
|
|
- GenContainer *clone_as(const std::string &new_name) {
|
|
|
- return new EfficiencyContainer<V>(new_name, this->params);
|
|
|
- }
|
|
|
};
|
|
|
|
|
|
}
|