8 #include <dqm_core/AlgorithmManager.h>
9 #include "dqm_core/AlgorithmConfig.h"
10 #include <dqm_core/exceptions.h>
12 #include <TDirectory.h>
35 const TObject&
object,
36 const dqm_core::AlgorithmConfig&
config ) {
37 if ( !
object.
IsA()->InheritsFrom(
"TH2" ) ) {
38 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH2" );
51 if (current_eff >= eff_limit)
60 result->tags_[ (
"N Trains with efficiency less than " + (
std::to_string(eff_limit)).substr(0,4)).c_str() ] = each_tr_status[1];
62 if ( each_tr_status[0]==0 && each_tr_status[1]==0 )
64 else if ( each_tr_status[0] == 4 )
66 else if ( each_tr_status[1] >= gthreshold && each_tr_status[1] < rthreshold )
67 result->status_ = dqm_core::Result::Yellow;
75 out <<
"AFP_ToFEfficiency: Print out how many trains have efficiency less than limit\n"
76 <<
"Required Parameter: eff_limit: threshold percentage of efficiency" << std::endl;