Public Member Functions | Public Attributes | List of all members
caf::Proxy< caf::SRTruthBranch > Class Template Reference

Proxy for caf::SRTruthBranch. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-10-23/StandardRecord/Proxy/SRProxy.h"

Public Member Functions

 Proxy (TDirectory *d, TTree *tr, const std::string &name, const long &base, int offset)
 
 Proxy (const Proxy &)=delete
 
 Proxy (const Proxy &&)=delete
 
Proxyoperator= (const caf::SRTruthBranch &x)
 
void CheckEquals (const caf::SRTruthBranch &sr) const
 

Public Attributes

caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
 
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
 
caf::Proxy< std::vector< caf::SRCosmic > > cosmic
 
caf::Proxy< short intfaveidxeff
 
caf::Proxy< short intfaveidxeffpur
 
caf::Proxy< short intfaveidxeffthenpur
 
caf::Proxy< short intfaveidxenergy
 
caf::Proxy< short intfaveidxpur
 
caf::Proxy< caf::SRGlobalTruthglobal
 
caf::Proxy< short intnallcosmics
 
caf::Proxy< short intnallnus
 
caf::Proxy< short intncosmic
 
caf::Proxy< short intnnu
 
caf::Proxy< std::vector< caf::SRNeutrino > > nu
 

Detailed Description

template<>
class caf::Proxy< caf::SRTruthBranch >

Proxy for caf::SRTruthBranch.

Definition at line 574 of file SRProxy.h.

Constructor & Destructor Documentation

caf::Proxy< caf::SRTruthBranch >::Proxy ( TDirectory *  d,
TTree *  tr,
const std::string &  name,
const long &  base,
int  offset 
)

Definition at line 1078 of file SRProxy.cxx.

1078  :
1079  allcosmics(d, tr, Join(name, "allcosmics"), base, offset),
1080  allnus(d, tr, Join(name, "allnus"), base, offset),
1081  cosmic(d, tr, Join(name, "cosmic"), base, offset),
1082  faveidxeff(d, tr, Join(name, "faveidxeff"), base, offset),
1083  faveidxeffpur(d, tr, Join(name, "faveidxeffpur"), base, offset),
1084  faveidxeffthenpur(d, tr, Join(name, "faveidxeffthenpur"), base, offset),
1085  faveidxenergy(d, tr, Join(name, "faveidxenergy"), base, offset),
1086  faveidxpur(d, tr, Join(name, "faveidxpur"), base, offset),
1087  global(d, tr, Join(name, "global"), base, offset),
1088  nallcosmics(d, tr, Join(name, "nallcosmics"), base, offset),
1089  nallnus(d, tr, Join(name, "nallnus"), base, offset),
1090  ncosmic(d, tr, Join(name, "ncosmic"), base, offset),
1091  nnu(d, tr, Join(name, "nnu"), base, offset),
1092  nu(d, tr, Join(name, "nu"), base, offset)
1093 {
1094 }
const XML_Char * name
Definition: expat.h:151
caf::Proxy< short int > ncosmic
Definition: SRProxy.h:595
caf::Proxy< std::vector< caf::SRCosmic > > cosmic
Definition: SRProxy.h:586
caf::Proxy< short int > nallnus
Definition: SRProxy.h:594
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:597
caf::Proxy< short int > nallcosmics
Definition: SRProxy.h:593
caf::Proxy< short int > nnu
Definition: SRProxy.h:596
const XML_Char int const XML_Char int const XML_Char * base
Definition: expat.h:331
std::string Join(const std::string &a, const std::string &b)
Definition: HDF5Record.h:17
caf::Proxy< short int > faveidxpur
Definition: SRProxy.h:591
caf::Proxy< short int > faveidxeffthenpur
Definition: SRProxy.h:589
Float_t d
Definition: plot.C:236
caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
Definition: SRProxy.h:584
caf::Proxy< short int > faveidxeff
Definition: SRProxy.h:587
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
Definition: SRProxy.h:585
caf::Proxy< short int > faveidxenergy
Definition: SRProxy.h:590
caf::Proxy< caf::SRGlobalTruth > global
Definition: SRProxy.h:592
caf::Proxy< short int > faveidxeffpur
Definition: SRProxy.h:588

Member Function Documentation

void caf::Proxy< caf::SRTruthBranch >::CheckEquals ( const caf::SRTruthBranch sr) const

Definition at line 1115 of file SRProxy.cxx.

References caf::SRTruthBranch::allcosmics, caf::SRTruthBranch::allnus, caf::SRTruthBranch::cosmic, caf::SRTruthBranch::faveidxeff, caf::SRTruthBranch::faveidxeffpur, caf::SRTruthBranch::faveidxeffthenpur, caf::SRTruthBranch::faveidxenergy, caf::SRTruthBranch::faveidxpur, caf::SRTruthBranch::global, caf::SRTruthBranch::nallcosmics, caf::SRTruthBranch::nallnus, caf::SRTruthBranch::ncosmic, caf::SRTruthBranch::nnu, and caf::SRTruthBranch::nu.

1116 {
1117  allcosmics.CheckEquals(sr.allcosmics);
1118  allnus.CheckEquals(sr.allnus);
1119  cosmic.CheckEquals(sr.cosmic);
1129  nnu.CheckEquals(sr.nnu);
1130  nu.CheckEquals(sr.nu);
1131 }
short ncosmic
Number of cosmics in cosmic vector (0 or 1)
Definition: SRTruthBranch.h:38
short faveidxeffthenpur
Index of favorite in allnus when neutrinos are sorted by efficiency and slices break ties by purity...
Definition: SRTruthBranch.h:35
caf::Proxy< short int > ncosmic
Definition: SRProxy.h:595
caf::Proxy< short int > nallnus
Definition: SRProxy.h:594
std::vector< SRCosmic > allcosmics
vector holding all Cosmics
Definition: SRTruthBranch.h:29
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:597
short faveidxpur
Index of favorite in allnus when sorted by purity.
Definition: SRTruthBranch.h:33
short faveidxeff
Index of favorite in allnus when sorted by slicer efficiency.
Definition: SRTruthBranch.h:31
caf::Proxy< short int > nallcosmics
Definition: SRProxy.h:593
caf::Proxy< short int > nnu
Definition: SRProxy.h:596
caf::Proxy< short int > faveidxpur
Definition: SRProxy.h:591
short nallcosmics
Number of cosmics in allcosmics vector.
Definition: SRTruthBranch.h:40
short faveidxeffpur
Index of favorite in allnus when sorted by product of efficiency and purity.
Definition: SRTruthBranch.h:34
SRGlobalTruth global
Definition: SRTruthBranch.h:42
Sum up livetimes from individual cosmic triggers.
caf::Proxy< short int > faveidxeffthenpur
Definition: SRProxy.h:589
void CheckEquals(const caf::SRGlobalTruth &sr) const
Definition: SRProxy.cxx:1073
short nnu
Number of neutrinos in nu vector (0 or 1)
Definition: SRTruthBranch.h:37
std::vector< SRNeutrino > allnus
vector holding all Neutrinos
Definition: SRTruthBranch.h:28
caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
Definition: SRProxy.h:584
caf::Proxy< short int > faveidxeff
Definition: SRProxy.h:587
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
Definition: SRProxy.h:585
short faveidxenergy
Index of favorite in allnus when sorted by energy.
Definition: SRTruthBranch.h:32
caf::Proxy< short int > faveidxenergy
Definition: SRProxy.h:590
short nallnus
Number of neutrinos in allnus vector.
Definition: SRTruthBranch.h:39
caf::Proxy< caf::SRGlobalTruth > global
Definition: SRProxy.h:592
std::vector< SRNeutrino > nu
implemented as a vector to maintain mc.nu structure, i.e. not a pointer, but with 0 or 1 entries...
Definition: SRTruthBranch.h:25
std::vector< SRCosmic > cosmic
implemented as a vector to maintain mc.cosmic structure
Definition: SRTruthBranch.h:26
void CheckEquals(const T &x) const
caf::Proxy< short int > faveidxeffpur
Definition: SRProxy.h:588

Definition at line 1096 of file SRProxy.cxx.

References caf::SRTruthBranch::allcosmics, caf::SRTruthBranch::allnus, caf::SRTruthBranch::cosmic, caf::SRTruthBranch::faveidxeff, caf::SRTruthBranch::faveidxeffpur, caf::SRTruthBranch::faveidxeffthenpur, caf::SRTruthBranch::faveidxenergy, caf::SRTruthBranch::faveidxpur, caf::SRTruthBranch::global, caf::SRTruthBranch::nallcosmics, caf::SRTruthBranch::nallnus, caf::SRTruthBranch::ncosmic, caf::SRTruthBranch::nnu, and caf::SRTruthBranch::nu.

1097 {
1098  allcosmics = sr.allcosmics;
1099  allnus = sr.allnus;
1100  cosmic = sr.cosmic;
1101  faveidxeff = sr.faveidxeff;
1102  faveidxeffpur = sr.faveidxeffpur;
1103  faveidxeffthenpur = sr.faveidxeffthenpur;
1104  faveidxenergy = sr.faveidxenergy;
1105  faveidxpur = sr.faveidxpur;
1106  global = sr.global;
1107  nallcosmics = sr.nallcosmics;
1108  nallnus = sr.nallnus;
1109  ncosmic = sr.ncosmic;
1110  nnu = sr.nnu;
1111  nu = sr.nu;
1112  return *this;
1113 }
caf::Proxy< short int > ncosmic
Definition: SRProxy.h:595
caf::Proxy< short int > nallnus
Definition: SRProxy.h:594
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:597
caf::Proxy< short int > nallcosmics
Definition: SRProxy.h:593
caf::Proxy< short int > nnu
Definition: SRProxy.h:596
caf::Proxy< short int > faveidxpur
Definition: SRProxy.h:591
Sum up livetimes from individual cosmic triggers.
caf::Proxy< short int > faveidxeffthenpur
Definition: SRProxy.h:589
caf::StandardRecord * sr
caf::Proxy< std::vector< caf::SRCosmic > > allcosmics
Definition: SRProxy.h:584
caf::Proxy< short int > faveidxeff
Definition: SRProxy.h:587
caf::Proxy< std::vector< caf::SRNeutrino > > allnus
Definition: SRProxy.h:585
caf::Proxy< short int > faveidxenergy
Definition: SRProxy.h:590
caf::Proxy< caf::SRGlobalTruth > global
Definition: SRProxy.h:592
caf::Proxy< short int > faveidxeffpur
Definition: SRProxy.h:588

Member Data Documentation

caf::Proxy<std::vector<caf::SRCosmic> > caf::Proxy< caf::SRTruthBranch >::allcosmics

Definition at line 584 of file SRProxy.h.

Definition at line 585 of file SRProxy.h.

Referenced by ana::OverlayCutFromNuTruthCut(), and ana::OverlayVarFromNuTruthVar().

Definition at line 586 of file SRProxy.h.

Definition at line 587 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::faveidxeffpur

Definition at line 588 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::faveidxeffthenpur

Definition at line 589 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::faveidxenergy

Definition at line 590 of file SRProxy.h.

Definition at line 591 of file SRProxy.h.

Definition at line 592 of file SRProxy.h.

caf::Proxy<short int> caf::Proxy< caf::SRTruthBranch >::nallcosmics

Definition at line 593 of file SRProxy.h.

Definition at line 594 of file SRProxy.h.

Referenced by ana::OverlayCutFromNuTruthCut(), and ana::OverlayVarFromNuTruthVar().

Definition at line 595 of file SRProxy.h.

Definition at line 596 of file SRProxy.h.

Referenced by AddNumuHistDefMoreTruth(), ana::calcFirstLastLivePlane(), ana::CutFromNuTruthCut(), datamc_ND_numu_kinematics(), datamc_ND_numu_kinematics_REW(), demo6(), demoSysts(), efficiency(), EnergyCont_macro(), energyResolution(), ana::GetkPPFXFluxUnivWgt(), ana::Nus17SystFromHist::GetNusChannel(), ana::NusSystFromHist::GetNusChannel(), ana::Nus18SystFromHist::GetNusChannel(), GetTunedMECWeight(), ana::DecompWeightFunc::GetWeight(), ana::GeniePCASyst::GetWeight(), ana::SpectrumLoader::HandleRecord(), ana::MultiHistContainer::Hist(), hyperon_macro(), hyperon_nom_macro(), MakePPFXRatios(), MakeSystRatios(), MinervaFluxFromHist(), MippNA49FluxFromHist(), neutKEsyst(), neutronE_macro(), nue_fd_mc_validation(), NuMu2020_TrimCAFs(), NuSTreeMaker(), ana::CCFlavSel::operator()(), ana::NotContainFxn::operator()(), ana::GetWtMinervaND::operator()(), ana2019::fakedata::KeepMCEventFunc::operator()(), ana::GetWtMippNA49NOvAND::operator()(), ana::GetWtMippNA49NOvAFD::operator()(), ana::NCFlavSel::operator()(), ana::fIsPi0Variable::operator()(), ana::fIsPi0LVariable::operator()(), ppfx_make_systs(), ppfx_smooth_weights_save(), Print(), ana::NumuSyst::Shift(), ana::WrongSignContamination::Shift(), ana::NCSyst::Shift(), ana::WrongSignScale::Shift(), ana::NueExtrapSystBkg2017::Shift(), ana::NeutronVisEScaleSyst2018::Shift(), ana::NueAcceptSystBkg2018FHC::Shift(), ana::NueSyst::Shift(), ana::NCtest::Shift(), ana::NueExtrapSystSignalKin2017::Shift(), ana::WrongSignEnergyBinRHC::Shift(), ana::NuWROSyst::Shift(), ana::NueAcceptSystSignalKin2018FHC::Shift(), ana::Nuetest::Shift(), ana::ISyst::Shift(), ana::WrongSignEnergyBin::Shift(), ana::NueAcceptSystSignalKin2020FHC::Shift(), ana::NumuSummedSmallGENIESyst::Shift(), ana::Numutest::Shift(), ana::Nus17FlatSyst::Shift(), ana::NusFlatSyst::Shift(), ana::NCScaleSyst::Shift(), ana::WrongSignScale100::Shift(), ana::NueAcceptSystBkg2018RHC::Shift(), ana::BeamNueScaleSyst::Shift(), ana::NueAcceptSystSignalKin2018RHC::Shift(), ana::NumuNCScaleSyst::Shift(), ana::Nus18FlatSyst::Shift(), ana::NumuCCScaleSyst::Shift(), ana::NueAcceptSystSignalKin2020RHC::Shift(), ana::MyWrongSignScale::Shift(), ana::NumuTauContaminationSyst::Shift(), ana::KaonScaleSyst::Shift(), demo::DemoSyst2::Shift(), ana::RockMuonNormSyst::Shift(), ana::DISHighWScaleSyst::Shift(), SystsNDRockLoad(), SystsPPFXLoad17(), ana::TAKEPol6_biasHM(), test_fluxhadr_prod_weights_Flux(), test_genieweights(), TrimCAFs(), and ana::VarFromNuTruthVar().

Definition at line 597 of file SRProxy.h.

Referenced by AddNumuHistDefMoreTruth(), ana::calcFirstLastLivePlane(), ana::CalcFracE(), ana::CalcMECDoubleGaussEnhShiftedParam(), ana::CalcMECDoubleGaussEnhShiftedParamNux(), ana::CalcMECGaussEnh(), ana::CalcMinosResSupp(), ana::CalcPrimE(), ana::CutFromNuTruthCut(), datamc_ND_numu_kinematics(), datamc_ND_numu_kinematics_REW(), demoSysts(), efficiency(), cmf::CAFToEventList::FillMCVals(), fnex::CAFToEventList::FillMCVarVals(), fnex::CAFToEventList::FillVariables(), cmf::CAFToEventList::FillVariables(), get_eventlist2020(), jw::GetCutIsFitMEC(), ana::GetCutIsFitMEC(), ana::GetkPPFXFluxUnivWgt(), ana::Nus17SystFromHist::GetNusChannel(), ana::NusSystFromHist::GetNusChannel(), ana::Nus18SystFromHist::GetNusChannel(), GetTunedMECWeight(), ana::DecompWeightFunc::GetWeight(), ana::GeniePCASyst::GetWeight(), ana::SpectrumLoader::HandleRecord(), ana::MultiHistContainer::Hist(), hyperon_macro(), hyperon_nom_macro(), ana::kMECDoubleGaussEnhSimple(), LoadWeightsTunedNumuMEC(), jw::LoadWeightsTunedNumuMEC(), make_nueFDprediction_kinematics(), make_nueFDprediction_kinematics_REW(), MakePPFXRatios(), MakeSystRatios(), MinervaFluxFromHist(), MippNA49FluxFromHist(), neutKEsyst(), neutronE_macro(), NuMu2020_TrimCAFs(), NuSTreeMaker(), ana::CCFlavSel::operator()(), DiffHough::operator()(), DiffElastic::operator()(), ana::NotContainFxn::operator()(), ana::GetWtMinervaND::operator()(), ana2019::fakedata::KeepMCEventFunc::operator()(), ana::GetWtMippNA49NOvAND::operator()(), ana::GetWtMippNA49NOvAFD::operator()(), ana::NCFlavSel::operator()(), ana::fIsPi0Variable::operator()(), ana::fIsPi0LVariable::operator()(), ppfx_make_systs(), ppfx_smooth_weights_save(), Print(), resolution_event_tree(), ana::NumuSyst::Shift(), ana::WrongSignContamination::Shift(), ana::NCSyst::Shift(), ana::WrongSignScale::Shift(), ana::NueExtrapSystBkg2017::Shift(), ana::NeutronVisEScaleSyst2018::Shift(), ana::NueAcceptSystBkg2018FHC::Shift(), ana::NueSyst::Shift(), ana::NCtest::Shift(), ana::NueExtrapSystSignalKin2017::Shift(), ana::WrongSignEnergyBinRHC::Shift(), ana::NuWROSyst::Shift(), ana::NueAcceptSystSignalKin2018FHC::Shift(), ana::Nuetest::Shift(), ana::ISyst::Shift(), ana::WrongSignEnergyBin::Shift(), ana::NueAcceptSystSignalKin2020FHC::Shift(), ana::NumuSummedSmallGENIESyst::Shift(), ana::Numutest::Shift(), ana::Nus17FlatSyst::Shift(), ana::NusFlatSyst::Shift(), ana::NCScaleSyst::Shift(), ana::WrongSignScale100::Shift(), ana::NueAcceptSystBkg2018RHC::Shift(), ana::BeamNueScaleSyst::Shift(), ana::NueAcceptSystSignalKin2018RHC::Shift(), ana::NumuNCScaleSyst::Shift(), ana::Nus18FlatSyst::Shift(), ana::NumuCCScaleSyst::Shift(), ana::NueAcceptSystSignalKin2020RHC::Shift(), ana::MyWrongSignScale::Shift(), ana::NumuTauContaminationSyst::Shift(), demo::DemoSyst2::Shift(), ana::RockMuonNormSyst::Shift(), ana::DISHighWScaleSyst::Shift(), ana::MECDoubleGaussEnhSystNux::Shift(), ana::MECGaussEnhSyst::Shift(), ana::MECDoubleGaussEnhSyst::Shift(), ana::MinosResSuppSyst::Shift(), SystsNDRockLoad(), SystsPPFXLoad17(), ana::takeOutTrashByTruth(), ana::TAKEPol6_biasHM(), test_fluxhadr_prod_weights_Flux(), test_genieweights(), TrimCAFs(), and ana::VarFromNuTruthVar().


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