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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/NuXAna/Extrap/ExtrapSterile.h"

Public Member Functions

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

Protected Attributes

int fPdg
 
int fPdgOrig
 

Detailed Description

Adapted from TruthCuts.h, these cuts select NC events discerning neutrino flavor.

Definition at line 132 of file ExtrapSterile.h.

Constructor & Destructor Documentation

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

Definition at line 135 of file ExtrapSterile.h.

References sr.

Member Function Documentation

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

Definition at line 303 of file ExtrapSterile.cxx.

References abs(), ana::assert(), caf::Proxy< caf::StandardRecord >::mc, caf::Proxy< caf::SRTruthBranch >::nnu, and caf::Proxy< caf::SRTruthBranch >::nu.

303  {
304  if(sr->mc.nnu == 0) return false;
305  assert(sr->mc.nnu == 1);
306  return (!sr->mc.nu[0].iscc &&
307  abs(sr->mc.nu[0].pdg) == fPdg &&
308  abs(sr->mc.nu[0].pdgorig) == fPdgOrig);
309  }
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::NCFlavSel::fPdg
protected

Definition at line 141 of file ExtrapSterile.h.

int ana::NCFlavSel::fPdgOrig
protected

Definition at line 141 of file ExtrapSterile.h.


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