36 const TObject&
object,
37 const dqm_core::AlgorithmConfig&
config ) {
38 if ( !
object.
IsA()->InheritsFrom(
"TEfficiency" ) ) {
39 throw dqm_core::BadConfig( ERS_HERE, name,
"does not inherit from TEfficiency" );
48 TH1* h_total =
histogram->GetCopyTotalHisto();
49 TH1* h_passed =
histogram->GetCopyPassedHisto();
51 float n_total = float ( h_total->GetEntries() );
52 float n_passed = float ( h_passed->GetEntries() );
55 auto result =
new dqm_core::Result();
61 result->status_ = dqm_core::Result::Undefined;
63 result->status_ = dqm_core::Result::Green;
65 result->status_ = dqm_core::Result::Yellow;
67 result->status_ = dqm_core::Result::Red;
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")