00001 #include "Event/cutSelectionTask.h" 00002 #include "Event/selectionManager.h" 00003 #include "Event/messageManager.h" 00004 00005 //##################################### 00006 void cutSelectionTask::defineOption() 00007 //##################################### 00008 { 00009 optionVI::defineOption("addCut",&m_cutName); 00010 } 00011 //##################################### 00012 void cutSelectionTask::setOption(std::string var, std::string content) 00013 //##################################### 00014 { 00015 optionVI::setOption(var,content); 00016 if (var == "addCut") { 00017 cutVI* cut = selectionManager::instance()->getCut(content); 00018 if (cut==0) return; 00019 add(content,cut); 00020 message(" cut "+ content+ " added to the cutSelectionTask "+ name(),"RELEASE"); 00021 } 00022 } 00023 //##################################### 00024 void cutSelectionTask::writeOut() const 00025 //##################################### 00026 { 00027 if (!acceptLevel()) return; 00028 if (cutComposite::size() == 0) return; 00029 00030 messageVI::writeOut(); 00031 std::ostream& out = messageManager::instance()->out(); 00032 out << " -- cuts in cutSelectionTask : "+name()+" -- " << "\n"; 00033 out << nameList(); 00034 }