ComPWA
Common Partial-Wave-Analysis Framework
RootEfficiency.cpp
Go to the documentation of this file.
1 // Copyright (c) 2013, 2017 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
6 #include "Core/Event.hpp"
7 #include "Core/Exceptions.hpp"
8 #include "Data/DataSet.hpp"
9 
10 #include "TH2.h"
11 
12 namespace ComPWA {
13 namespace Data {
14 namespace Root {
15 
17  : effHist(new TEfficiency(*eff)) {
18  LOG(DEBUG) << "RootEfficiency: creating efficiency from existing "
19  "TEfficiency object!";
20 }
21 
22 RootEfficiency::RootEfficiency(TH1 *passed, TH1 *total)
23  : effHist(new TEfficiency(*passed, *total)) {
24  LOG(DEBUG) << "RootEfficiency: creating efficiency from two TH2D objects!";
25 }
26 
27 std::vector<double> RootEfficiency::evaluate(const DataSet &dataset) const {
28  throw std::runtime_error(
29  "RootEfficiency::evaluate(): is currently not implemented!");
30  return {};
31 }
32 
33 // ------------------ ROOTANGLEEFFICIENCY ---------------------
34 
35 std::vector<double>
36 RootAngleEfficiency::evaluate(const DataSet &dataset) const {
37  throw std::runtime_error(
38  "RootAngleEfficiency::evaluate(): is currently not implemented!");
39  return {};
40 }
41 
42 } // namespace Root
43 } // namespace Data
44 } // namespace ComPWA
RootEfficiency(TEfficiency *eff)
Construct RootEfficiency from TEfficiency object.
ComPWA exceptions.
std::shared_ptr< TEfficiency > effHist
virtual std::vector< double > evaluate(const DataSet &dataset) const
virtual std::vector< double > evaluate(const DataSet &dataset) const