1 #include "StepBase.hxx" 13 _branchUniqueIDs.clear();
14 _disabledInBranch.clear();
22 std::cout <<
"\nERROR. StepBase::ValidateStepRecursive(). Step '" <<
_title 23 <<
"' does not belong to any branch. You must use SetBranchAlias after adding the steps in your selection" << std::endl;
64 else if (
_type == kAction)
77 if (branch>=0 && branch < (Int_t)
_nextSteps.size()){
81 std::cout <<
"StepBase::AddNextStep(). branch " << branch <<
" not defined for step '" <<
_title <<
"'" << std::endl;
89 if (branch<0 || branch >= (Int_t)
_nextSteps.size()){
90 std::cout <<
"ERROR. StepBase::AddNextStep(). branch " << branch <<
" not defined for step '" <<
_title <<
"'" << std::endl;
96 std::cout <<
"ERROR. StepBase::AddNextStep(). Step '" <<
_title <<
"' does not have a child step '" << title <<
"' in branch " << branch << std::endl;
113 if (!withSplits &&
_nextSteps.size() != 1)
return;
117 steps.push_back(*it);
120 (*it)->GetNextSteps(steps,withSplits);
132 std::cout <<
"StepBase::GetNextSteps(branch): Branch index " << branch <<
" does not exist in Step '" <<
_title <<
"'" << std::endl;
133 return BranchOutOfRange;
BranchStatus GetNextStepsInBranch(std::vector< StepBase *> &steps, Int_t branch)
Get the vector of next steps in a given branch, returns a status code.
void AddBranchUniqueID(UInt_t ibranch)
std::string ConvertType() const
Convert into a string the type of this step.
const std::vector< StepBase * > & GetNextSteps() const
Returns the vector of next steps.
const std::vector< UInt_t > & GetBranchUniqueIDs() const
Returns the vector of branche unique IDs associated to this step.
void ValidateStepRecursive() const
check that the step and all its suns are correct (it was branch unique IDs defined) ...
const std::string & Title() const
Return the title of this step.
TypeEnum _type
The type of this step: cut or action.
void AddNextStep(StepBase *step, Int_t branch=-1)
std::vector< UInt_t > _branchUniqueIDs
Branch unique IDs associated to this step.
void RemoveBranchUniqueID(UInt_t branch)
Remove a branch unique ID from this step.
std::string _title
The title of this step, which is used by the DrawingTools.
std::vector< StepBase * > _nextSteps
The vector of next steps.
void RemoveNextStep(const std::string &title, Int_t ID=0)
Remove step with a given title (and branch ID) from next steps.
std::vector< bool > _disabledInBranch
Is the step disabled in a given branch.