NuCutImps::NCPRLNC Class Reference

#include <NuSterileCutImps.h>

Inheritance diagram for NuCutImps::NCPRLNC:
NuCut

List of all members.

Public Member Functions

 NCPRLNC (const NuPlots *plots=0)

Protected Member Functions

void Preselection (const NuEvent &nu)
void Selection (const NuEvent &nu)
void SetFidVol (TString &fidvol)

Private Attributes

PreselectionNC2012 fPresel

Detailed Description

Definition at line 39 of file NuSterileCutImps.h.


Constructor & Destructor Documentation

NuCutImps::NCPRLNC::NCPRLNC ( const NuPlots plots = 0  ) 

Definition at line 276 of file NuSterileCutImps.cxx.

References NuCuts::kNCPRLNC, and NuCut::SetAnaVersion().

00276                                        :
00277     NuCut("NCPRLNC", plots)
00278   {
00279     SetAnaVersion(NuCuts::kNCPRLNC);
00280   }


Member Function Documentation

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

Implements NuCut.

Definition at line 288 of file NuSterileCutImps.cxx.

References NuCut::Defer_Preselection(), and fPresel.

00288                                               {
00289     Defer_Preselection(fPresel, nu);
00290     
00291   //Already in Preselection
00292 /*  
00293     if (nu.detector == Detector::kNear) {
00294       Keep_If(nu.slicePHFraction > 0.5, "slicePH");
00295       Keep_If(nu.maxConsecutivePlanes >= 3, "maxPlanes");
00296     } else if (nu.detector == Detector::kFar) {
00297 
00298     } else {
00299       MSG("NuSterileCutImps", Msg::kInfo) << "Detector is not ND or FD, it is " << nu.detector 
00300                                           << ". No preselection cuts applied." << endl;
00301     }
00302 */
00303 
00304   } // End of preselection function

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

Implements NuCut.

Definition at line 307 of file NuSterileCutImps.cxx.

References NuEvent::detector, NuCut::Keep_If(), Detector::kFar, Detector::kNear, NuEvent::nplaneShw, NuEvent::ntrk, NuEvent::planeEvtBeg, NuEvent::planeEvtEnd, NuEvent::planeEvtN, and NuEvent::trknplane.

00307                                            {
00308 
00309     // eventLength is defined differently for ND & FD. A.Gavrilenko 3/20/12
00310     double eventLength = 0;
00311     if(nu.detector == Detector::kFar) {
00312       eventLength = nu.planeEvtN;
00313     }
00314     if(nu.detector == Detector::kNear) {
00315       eventLength = nu.planeEvtEnd - nu.planeEvtBeg + 1;
00316     }
00317 
00318     Keep_If(eventLength < 47 && eventLength >= 0, "evtLength");
00319     
00320     int trackExtension = nu.nplaneShw - nu.trknplane;
00321     if (nu.nplaneShw < 0) {
00322       trackExtension = -999;
00323     }
00324     Keep_If(nu.ntrk == 0 || (nu.ntrk >= 1 && trackExtension > -6), "trkExtend");
00325     
00326     // NCPRLNC requires a "pid" cut. Do a dummy one
00327     Keep_If(true, "pid");
00328    
00329   } // Selection

void NuCutImps::NCPRLNC::SetFidVol ( TString &  fidvol  )  [protected]

Definition at line 283 of file NuSterileCutImps.cxx.

00283                                   {
00284     // Empty to avoid setting defaults in the base class
00285   }


Member Data Documentation

Definition at line 50 of file NuSterileCutImps.h.

Referenced by Preselection().


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

Generated on 13 Dec 2018 for loon by  doxygen 1.6.1