#include "simpleSelection.hxx" #include "baseSelection.hxx" #include "CutUtils.hxx" #include "SubDetId.hxx" #include "EventBoxUtils.hxx" //******************************************************************** // Constructor for the simpleSelection class simpleSelection::simpleSelection(bool forceBreak): SelectionBase(forceBreak) { // Define the selection steps DefineSteps(); // Select the detector in which the selection is applied _detectorFV = SubDetId::kFGD1; } //******************************************************************** //******************************************************************** void simpleSelection::DefineSteps(){ // Define the steps (cuts and actions) required for selection // Include only one dummy action for the moment AddStep(StepBase::kAction, "Dummy Action", new DummyAction()); // Define the name of the current (and only) branch for this selection SetBranchAlias(0, "trunk"); } //******************************************************************** //******************************************************************** void simpleSelection::InitializeEvent(AnaEventB& event){ // InitializeEvent creating and filling the analysis box with useful information // Create a new EventBox if(!event.EventBoxes[AnaEventB::kEventBoxTracker]) event.EventBoxes[AnaEventB::kEventBoxTracker] = new EventBoxTracker(); boxUtils::FillTracksWithTPC(event, _detectorFV); boxUtils::FillTracksWithFGD(event, _detectorFV); boxUtils::FillTrajsChargedInTPC(event); boxUtils::FillTrajsChargedInFGDAndNoTPC(event, _detectorFV); //******************************************************************** } //-------------- Add Cuts and Actions here -------------- //******************************************************************** bool DummyAction::Apply(AnaEventB& event, ToyBoxB& box) const{ // Add the implementation of the dummy action return true; } //********************************************************************