NuCutImps::NCPRLCC Class Reference

#include <NuSterileCutImps.h>

Inheritance diagram for NuCutImps::NCPRLCC:
NuCut

List of all members.

Public Member Functions

 NCPRLCC (const NuPlots *plots=0)

Protected Member Functions

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

Private Attributes

NCPRLNC fncprlNC

Detailed Description

Definition at line 56 of file NuSterileCutImps.h.


Constructor & Destructor Documentation

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

Definition at line 336 of file NuSterileCutImps.cxx.

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

00336                                        :
00337     NuCut("NCPRLCC", plots)
00338   {
00339     SetAnaVersion(NuCuts::kNCPRLCC);
00340   }
  


Member Function Documentation

Bool_t NuCutImps::NCPRLCC::InFidVol ( const NuEvent nu  )  const [protected, 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 343 of file NuSterileCutImps.cxx.

References NuEvent::nplaneShw1, NuEvent::ntrk, NuEvent::trknplane, NuEvent::vtxMetersToCloseEdgeEvt, NuEvent::vtxMetersToCloseEdgeTrk, NuEvent::zEvtVtx, and NuEvent::zTrkVtx.

Referenced by Preselection().

00343                                                   {
00344     Bool_t result = false;
00345 
00346     double distToEdge = 0.0;
00347     double vtxZ = nu.zEvtVtx;
00348     const int trackExtension = nu.nplaneShw1 - nu.trknplane;
00349 
00350     if (nu.ntrk > 0 && trackExtension < 0) {
00351       distToEdge = nu.vtxMetersToCloseEdgeTrk;
00352       vtxZ = nu.zTrkVtx;
00353     } else {
00354       distToEdge = nu.vtxMetersToCloseEdgeEvt;
00355     }
00356 
00357     if (distToEdge >= 0.5) {
00358       result = true;
00359     }
00360 
00361     if (vtxZ < 4.7368 && vtxZ > 1.7 && result) {
00362       result = true;
00363     } else {
00364       result = false;
00365     }
00366 
00367     return result;
00368   }

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

Implements NuCut.

Definition at line 377 of file NuSterileCutImps.cxx.

References InFidVol(), NuCut::Keep_If(), NuEvent::maxConsecutivePlanes, and NuEvent::slicePHFraction.

00377                                               {
00378     Keep_If(InFidVol(nu), "fidVol");
00379     Keep_If(nu.slicePHFraction > 0.5, "slicePH");
00380     Keep_If(nu.maxConsecutivePlanes > 3, "maxPlanes");
00381 
00382   } // End of preselection function

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

Implements NuCut.

Definition at line 385 of file NuSterileCutImps.cxx.

References NuCut::Cut_If(), fncprlNC, NuEvent::jmID, NuCut::Keep_If(), NuCut::MakeCuts(), NuEvent::ntrk, NuCut::Passed(), NuEvent::planeEvtN, NuEvent::planeShwBeg, NuEvent::planeShwEnd, NuEvent::roID, and NuEvent::trkLength.

00385                                            {
00386 
00387     fncprlNC.MakeCuts(nu);
00388     Cut_If(fncprlNC.Passed(), "notNC");
00389 
00390     // taken from NCExtractionCutswkNN::PassesCCCuts
00391     Keep_If(nu.roID > 0.25625 || nu.jmID > 0.50625, "pid");
00392     Keep_If(nu.ntrk > 1, "ntracks");
00393     Keep_If(nu.planeEvtN >= 47, "evtLength");
00394 
00395     const int trackExtension = nu.trkLength - ((nu.planeShwEnd - nu.planeShwBeg) + 1);
00396     Keep_If(trackExtension < 6, "trkExtend");
00397 
00398   }

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

Definition at line 371 of file NuSterileCutImps.cxx.

00371                                   {
00372     // Empty to avoid setting defaults in the base class
00373   }


Member Data Documentation

Definition at line 68 of file NuSterileCutImps.h.

Referenced by Selection().


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

Generated on 16 Apr 2018 for loon by  doxygen 1.6.1