Public Member Functions | Protected Attributes | List of all members
ana::CCFlavSel Class Reference

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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/CAFAna/Cuts/TruthCuts.h"

Public Member Functions

 CCFlavSel (int pdg, int pdgorig)
 
bool operator() (const caf::SRProxy *sr) const
 

Protected Attributes

int fPdg
 
int fPdgOrig
 

Detailed Description

Helper for defining true CC event cuts.

Definition at line 19 of file TruthCuts.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file TruthCuts.h.

References operator()(), and sr.

Member Function Documentation

bool ana::CCFlavSel::operator() ( const caf::SRProxy sr) const

Definition at line 32 of file TruthCuts.cxx.

References abs(), ana::assert(), fPdg, fPdgOrig, caf::Proxy< caf::SRNeutrino >::iscc, ana::kHasNeutrino, ana::kHasNu, ana::kIsAntiNu, ana::kIsAntiNu_NT, ana::kIsBeamNue_NT, ana::kIsNu, ana::kIsNumuCC_NT, ana::kIsQE_NT, ana::kIsSig_NT, caf::kQE, caf::Proxy< caf::StandardRecord >::mc, caf::Proxy< caf::SRNeutrino >::mode, caf::Proxy< caf::SRTruthBranch >::nnu, caf::Proxy< caf::SRTruthBranch >::nu, caf::Proxy< caf::SRNeutrino >::pdg, and caf::Proxy< caf::SRNeutrino >::pdgorig.

Referenced by CCFlavSel().

33  {
34  if(sr->mc.nnu == 0) return false;
35  assert(sr->mc.nnu == 1);
36  return (sr->mc.nu[0].iscc &&
37  abs(sr->mc.nu[0].pdg) == fPdg &&
38  abs(sr->mc.nu[0].pdgorig) == fPdgOrig);
39  }
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:618
void abs(TH1 *hist)
caf::Proxy< short int > nnu
Definition: SRProxy.h:617
caf::Proxy< caf::SRTruthBranch > mc
Definition: SRProxy.h:2138
assert(nhit_max >=nhit_nbins)

Member Data Documentation

int ana::CCFlavSel::fPdg
protected

Definition at line 28 of file TruthCuts.h.

Referenced by operator()().

int ana::CCFlavSel::fPdgOrig
protected

Definition at line 28 of file TruthCuts.h.

Referenced by operator()().


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