HighLAND
Public Member Functions | List of all members
numuCC4piFGD2::PIDAction Class Reference
Inheritance diagram for numuCC4piFGD2::PIDAction:
StepBase

Public Member Functions

bool Apply (AnaEventC &event, ToyBoxB &box) const
 
StepBaseMakeClone ()
 MANDATORY FUNCTIONS !!!
 
- Public Member Functions inherited from StepBase
void SetTitle (const std::string &title)
 
void SetType (TypeEnum type)
 Set the type of this step.
 
void SetBreak (bool b)
 Set whether the cut sequence should be stopped when this cut fails.
 
void SetIndex (Int_t index)
 Set the index of this step.
 
const std::string & Title () const
 Return the title of this step.
 
TypeEnum Type () const
 Return the type of this step.
 
bool Break () const
 Return true if the cut sequence should be stopped when a cut fails.
 
Int_t Index () const
 Return the index of this step.
 
std::string ConvertType () const
 Convert into a string the type of this step.
 
void DisableInBranch (Int_t branch)
 Disable step in a given branch.
 
void EnableInBranch (Int_t branch)
 Enable step in a given branch.
 
bool IsDisabledInBranch (Int_t branch) const
 Returns true if the step is disabled in the specified branch.
 
const std::vector< StepBase * > & GetNextSteps () const
 Returns 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.
 
void AddBranchUniqueID (UInt_t ibranch)
 
void RemoveBranchUniqueID (UInt_t branch)
 Remove a branch unique ID from this step.
 
const std::vector< UInt_t > & GetBranchUniqueIDs () const
 Returns the vector of branche unique IDs associated to this step.
 
void AddNextStep (StepBase *step, Int_t branch=-1)
 
void GetNextSteps (std::vector< StepBase *> &steps, bool withSplits=false)
 Get the vector of next steps.
 
BranchStatus GetNextStepsInBranch (std::vector< StepBase *> &steps, Int_t branch)
 Get the vector of next steps in a given branch, returns a status code.
 
void ValidateStepRecursive () const
 check that the step and all its suns are correct (it was branch unique IDs defined)
 
 ClassDef (StepBase, 1)
 

Additional Inherited Members

- Public Types inherited from StepBase
enum  TypeEnum { kCut =0, kAction, kUnknown }
 Enumerator describing the values that _type member can take.
 
enum  BranchStatus { BranchOK =0, BranchEmpty, NoBranches, BranchOutOfRange }
 
- Protected Attributes inherited from StepBase
TypeEnum _type
 The type of this step: cut or action.
 
bool _break
 true if the cut sequence should be stopped when a cut fails
 
std::string _title
 The title of this step, which is used by the DrawingTools.
 
std::vector< bool > _disabledInBranch
 Is the step disabled in a given branch.
 
std::vector< StepBase * > _nextSteps
 The vector of next steps.
 
std::vector< UInt_t > _branchUniqueIDs
 Branch unique IDs associated to this step.
 
Int_t _index
 Index of the step in the selection.
 

Detailed Description

Definition at line 75 of file numuCC4piFGD2Selection.hxx.

Member Function Documentation

§ Apply()

bool PIDAction::Apply ( AnaEventC event,
ToyBoxB box 
) const
virtual

The return value should specify whether the step was passed. For actions the return value is ignored

Reimplemented from StepBase.

Definition at line 225 of file numuCC4piFGD2Selection.cxx.

225  {
226  //**************************************************
227 
228  (void)event;
229 
230  ToyBoxCC4pi* cc4pibox = static_cast<ToyBoxCC4pi*>(&box);
231 
232  for (UInt_t i=0;i<cc4pibox->FwdTracks_Veto.size();i++){
233  if ( numuCC4piFGD2_utils::PIDCut(0,*(cc4pibox->FwdTracks_Veto[i]))==1 ) cc4pibox->FwdTracks_PID.push_back(cc4pibox->FwdTracks_Veto[i]);
234  }
235 
236  for (UInt_t i=0;i<cc4pibox->BwdTracks_Veto.size();i++){
237  if ( numuCC4piFGD2_utils::PIDCut(1,*(cc4pibox->BwdTracks_Veto[i]))==1 ) cc4pibox->BwdTracks_PID.push_back(cc4pibox->BwdTracks_Veto[i]);
238  }
239 
240  for (UInt_t i=0;i<cc4pibox->HAFwdTracks_Veto.size();i++){
241  if ( numuCC4piFGD2_utils::PIDCut(2,*(cc4pibox->HAFwdTracks_Veto[i]))==1 ) cc4pibox->HAFwdTracks_PID.push_back(cc4pibox->HAFwdTracks_Veto[i]);
242  }
243 
244  for (UInt_t i=0;i<cc4pibox->HABwdTracks_Veto.size();i++){
245  if ( numuCC4piFGD2_utils::PIDCut(2,*(cc4pibox->HABwdTracks_Veto[i]))==1 ) cc4pibox->HABwdTracks_PID.push_back(cc4pibox->HABwdTracks_Veto[i]);
246  }
247 
248  for (UInt_t i=0;i<cc4pibox->FwdTracks_Veto.size();i++){
249  if ( numuCC4piFGD2_utils::PIDCut(0,*(cc4pibox->FwdTracks_Veto[i]))==3 ) cc4pibox->CSECALTracks_PID.push_back(cc4pibox->FwdTracks_Veto[i]);
250  }
251 
252  if ( cc4pibox->FwdTracks_PID.size()>0 ) cc4pibox->MainTrack = cc4pibox->FwdTracks_PID[0];
253  else if ( cc4pibox->BwdTracks_PID.size()>0 ) cc4pibox->MainTrack = cc4pibox->BwdTracks_PID[0];
254  else if ( cc4pibox->HAFwdTracks_PID.size()>0 ) cc4pibox->MainTrack = cc4pibox->HAFwdTracks_PID[0];
255  else if ( cc4pibox->HABwdTracks_PID.size()>0 ) cc4pibox->MainTrack = cc4pibox->HABwdTracks_PID[0];
256 
257  return true;
258 
259 }
AnaTrackB * MainTrack
For storing tracks information in the bunch.

The documentation for this class was generated from the following files: