42 KTDEBUG(cutlog,
"Updating cut summary");
58 KTDEBUG(cutlog, nCuts <<
" cuts");
62 for (
unsigned iCut = 0; iCut < nCuts; ++iCut)
79 KTERROR(cutlog,
"Could not create cut of type <" << cutName <<
">");
82 newCut->SetState(state);
101 if (cut == NULL)
return false;
102 return cut->GetState();
110 if (cut->
Name() == cutName)
return cut;
121 if (cut->
Name() == cutName)
return cut;
132 KTWARN(cutlog,
"Cut <" << cutName <<
"> not found");
135 cut->SetState(state);
161 if (cut == NULL )
return "";
163 std::string cutsPresent;
166 cutsPresent = cut->
Name() + cutsPresent;
168 if (cut != NULL) cutsPresent =
" " + cutsPresent;
189 out <<
"Cut summary: " << status.
fSummary <<
'\n';
KTCutStatus & operator=(const KTCutStatus &rhs)
KTExtensibleStructCore< XBaseType > * Create(const std::string &className)
bool SetCutState(bool state, bool doUpdateStatus=true)
friend std::ostream & operator<<(std::ostream &out, const KTCutStatus &status)
const KTCutResult * GetCutResult() const
bool HasCutResult() const
KTExtensibleStructCore * Next() const
Returns the pointer to the next field.
static const std::string sName
Provides easy access to cut information.
KTLOGGER(applog, "KTApplication")
bool AddCutResult(bool state, bool doUpdateStatus=true)
std::string CutResultsPresent() const
Returns a string with the names of the cuts that are present in bitset order.
Contains the logger class and macros, based on Kasper's KLogger class.
boost::scoped_ptr< KTCutResultHandle > fCutResults
virtual const std::string & Name() const =0