NuCutImps::RetroToFCC Class Reference

#include <ToFCutImps.h>

Inheritance diagram for NuCutImps::RetroToFCC:
NuCut

List of all members.

Public Member Functions

 RetroToFCC (const NuPlots *plots=0)
Bool_t InFidVol (const NuEvent &nu) const

Protected Member Functions

void Preselection (const NuEvent &nu)
void Selection (const NuEvent &nu)

Private Attributes

ToFPreselection fToFPreselection

Detailed Description

Definition at line 28 of file ToFCutImps.h.


Constructor & Destructor Documentation

RetroToFCC::RetroToFCC ( const NuPlots plots = 0  ) 

Definition at line 59 of file ToFCutImps.cxx.

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

00060   : NuCut("RetroToFCC", plots)
00061 {
00062   SetFidVol("cc2008");
00063   SetAnaVersion(NuCuts::kCC0720Std);
00064 }


Member Function Documentation

Bool_t RetroToFCC::InFidVol ( const NuEvent nu  )  const [virtual]

Fiducial volume calculation function. This is the basic 'infid' derived version, and should be overridden/passed to for any more complicated evaluations.

Reimplemented from NuCut.

Definition at line 93 of file ToFCutImps.cxx.

References NuCut::InFidVolEvt(), Munits::m, NuEvent::ntrk, and NuEvent::zTrkVtx.

Referenced by NuCutImps::RetroToFRAF::Preselection(), and Preselection().

00094 {
00095   if (nu.ntrk > 0){
00096     NuEvent nuc = nu;
00097     nuc.zTrkVtx = nu.zTrkVtx - (0.0392*Munits::m);
00098     
00099     return NuCut::InFidVol(nuc);
00100   }
00101   else return NuCut::InFidVolEvt(nu);
00102 }

void RetroToFCC::Preselection ( const NuEvent nu  )  [protected, virtual]

Implements NuCut.

Definition at line 67 of file ToFCutImps.cxx.

References NuCut::Defer_Preselection(), NuEvent::detector, NuEvent::dirCosNu, fToFPreselection, InFidVol(), NuCuts::IsGoodTrackFitPassReclamation(), NuCut::Keep_If(), Detector::kFar, Detector::kNear, NuEvent::ntrk, NuEvent::trkfitpass, and NuEvent::vtxFitChi2DoF.

00068 {
00069   Defer_Preselection(fToFPreselection, nu);
00070 
00071   Keep_If(nu.ntrk >= 1, "GoodNumberofTracks");
00072   Keep_If(nu.ntrk > 0 && InFidVol(nu), "FidVol");
00073   
00074   if (nu.detector == Detector::kFar) {
00075     Keep_If(nu.trkfitpass == 1, "trackfitpassFD");
00076     Keep_If(nu.dirCosNu > 0.6, "dirCosNu");
00077     Keep_If(nu.vtxFitChi2DoF < 4.0, "vtxFitQuality");
00078   }
00079   else if (nu.detector == Detector::kNear) {
00080     //We're doing track reclamation for now. Data-MC isn't
00081     //important, so we could just do trkfitpass
00082     Keep_If(NuCuts::IsGoodTrackFitPassReclamation(nu), "trackfitreclamation");
00083   }
00084 }

void RetroToFCC::Selection ( const NuEvent nu  )  [protected, virtual]

Implements NuCut.

Definition at line 87 of file ToFCutImps.cxx.

References NuCutImps::CC0720Std::IsGoodPID(), and NuCut::Keep_If().

00088 {
00089   Keep_If(CC0720Std::IsGoodPID(nu), "pid");
00090 }


Member Data Documentation

Definition at line 39 of file ToFCutImps.h.

Referenced by Preselection().


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

Generated on 18 Jan 2018 for loon by  doxygen 1.6.1