NuCutImps::ToFPreselection Class Reference

#include <ToFCutImps.h>

Inheritance diagram for NuCutImps::ToFPreselection:
NuCut

List of all members.

Public Member Functions

 ToFPreselection (const NuPlots *plots=0)
void Preselection (const NuEvent &nu)
void Selection (const NuEvent &nu)

Detailed Description

Definition at line 18 of file ToFCutImps.h.


Constructor & Destructor Documentation

ToFPreselection::ToFPreselection ( const NuPlots plots = 0  ) 

Definition at line 20 of file ToFCutImps.cxx.

References NuCuts::kCC0720Std, NuCut::SetAnaVersion(), and NuCut::SetFidVol().

00021   : NuCut("ToFPreselection", plots)
00022 {
00023   SetFidVol("cc2008");
00024   SetAnaVersion(NuCuts::kCC0720Std);
00025 }


Member Function Documentation

void ToFPreselection::Preselection ( const NuEvent nu  )  [virtual]

Implements NuCut.

Definition at line 28 of file ToFCutImps.cxx.

References NuEvent::coilIsOk, NuCut::Cut_If(), NuEvent::cutOnDataQuality, NuEvent::detector, NuEvent::goodBeam, NuEvent::goodBeamSntp, NuEvent::isGoodDataQuality, ToFUtilities::IsGoodToFBeamType(), NuEvent::isLI, SimFlag::kData, NuCut::Keep_Data_If(), NuCut::Keep_If(), Detector::kFar, NuEvent::litime, and NuEvent::simFlag.

00029 {
00030   Bool_t goodBeamToUse = nu.goodBeamSntp;
00031   if (Detector::kFar == nu.detector &&
00032       SimFlag::kData == nu.simFlag){
00033     goodBeamToUse = nu.goodBeam;
00034   }
00035 
00036   Keep_Data_If(goodBeamToUse, nu,"GoodBeam");
00037   Keep_Data_If(nu.coilIsOk || !nu.cutOnDataQuality, nu, "CoilIsOkay");
00038   Keep_Data_If(nu.isGoodDataQuality ||
00039                !nu.cutOnDataQuality, nu, "DataQuality");
00040   
00041   Cut_If(nu.isLI || nu.litime != -1, "IsLI");
00042   
00043 //   if (nu.detector == Detector::kFar) {
00044 //     Keep_Data_If(NuCuts::GoodTimeToNearestSpill(nu, -2, +12) ||
00045 //               !nu.cutOnSpillTiming, nu, "SpillTime");
00046 //   }
00047 
00048   Keep_If(ToFUtilities::IsGoodToFBeamType(nu), "goodBeam");
00049 }

void ToFPreselection::Selection ( const NuEvent nu  )  [virtual]

Implements NuCut.

Definition at line 52 of file ToFCutImps.cxx.

00053 {
00054   //This function intentionally left blank
00055 }


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

Generated on 25 Apr 2018 for loon by  doxygen 1.6.1