Functions | Variables
ana::xsec::numubarcc Namespace Reference

Functions

const bool VtxInBounds (const caf::SRVector3DProxy *vec, const TVector3 *vmin, const TVector3 *vmax)
 Main analysis truth cuts. More...
 
bool VtxInBounds (const caf::SRVector3DProxy *vec, TVector3 *vmin, TVector3 *vmax)
 Main analysis truth cuts. More...
 

Variables

const bool testo = true
 
const NuTruthCut kIsNumubarCCST ([](const caf::SRNeutrinoProxy *nu){return(nu->iscc &&nu->pdg==-14);})
 
const Cut kIsNumubarCC = CutFromNuTruthCut(kIsNumubarCCST)
 
const NuTruthCut kIsNumuCCST ([](const caf::SRNeutrinoProxy *nu){return(nu->iscc &&nu->pdg==+14);})
 
const Cut kIsNumuCC = CutFromNuTruthCut(kIsNumuCCST)
 
const NuTruthCut kIsNumuNumubarCCST = kIsNumuCCST || kIsNumubarCCST
 
const Cut kIsNumuNumubarCC = CutFromNuTruthCut(kIsNumuNumubarCCST)
 
const TVector3 * detector_vtx_min = new TVector3(-191, -187, 0)
 
const TVector3 * detector_vtx_max = new TVector3( 192, 194, 1270)
 
const TVector3 * loose_vtx_min = new TVector3(-160, -160, 25)
 
const TVector3 * loose_vtx_max = new TVector3(160, 160, 1150)
 
const NuTruthCut kTrueVtxDetectorCut_NT ([](const caf::SRNeutrinoProxy *nu){return VtxInBounds(&nu->vtx, detector_vtx_min, detector_vtx_max);})
 
const Cut kTrueVtxDetectorCut = ana::CutFromNuTruthCut(kTrueVtxDetectorCut_NT)
 
const NuTruthCut kTrueVtxCut_NT ([](const caf::SRNeutrinoProxy *nu){return VtxInBounds(&nu->vtx, loose_vtx_min, loose_vtx_max);})
 
const Cut kTrueVtxCut = ana::CutFromNuTruthCut(kTrueVtxCut_NT)
 
const Cut kRecoVtxElasticDetectorCut ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return false;return VtxInBounds(&sr->vtx.elastic.vtx, detector_vtx_min, detector_vtx_max);})
 Main analysis reconstruction cuts. More...
 
const Cut kRecoVtxDetectorCut = kRecoVtxElasticDetectorCut
 
const Cut kRecoVtxElasticCut ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return false;return VtxInBounds(&sr->vtx.elastic.vtx, loose_vtx_min, loose_vtx_max);})
 
const Cut kRecoVtxCut = kRecoVtxElasticCut
 
const std::string nominal_dataset = "muonid_prod5_rhc_testing_slim_sample"
 Dataset definitions. More...
 
const std::map< const std::string, const std::string > syst_datasets
 
const Var kLongestTrack ([](const caf::SRProxy *sr){if(sr->trk.kalman.ntracks==0) return 0.f;auto idx=sr->trk.kalman.idxlongest;return float(sr->trk.kalman.tracks[idx].len);})
 

Function Documentation

const bool ana::xsec::numubarcc::VtxInBounds ( const caf::SRVector3DProxy vec,
const TVector3 *  vmin,
const TVector3 *  vmax 
)

Main analysis truth cuts.

Definition at line 15 of file NumubarCCIncCuts.cxx.

References kIsNumubarCCST.

15  {
16  return (vec->X() >= vmin->X() && vec->Y() >= vmin->Y() && vec->Z() >= vmin->Z() &&
17  vec->X() <= vmax->X() && vec->Y() <= vmax->Y() && vec->Z() <= vmax->Z());
18  }
bool ana::xsec::numubarcc::VtxInBounds ( const caf::SRVector3DProxy vec,
TVector3 *  vmin,
TVector3 *  vmax 
)

Main analysis truth cuts.

Variable Documentation

const TVector3* ana::xsec::numubarcc::detector_vtx_max = new TVector3( 192, 194, 1270)

Definition at line 35 of file NumubarCCIncCuts.cxx.

const TVector3 * ana::xsec::numubarcc::detector_vtx_min = new TVector3(-191, -187, 0)

Definition at line 34 of file NumubarCCIncCuts.cxx.

const Cut ana::xsec::numubarcc::kIsNumubarCC = CutFromNuTruthCut(kIsNumubarCCST)

Definition at line 23 of file NumubarCCIncCuts.cxx.

Referenced by muonid_opt().

const NuTruthCut ana::xsec::numubarcc::kIsNumubarCCST

Definition at line 26 of file NumubarCCIncCuts.h.

Referenced by VtxInBounds().

const Cut ana::xsec::numubarcc::kIsNumuCC = CutFromNuTruthCut(kIsNumuCCST)
const NuTruthCut ana::xsec::numubarcc::kIsNumuCCST

Definition at line 28 of file NumubarCCIncCuts.h.

const Cut ana::xsec::numubarcc::kIsNumuNumubarCC = CutFromNuTruthCut(kIsNumuNumubarCCST)

Definition at line 32 of file NumubarCCIncCuts.cxx.

const NuTruthCut ana::xsec::numubarcc::kIsNumuNumubarCCST = kIsNumuCCST || kIsNumubarCCST

Definition at line 31 of file NumubarCCIncCuts.cxx.

const Var ana::xsec::numubarcc::kLongestTrack

Definition at line 22 of file NumubarCCIncVars.h.

const Cut ana::xsec::numubarcc::kRecoVtxCut = kRecoVtxElasticCut

Definition at line 93 of file NumubarCCIncCuts.cxx.

Referenced by muonid_opt().

const Cut ana::xsec::numubarcc::kRecoVtxDetectorCut = kRecoVtxElasticDetectorCut

Definition at line 85 of file NumubarCCIncCuts.cxx.

const Cut ana::xsec::numubarcc::kRecoVtxElasticCut

Definition at line 73 of file NumubarCCIncCuts.h.

const Cut ana::xsec::numubarcc::kRecoVtxElasticDetectorCut

Main analysis reconstruction cuts.

Definition at line 70 of file NumubarCCIncCuts.h.

const Cut ana::xsec::numubarcc::kTrueVtxCut = ana::CutFromNuTruthCut(kTrueVtxCut_NT)

Definition at line 50 of file NumubarCCIncCuts.cxx.

const NuTruthCut ana::xsec::numubarcc::kTrueVtxCut_NT

Definition at line 40 of file NumubarCCIncCuts.h.

const Cut ana::xsec::numubarcc::kTrueVtxDetectorCut = ana::CutFromNuTruthCut(kTrueVtxDetectorCut_NT)

Definition at line 44 of file NumubarCCIncCuts.cxx.

const NuTruthCut ana::xsec::numubarcc::kTrueVtxDetectorCut_NT

Definition at line 37 of file NumubarCCIncCuts.h.

const TVector3 * ana::xsec::numubarcc::loose_vtx_max = new TVector3(160, 160, 1150)

Definition at line 38 of file NumubarCCIncCuts.cxx.

const TVector3 * ana::xsec::numubarcc::loose_vtx_min = new TVector3(-160, -160, 25)

Definition at line 37 of file NumubarCCIncCuts.cxx.

const std::string ana::xsec::numubarcc::nominal_dataset = "muonid_prod5_rhc_testing_slim_sample"

Dataset definitions.

Definition at line 18 of file NumubarCCIncSystDefs.h.

Referenced by muonid_opt().

const std::map<const std::string, const std::string> ana::xsec::numubarcc::syst_datasets
Initial value:
{
{"cherenkov", "prod_caf_R19-11-18-prod5reco.j_nd_genie_N1810j0211a_nonswap_rhc_nova_v08_full_cherenkov_v1"},
{"lightup", "prod_caf_R19-11-18-prod5reco.j_nd_genie_N1810j0211a_nonswap_rhc_nova_v08_full_llup_v1"},
{"lightdw", "prod_caf_R19-11-18-prod5reco.j_nd_genie_N1810j0211a_nonswap_rhc_nova_v08_full_lldown_v1"},
{"calibup", "prod_caf_R19-11-18-prod5reco.l_nd_genie_N1810j0211a_nonswap_rhc_nova_v08_full_calibup_v1"},
{"calibdw", "prod_caf_R19-11-18-prod5reco.l_nd_genie_N1810j0211a_nonswap_rhc_nova_v08_full_calibdown_v1"},
{"calibshape", "prod_caf_R19-11-18-prod5reco.m_nd_genie_N1810j0211a_nonswap_rhc_nova_v08_full_calibshape_v1"}
}

Definition at line 20 of file NumubarCCIncSystDefs.h.

Referenced by muonid_opt().

const bool ana::xsec::numubarcc::testo = true

Definition at line 9 of file NumubarCCIncCuts.cxx.