#include <AFP_ToFEfficiency.h>
Definition at line 21 of file AFP_ToFEfficiency.h.
◆ AFP_ToFEfficiency()
dqm_algorithms::AFP_ToFEfficiency::AFP_ToFEfficiency |
( |
| ) |
|
◆ ~AFP_ToFEfficiency()
dqm_algorithms::AFP_ToFEfficiency::~AFP_ToFEfficiency |
( |
| ) |
|
◆ clone()
◆ execute()
dqm_core::Result * dqm_algorithms::AFP_ToFEfficiency::execute |
( |
const std::string & |
name, |
|
|
const TObject & |
object, |
|
|
const dqm_core::AlgorithmConfig & |
config |
|
) |
| |
|
override |
Definition at line 34 of file AFP_ToFEfficiency.cxx.
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;
◆ printDescriptionTo()
void dqm_algorithms::AFP_ToFEfficiency::printDescriptionTo |
( |
std::ostream & |
out | ) |
|
|
override |
Definition at line 74 of file AFP_ToFEfficiency.cxx.
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;
The documentation for this class was generated from the following files: