10 #include "CoreDataClasses.hxx" 42 virtual StepBase*
MakeClone(){std::cout <<
"ERROR: StepBase::MakeClone() must be implemented in your Cut!!!" << std::endl;exit(1);
return NULL;}
46 virtual bool Apply(
AnaEventC& event,
ToyBoxB& box)
const {(void)event;(void)box;
return true;std::cout <<
"ERROR: StepBase::Apply() must be implemented in your Cut!!!" << std::endl;exit(1);}
109 void GetNextSteps(std::vector<StepBase*>& steps,
bool withSplits=
false);
BranchStatus GetNextStepsInBranch(std::vector< StepBase *> &steps, Int_t branch)
Get the vector of next steps in a given branch, returns a status code.
Int_t Index() const
Return the index of this step.
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 SetType(TypeEnum type)
Set the type of this step.
bool _break
true if the cut sequence should be stopped when a cut fails
Int_t _index
Index of the step in the selection.
virtual bool Apply(AnaEventC &event, ToyBoxB &box) const
bool Break() const
Return true if the cut sequence should be stopped when a cut fails.
void AddNextStep(StepBase *step, Int_t branch=-1)
std::vector< UInt_t > _branchUniqueIDs
Branch unique IDs associated to this step.
void SetBreak(bool b)
Set whether the cut sequence should be stopped when this cut fails.
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.
void SetIndex(Int_t index)
Set the index of this step.
void SetTitle(const std::string &title)
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.
virtual StepBase * MakeClone()
MANDATORY FUNCTIONS !!!
void EnableInBranch(Int_t branch)
Enable step in a given branch.
TypeEnum Type() const
Return the type of this step.
bool IsDisabledInBranch(Int_t branch) const
Returns true if the step is disabled in the specified branch.
void DisableInBranch(Int_t branch)
Disable step in a given branch.
TypeEnum
Enumerator describing the values that _type member can take.