All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
ana::NCFlavOrig Class Reference

Helper for defining true CC event cuts. More...

#include <TruthCuts.h>

Public Member Functions

 NCFlavOrig (int pdgorig)
 
bool operator() (const caf::SRSliceProxy *slc) const
 

Protected Attributes

int fPdgOrig
 

Detailed Description

Helper for defining true CC event cuts.

Definition at line 34 of file CAFAna/Cuts/TruthCuts.h.

Constructor & Destructor Documentation

ana::NCFlavOrig::NCFlavOrig ( int  pdgorig)
inline

Definition at line 37 of file CAFAna/Cuts/TruthCuts.h.

37  : fPdgOrig(pdgorig)
38  {
39  }

Member Function Documentation

bool ana::NCFlavOrig::operator() ( const caf::SRSliceProxy slc) const

Definition at line 41 of file CAFAna/Cuts/TruthCuts.cxx.

42  {
43  return kHasMatchedNu(slc) && slc->truth.isnc && abs(slc->truth.initpdg) == fPdgOrig;
44  }
T abs(T value)
const Cut kHasMatchedNu([](const caf::SRSliceProxy *slc){return slc->truth.index >=0;})

Member Data Documentation

int ana::NCFlavOrig::fPdgOrig
protected

Definition at line 43 of file CAFAna/Cuts/TruthCuts.h.


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