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

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

#include <TruthCuts.h>

Public Member Functions

 CCFlavSel (int pdg, int pdgorig)
 
bool operator() (const caf::SRSliceProxy *slc) const
 

Protected Attributes

int fPdg
 
int fPdgOrig
 

Detailed Description

Helper for defining true CC event cuts.

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

Constructor & Destructor Documentation

ana::CCFlavSel::CCFlavSel ( int  pdg,
int  pdgorig 
)
inline

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

24  : fPdg(pdg), fPdgOrig(pdgorig)
25  {
26  }
var pdg
Definition: selectors.fcl:14

Member Function Documentation

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

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

33  {
34  return kHasMatchedNu(slc) &&
35  slc->truth.iscc &&
36  abs(slc->truth.initpdg) == fPdgOrig &&
37  abs(slc->truth.pdg) == fPdg;
38  }
T abs(T value)
const Cut kHasMatchedNu([](const caf::SRSliceProxy *slc){return slc->truth.index >=0;})

Member Data Documentation

int ana::CCFlavSel::fPdg
protected

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

int ana::CCFlavSel::fPdgOrig
protected

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


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