41 {
42
43 const TH1*
h =
dynamic_cast<const TH1*
>( &
data );
44 if( h == 0 ) {
45 throw dqm_core::BadConfig( ERS_HERE, name, "Cannot cast data to type TH1" );
46 }
47 const TH1*
ref =
dynamic_cast<const TH1*
>(
config.getReference() );
49 throw dqm_core::BadConfig( ERS_HERE, name, "Cannot obtain reference of type TH1" );
50 }
51 double greenThr, redThr;
52
53 std::string thrName="MaxDist";
54
55 try {
58 }
59 catch ( dqm_core::Exception & ex ) {
60 throw dqm_core::BadConfig( ERS_HERE, name, ex.what(), ex );
61
62 }
66 std::unique_ptr<dqm_core::Result>
result (
new dqm_core::Result());
69
71 result->status_ = dqm_core::Result::Green;
72 }
74 result->status_ = dqm_core::Result::Red;
75 }
76 else {
77 result->status_ = dqm_core::Result::Yellow;
78 }
80}
#define maxValue(current, test)
char data[hepevt_bytes_allocation_ATLAS]
void checkBinByBin(const TH1 *hist, float &result, float &detectedBin)