11 #include <dqm_core/AlgorithmConfig.h>
19 #include <dqm_core/AlgorithmManager.h>
39 const TObject &
object,
40 const dqm_core::AlgorithmConfig &
config)
43 if(
object.
IsA()->InheritsFrom(
"TH1" ) ) {
46 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 2 " );
49 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH1" );
56 for (
int towerNum =
range.at(0); towerNum <=
range.at(1); ++towerNum ) {
57 double inputCont =
histogram->GetBinContent(towerNum);
58 if (inputCont>worstStatus) worstStatus=inputCont;
62 result->tags_[
"BinContent"] = worstStatus;
64 else if(worstStatus==1)
result->status_ = dqm_core::Result::Yellow;
67 result->status_ = dqm_core::Result::Disabled;
80 out<<
"Red bin: The tower has experienced a large spike in rate. The large spike threshold algorithm is written in TilePPMContainerSpike in TriggerMonitor in L1Calo's git repository. \n" << std::endl;
82 out<<
"Yellow bin: The tower has experienced a spike in rate. The spike threshold algorithm is written in TilePPMContainerSpike in TriggerMonitor in L1Calo's git repository. \n" << std::endl;
84 out<<
"Black bin: This tower is disabled\n" << std::endl;
86 out<<
"Optional Parameter, Publish Bin: Publishes the content of the bins that are different than result." << std::endl;